• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

change Corpse death for Vocations tfs 0.3.6

braianlomas

New Member
Joined
Feb 6, 2015
Messages
41
Reaction score
3
My Site PROJECTS ONLINE (https://tumundonline.weebly.com)

Hi, this code can add in Players.cpp

serch in players.cpp: uint16_t Player::getLookCorpse() const

and remplace for this, can edit Variable name

VariableName = IdCorpseItem;



uint16_t Player::getLookCorpse() const
{
uint16_t goku, vegeta, gohan, trunks, defaultt = 0;

/*Config */

goku = 3113; // corpse do sorcerer
vegeta = 3028; // corpse do druid
gohan = 3343; // corpse do paladin
trunks = 2989; // corpse do knight



defaultt = 3354; // corpse padrão.

/*End */

if (getVocationId() == 1 || getVocationId() == 2 || getVocationId() == 3 || getVocationId() == 4 || getVocationId() == 5 || getVocationId() == 6 || getVocationId() == 7 || getVocationId() == 8 || getVocationId() == 9 || getVocationId() == 10 || getVocationId() == 11 || getVocationId() == 12 || getVocationId() == 13)
return goku;

else if (getVocationId() == 14 || getVocationId() == 15 || getVocationId() == 16 || getVocationId() == 17 || getVocationId() == 18 || getVocationId() == 19 || getVocationId() == 20 || getVocationId() == 21 || getVocationId() == 22 || getVocationId() == 23 || getVocationId() == 24 || getVocationId() == 25)
return vegeta;

else if (getVocationId() == 26 || getVocationId() == 27 || getVocationId() == 28 || getVocationId() == 29 || getVocationId() == 30 || getVocationId() == 31 || getVocationId() == 32 || getVocationId() == 33 || getVocationId() == 34 || getVocationId() == 35 || getVocationId() == 36)
return gohan;

else if (getVocationId() == 37 || getVocationId() == 38 || getVocationId() == 39 || getVocationId() == 40 || getVocationId() == 41 || getVocationId() == 42 || getVocationId() == 43 || getVocationId() == 44 || getVocationId() == 45 || getVocationId() == 46 || getVocationId() == 47)
return trunks;


return defaultt;

}

My Site PROJECTS ONLINE (https://tumundonline.weebly.com)
 
Back
Top