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

C++ how to send opcodes from server to otclient 1.3

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

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.
 
Back
Top