baziol1235
New Member
- Joined
- Sep 14, 2015
- Messages
- 10
- Reaction score
- 0
Hi Guys ! i've read a lot of threads on otland and others forums, but still i can't add more than 255 magic effects. I was trying to change uint8 to uint16 in TFS source code:
I also tried to change this in const.h TFS source:
I tried compile my own OTclient with uint16 config :
but it didn't work , so i have question what can i do more, or what am i doing wrong now ? And is there posibility to change the max limit of magiceffects animation in original tibia 8.54 client ? If there is posibility can U help me guys ? Please (PS. OFC i've got edited Tibia.dat to 381 magiceffects) sorry for my english
Code:
void ProtocolGame::AddMagicEffect(NetworkMessage_ptr msg,const Position& pos, uint16_t type)
{
msg->AddByte(0x83);
msg->AddPosition(pos);
msg->AddU16(type + 1);
}
void ProtocolGame::sendMagicEffect(const Position& pos, uint16_t type)
{
if(type > MAGIC_EFFECT_LAST || !canSee(pos))
return;
NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
AddMagicEffect(msg, pos, type);
}
}
Code:
MAGIC_EFFECT_LAST = 0x187,
//for internal use, dont send to client
MAGIC_EFFECT_NONE = 0x187,
MAGIC_EFFECT_UNKNOWN = 0xFFFF
Code:
int effectId;
effectId = msg->getU16();