FellipeAlbs
New Member
- Joined
- Sep 5, 2017
- Messages
- 11
- Reaction score
- 0
hello I need to send information from the server to otclient, this information would be to update the name of a summon, I still don't understand mt well about opcodes, I made a code but it doesn't work
I'm trying to send opcodes to spectator so that in otclient I set a new name for the creature, sorry for the english that was done with the translator.
C++:
SpectatorVec spectators;
g_game.map.getSpectators(spectators, pokemon->getMaster()->getPosition(), true, true);
for (Creature* creature : spectators)
{
if (Player* tmpPlayer = creature->getPlayer())
{
g_game.parsePlayerExtendedOpcode(tmpPlayer->getGUID(), 15, pokemon->getName());
}
}
I'm trying to send opcodes to spectator so that in otclient I set a new name for the creature, sorry for the english that was done with the translator.