Graphics Fans
(OT Code) Rook System Update Code - Printable Version

+- Graphics Fans (https://graphicsfans.createmybb.com)
+-- Forum: Programming & Tutorials (https://graphicsfans.createmybb.com/forumdisplay.php?fid=19)
+--- Forum: C++ (https://graphicsfans.createmybb.com/forumdisplay.php?fid=32)
+--- Thread: (OT Code) Rook System Update Code (/showthread.php?tid=63)



(OT Code) Rook System Update Code - Ghettobird - 06-23-2006


Heya i saw that some people had servers where u dont go back to rook when lvl 5


so i made a code for thoose who want to fix that Smile
srry its a big sloppy code :S im making a better one atm Smile
Fixes:
Smaller better code
MAgiclevel (forgot it :p)
Slot on Backpack (else keep ur bp)
slot ammo (same as up)
Capacity bug fix
Position of Tempel change fixed


Code:
//Rookfix by Rochy
if (player->level <6 && player->vocation == >0){
player->vocation == 0
player->pos = "rook temple pos here";
player->masterPos = "rook temple pos here";
player->mana = 0;
player->health = 150;
player->manaMax = 0;
player->healthMax = 150;
player->level = 1;
player->capacity = 300;
player->magLevel = 0;
player->experience = 0;
player->item[SLOT_HEAD] = id of items here;
player->item[SLOT_NECKLACE] = id of items here;
player->item[SLOT_ARMOR] = id of items here;
player->item[SLOT_LEGS] = id of items here;
player->itemSLOT_FEET]=  id of items here;
player->item[SLOT_RING] = id of items here;
player->item[SLOT_LEFT] = id of items here;
player->item[SLOT_RIGHT] = id of items here;
player->item[SLOT_CONTAINER] = id here;
player->item[SLOT_AMMO] = id here;
}
//End RookFix by Rochy



RE: (OT Code) Rook System Update Code - DarkstaR - 06-23-2006

Nice code, but where to put it Tongue(A)


RE: (OT Code) Rook System Update Code - Ghettobird - 06-23-2006

im Player.cpp

Doenst matter where , cause all of these targets and conditions are allready declared in public


RE: (OT Code) Rook System Update Code - Mistik - 06-26-2006

Graphics fans isnt for ots though... hmmm


RE: (OT Code) Rook System Update Code - Ghettobird - 07-04-2006

I Know but it is C++ isnt it? Wink