Piifafa
Member
- Joined
- Apr 16, 2023
- Messages
- 67
- Reaction score
- 16
I have a question, I want to activate new clothes, but I don't know how to make it work, I use a nostauris style version on the server, I just want to add the columns which would be from number 161 to 190.
C++:
bool Player::canWear(uint32_t lookType) const
{
if (group->access) {
return true;
}
if (getSex() == PLAYERSEX_MALE) {
if (lookType >= 230 && lookType <= 257 && isPremium()) {
return true;
} else if (lookType >= 230 && lookType <= 233) {
return true;
}
} else if (getSex() == PLAYERSEX_FEMALE) {
if (lookType >= 259 && lookType <= 284 && isPremium()) {
return true;
} else if (lookType >= 259 && lookType <= 262) {
return true;
}
}
return false;
}