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

Drawing a looktype on a creature based on currently equipped headgear.

Inside game.cpp (server), function Game::playerMoveThing I added this
C++:
    SpectatorVec::iterator it;
    SpectatorVec list;

    getSpectators(list, player->getPosition(), false, true);
    for(it = list.begin(); it != list.end(); ++it)
    {
           Player* tmpPlayer;
        if((tmpPlayer = (*it)->getPlayer()))
            tmpPlayer->sendCreatureAppear(player);
    }
So creatures are updated every time somebody in range moves something (includes equipping stuff).
 
Back
Top