• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Skulls on NPC/Monsters

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,175
Solutions
17
Reaction score
481
Location
Sweden
Hello,
I've seen some OTS In later versions TFS 1.2/1.3 that has skulls on mobs, how would this be done?
 
I know its old post, but ive been fixing similar problem (monster refuse to get skulled in client via .xml / monster.cpp)

solution is

protocolgame.cpp

in function
Code:
void ProtocolGame::AddCreature(NetworkMessage& msg, const Creature* creature, bool known, uint32_t remove)

change:
Code:
msg.addByte(player->getSkullClient(otherPlayer));
to
Code:
msg.addByte(player->getSkullClient(creature));
 
I know its old post, but ive been fixing similar problem (monster refuse to get skulled in client via .xml / monster.cpp)

solution is

protocolgame.cpp

in function
Code:
void ProtocolGame::AddCreature(NetworkMessage& msg, const Creature* creature, bool known, uint32_t remove)

change:
Code:
msg.addByte(player->getSkullClient(otherPlayer));
to
Code:
msg.addByte(player->getSkullClient(creature));

Thank you very much!
 
Back
Top