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

white, yellow, green Skull does not disappear

GOD Kubus

New Member
Joined
Dec 23, 2012
Messages
60
Reaction score
0
Hello, i need help from white, yellow and green Skull. I do not like to disappear disappear PZ
I make Skull system all work good. Dont work if lose pz. Lose pz and lose Skull

Sorry for my English ;p Im from Poland
 
Becouse when you lose PZ, you are losing skull too. Except to red and black.
@andu


hi mate bro please im trying to make skull keep with the player after lose pz or when walk over pz

i have read over all the forum that i need edit here but i can figure out how do it properly
Code:
Skulls_t Player::getSkull() const
{
if(hasFlag(PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
return SKULL_NONE;

return skull;
}






also i had been reading the player.cpp file and think here should be the solution but when i delete some parts i get error on compiling


Code:
void Player::setSkullEnd(time_t _time, bool login, Skulls_t _skull)
{
    if(g_game.getWorldType() != WORLDTYPE_OPEN
        || hasFlag(PlayerFlag_NotGainInFight) ||
        hasCustomFlag(PlayerCustomFlag_NotGainSkull))
        return;

    bool requireUpdate = false;
    if(_time > time(NULL))
    {
        requireUpdate = true;
        setSkull(_skull);
    }
    else if(skull == _skull)
    {
        requireUpdate = true;
        setSkull(SKULL_NONE);
        _time = 0;
    }

    if(requireUpdate)
    {
        skullEnd = _time;
        if(!login)
            g_game.updateCreatureSkull(this);
    }
}


sorry for revival thi thread

i need help
 
Back
Top