Pawcio6
Member
- Joined
- Sep 26, 2009
- Messages
- 143
- Solutions
- 4
- Reaction score
- 15
Hello
I work on TFS 0.3.6 and latest otclient.I changed in server side all uint8_t to uint16_t in " addMagicEffect " and " sendMagicEffect " and removed limit with magic_effect_last but still cant view more than 255 . Dont know what should i change here
after changing first addbyte any magic effects dont show , tried edit second addbyte to AddU16 but it dont delete the limit. I must change something in otclient source or files ? should i edit something here ?
Please help and sorry for my poor english
Thank you
I work on TFS 0.3.6 and latest otclient.I changed in server side all uint8_t to uint16_t in " addMagicEffect " and " sendMagicEffect " and removed limit with magic_effect_last but still cant view more than 255 . Dont know what should i change here
Code:
void ProtocolGame::AddMagicEffect(NetworkMessage_ptr msg,const Position& pos, uint16_t type)
{
msg->AddByte(0x83);
msg->AddPosition(pos);
msg->AddByte(type + 1);
}
Code:
void Game::addMagicEffect(const SpectatorVec& list, const Position& pos, uint16_t effect, bool ghostMode/* = false*/)
{
if(ghostMode)
return;
Player* player = NULL;
for(SpectatorVec::const_iterator it = list.begin(); it != list.end(); ++it)
{
if((player = (*it)->getPlayer()))
player->sendMagicEffect(pos, effect);
}
}
Thank you