• 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!

Vocations with other death corpses [C++]

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
741
Solutions
5
Reaction score
193
Location
Pr0land
GitHub
Erexo
Hello,
i need some help in C++.

Vocations with other corpses.

voc 2, corpse 1111
voc 3, corpse 2222
voc 4, corpse 3333

I think everybody know what i means :D

Please help

Pzdr,
Erexo
 
You should change this in player.cpp
PHP:
uint16_t Player::getLookCorpse() const
{
	if(sex % 2)
		return ITEM_MALE_CORPSE;

	return ITEM_FEMALE_CORPSE;
}

to somthing like that
PHP:
uint16_t Player::getLookCorpse() const

{
	uint16_t sorcerer, druid, paladin, knight, defaultt = 0;

	/*Config */

	sorcerer = 3343;  // copse for sorcerer

	druid = 3343;	// copse for druid

	paladin = 3343;	// copse for paladin

	knight = 334;	// copse for knight
		
	defaultt = 3354;	// copse for vocations not mentioned up, like if he has no vocation

	/*End */

	if (getVocationId() == 1 || getVocationId() == 5) 
		return sorcerer;  

	else if (getVocationId() == 2 || getVocationId() == 6)
		return druid; 

	else if (getVocationId() == 3 || getVocationId() == 7) 
		return  paladin;  

	else if (getVocationId() == 4 || getVocationId() == 8) 
		return knight;  

	return defaultt;  
}
 
Last edited:
bump when they die and login again they dont get tped to temple its like they get kicked but still it creates a dead body under.
 
hmm :(

The corpse working 100%, but you dont get tped back to your respetive temple and it doesnt pop up that window and say you want login again.
 
Last edited:
Back
Top