Remove Ads

Share on Facebook Share on Twitter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(OT Code) Rook System Update Code
#1

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
Reply
#2
Nice code, but where to put it Tongue(A)
Reply
#3
im Player.cpp

Doenst matter where , cause all of these targets and conditions are allready declared in public
Reply
#4
Graphics fans isnt for ots though... hmmm
Reply
#5
I Know but it is C++ isnt it? Wink
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)