Hello everybody!
So I'm trying to make different corpses for each vocation..
I used the script by Doggynub, wich works flawlessly, but the problem is that it can't "see" the sex of the player... So I tried a lot of ways to make it work with sex but I couldn't...
Here is the script:
it is in player.cpp
I also tried getPlayerSex() == 0 but also didnt work, this is the error I get when I try to comp:
Could anyone help me please ? =p
Thanks already A LOT!!!
So I'm trying to make different corpses for each vocation..
I used the script by Doggynub, wich works flawlessly, but the problem is that it can't "see" the sex of the player... So I tried a lot of ways to make it work with sex but I couldn't...
Here is the script:
it is in player.cpp
Code:
uint16_t malehuman, femalehuman, dwarf, elf, orc, defaultt = 0;
/*Config */
malehuman = 6080; // copse for sorcerer
femalehuman = 6081; // copse for sorcerer
dwarf = 6007; // copse for druid
elf = 6003; // copse for paladin
orc = 5966; // copse for knight
defaultt = 6080; // copse for vocations not mentioned up, like if he has no vocation
/*End */
if (getVocationId() == 1 and Sex % 2 || getVocationId() == 7 and Sex % 2 )
return malehuman;
return femalehuman;
else if (getVocationId() == 2 || getVocationId() == 8)
return dwarf;
else if (getVocationId() == 3 || getVocationId() == 9)
return elf;
else if (getVocationId() == 4 || getVocationId() == 5 || getVocationId() == 6 || getVocationId() == 10 || getVocationId() == 11 || getVocationId() == 12)
return orc;
return defaultt;
}
I also tried getPlayerSex() == 0 but also didnt work, this is the error I get when I try to comp:
Code:
E:\player.cpp In member function `virtual uint16_t Player::getLookCorpse() const':
776 E:\player.cpp `Sex' was not declared in this scope
780 E:\player.cpp expected primary-expression before "else"
780 E:\player.cpp expected `;' before "else"
783 E:\player.cpp expected primary-expression before "else"
783 E:\player.cpp expected `;' before "else"
786 E:\player.cpp expected primary-expression before "else"
786 E:\player.cpp expected `;' before "else"
E:\\dev-cpp\Makefile.win [Build Error] [obj//player.o] Error 1
Could anyone help me please ? =p
Thanks already A LOT!!!