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

TFS 1.X+ Yellow Skull TFS 1.5

LeOnArd0

Member
Joined
Jan 24, 2010
Messages
76
Reaction score
14
I have a problem with a yellow skull in TFS 1.5 downgrade by @Nekiro

I had even commented on the post by @potinho, but in order not to disturb his solution, which is from another version, I decided to create this topic.

My test is:

Player 3 (Orange) - Attack Player 1 (get white skull)
Player 1 (Blue) - Attack Player 2 (get white skull)
Player 2 (Black) - Attack Player 3 (get yellow)

3e5d2eafe0202c5d256c35900cc86257.png

Until then, everything is fine.

Player 1 (Blue) continues to attack Player 2 (Black) (keeping the battle active, the one with the yellow skull on Player 3 (Orange)).

Player 3 (Orange) loses the white skull, however, Player 2 (Black) remains yellow skull for him (it should come out with Player 3 (Orange) white skull).

5c39ff4ff84a63aae529d02787f7fea6.png


I believe the problem is in players.cpp, I tried some configurations, but without success.

Could anyone help me with this?

Complete code:

Thanks very much!
Leo
 
Last edited:

C++:
        for (const auto& playerAttackers : g_game.getPlayers()) {
            Player* attacker = playerAttackers.second;
            if (attacker->hasAttacked(this))
            {
                attacker->removeAttacked(this);
                sendCreatureSkull(attacker);
            }
        }
 
Back
Top