Post Reply  Post Thread 

(OT Code) Rook System Update Code
Author Message
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #1
(OT Code) Rook System Update Code


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



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg

This post was last modified: 06-23-2006 07:04 PM by Ghettobird.

06-23-2006 07:03 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
DarkstaR
Super N00derator


Posts: 105
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #2
RE: (OT Code) Rook System Update Code

Nice code, but where to put it :P(A)


06-23-2006 07:07 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #3
RE: (OT Code) Rook System Update Code

im Player.cpp

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



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
06-23-2006 07:18 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply
Mistik
Web Prog. Mod


Posts: 43
Group: TCP Supporter
Joined: Jun 2006
Status: Offline
Reputation:
Post: #4
RE: (OT Code) Rook System Update Code

Graphics fans isnt for ots though... hmmm


06-26-2006 03:47 PM
Send the author an email Send the author a private message Find all posts by this author Quote this message in a reply
Ghettobird
Zupar Modaratar


Posts: 99
Group: Super Moderators
Joined: Jun 2006
Status: Offline
Reputation:
Post: #5
RE: (OT Code) Rook System Update Code

I Know but it is C++ isnt it? ;)



I R HAve The Proof I R 100 Post =D U Go Look!:
http://img234.imageshack.us/img234/2775/yeah0yn.jpg
07-04-2006 08:05 PM
Send the author an email Send the author a private message Visit authors website Find all posts by this author Quote this message in a reply

Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump: