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

Skulls on NPC/Monsters

Joriku

Working in the mines, need something?
Joined
Jul 16, 2016
Messages
1,097
Solutions
15
Reaction score
384
Location
Sweden
YouTube
Joriku
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