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

How to add new effects in server please help

llamavani

Trinitium Rubidia Style!
Joined
Sep 17, 2009
Messages
173
Reaction score
3
Location
Guadalajara, Mexico
ok friends my problem is that when i modify my tibia spr and tibia dat in my own server, i modify the effects and i add new effects but i cant see it when i try to use it online :( do you have a guide to create new effects in your server? (or can by too distance effects)
 
Tested in TFS 0.3.6pl1.r95(8.54)

Find in the protocolgame.cpp:

void ProtocolGame::sendDistanceShoot(const Position& from, const Position& to, uint8_t type)
{
if(type > SHOOT_EFFECT_LAST || (!canSee(from) && !canSee(to)))
return;

NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
AddDistanceShoot(msg, from, to, type);
}
}



void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
{
if(type > MAGIC_EFFECT_LAST || !canSee(pos))
return;

NetworkMessage_ptr msg = getOutputBuffer();
if(msg)
{
TRACK_MESSAGE(msg);
AddMagicEffect(msg, pos, type);
}
}

Remove:

this:

if(type > SHOOT_EFFECT_LAST || (!canSee(from) && !canSee(to)))
return;




and this:

if(type > MAGIC_EFFECT_LAST || !canSee(pos))
return;

Good loock

Obs: Sou brasileiro!!!!
 
Back
Top