void ProtocolGame::AddCreature(NetworkMessage_ptr msg, const Creature* creature, bool known, uint32_t remove)
if(!known)
{
msg->AddU16(0x61);
msg->AddU32(remove);
msg->AddU32(creature->getID());
std::string nickname= creature->getName();
if (const Player* target = creature->getPlayer())
nickname = "Level " + target->getLevel() + nickname;
msg->AddString(creature->getHideName() ? "" : nickname);
Military Rank or somethink like thatRang?
i think it needs bothMilitary Rank or somethink like that
I need that
Level 13 Gicu
and down is character in game.
I can change this in C++ or in OTC?
Do you can help me some lines?i think it needs both
i have no idea about your TFS version and iam not good in otc but i know how to do it ( not sure if it will work ), and i know nothing about your military systemDo you can help me some lines?
Or maybe the level next to the character's name?i have no idea about your TFS version and iam not good in otc but i know how to do it ( not sure if it will work ), and i know nothing about your military system
void ProtocolGame::AddCreature(NetworkMessage_ptr msg, const Creature* creature, bool known, uint32_t remove)
if(!known)
{
msg->AddU16(0x61);
msg->AddU32(remove);
msg->AddU32(creature->getID());
std::string nickname= creature->getName();
if (const Player* target = creature->getPlayer())
nickname = "Level " + target->getLevel() + nickname;
msg->AddString(creature->getHideName() ? "" : nickname);
TFS 1.3engine version...?
if something like 0.3+
you can trying edit it in protocolgame.cpp
find it:
below:C++:void ProtocolGame::AddCreature(NetworkMessage_ptr msg, const Creature* creature, bool known, uint32_t remove)
C++:if(!known) { msg->AddU16(0x61); msg->AddU32(remove); msg->AddU32(creature->getID());
try with something like this:
C++:std::string nickname= creature->getName(); if (const Player* target = creature->getPlayer()) nickname = "Level " + target->getLevel() + nickname;
over "}" from condition if(!known) add:
C++:msg->AddString(creature->getHideName() ? "" : nickname);