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

C++ Activate new outfits

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;
}
 
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;
}
C++:
bool Player::canWear(uint32_t lookType) const
{
    if (group->access) {
        return true;
    }

    if (lookType >= 161 && lookType <= 190) {
        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;
}
 
Back
Top