jestem pro
That is the question
- Joined
- Apr 20, 2013
- Messages
- 650
- Solutions
- 14
- Reaction score
- 87
Hello, my dears. I wanna parse groupID(coz OTClient doesn't have this).
And I stuck in game.cpp(last what must be added)
This is extendedOpcode it's for an example:
[/LIST]
But I really really really don't know how to make it
(
How to add that groupId(GOD, CM e.t.c)
Could someone tell me? it's so important for me.
Thank you
@edit
Has this the right to work how it should:
But how put groupID in here coz int32_t doesnt want it in getGroupId(HERE)?
And I stuck in game.cpp(last what must be added)
C++:
void Game::parsePlayerGroupID(uint32_t playerId, uint8_t groupID)
{
Player* player = getPlayerByID(playerId);
if(player || player->isRemoved())
return;
Group* group = player->getGroupId(groupID);
?????????????????????????
}
This is extendedOpcode it's for an example:
C++:
[LIST=1]
[*]void Game::parsePlayerExtendedOpcode(uint32_t playerId, uint8_t opcode, const std::string& buffer
[*]{
[*] Player* player = getPlayerByID(playerId);
[*] if(!player || player->isRemoved())
[*] return;
[*]
[*] CreatureEventList extendedOpcodeEvents = player->getCreatureEvents(CREATURE_EVENT_EXTENDED_OPCODE);
[*] for(CreatureEventList::iterator it = extendedOpcodeEvents.begin(); it != extendedOpcodeEvents.end(); ++it)
[*] (*it)->executeExtendedOpcode(player, opcode, buffer);
[*]}
But I really really really don't know how to make it

How to add that groupId(GOD, CM e.t.c)
Could someone tell me? it's so important for me.
Thank you
@edit
Has this the right to work how it should:
C++:
int32_t Game::parsePlayerGroupID(uint32_t playerId, uint8_t groupID)
{
Player* player = getPlayerByID(playerId);
if(!player || player->isRemoved())
return 1;
return player->getGroupId();
}
But how put groupID in here coz int32_t doesnt want it in getGroupId(HERE)?
Last edited: