• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Looktype & Corpses

merfus

Member
Joined
Dec 27, 2011
Messages
214
Reaction score
5
Location
Poland
Hi, i searched all source .cpp and .h , all forums, google but i don't find it :( so can anyone help me?
The Question is:
Where i can change outfit (just looktype) for male and female of vocations like ID 1/2/3/4/5/6/7/8 and new voc 9+ becuase i plan to add, and where i can add corpses to new vocations?
Really need help :( really!
 
Last edited:
Find this in player.cpp
PHP:
uint16_t Player::getLookCorpse() const
{
    if(sex % 2)
        return ITEM_MALE_CORPSE;

    return ITEM_FEMALE_CORPSE;
}
And change it to this
PHP:
uint16_t Player::getLookCorpse() const

{
    uint16_t sorcerer, druid, paladin, knight, defaultt, ms, ek, rp,ed, extra, extrapromo = 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
	
	ms = 3343;  // copse for master sorcerer

    ed = 3343;    // copse for elder druid

    rp = 3343;    // copse for royal paladin

    ek = 334;    // copse for elite knight
	
	extra = 3343;    // corpse for voc you plan to add

    extrapromo = 334;    // copse for promotion of the voc you plan to add

    /*End */

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

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

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

    else if (getVocationId() == 4) 
        return knight;
	
	else if (getVocationId() == 5)
		return ms;
		
	else if (getVocationId() == 6)
		return ed;
		
	else if (getVocationId() == 7)
		return rp;
		
	else if (getVocationId() == 8)
		return ek;
		
	else if (getVocationId() == 9)
		return extra;
		
	else if (getVocationId() == 10)
		return extrapromo;

    return defaultt;  
}
If it works, rep me, if it doesnt, tell me and i'll fix it
 
Back
Top