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

TFS 1.2 How to write a code in protocolgame that sends effects on the client

Tbol

Well-Known Member
Joined
Apr 7, 2019
Messages
526
Reaction score
54
How can i put list of effect IDs that should get tile offset -1x, -1y, so all effects send by source and LUA will get 1 tile offset.
 
Create array with effect ids in const.h, check if id of a effect about to be send is in that array, if true then edit position.
 
In ProtocolGame, sendMagicEffect.
C++:
    if(otclientV8 && type == CONST_ME_RESPAWNORMALCLIENT) //This is effect for respawn monsters normal client and otclient
    {
        type = CONST_ME_RESPAWN;
        pos.x += 1; //i guess something like this
    }

'x' cannot be modified because it is being accessed through a const object theforgottenserver
 
C++:
    if(otclientV8 && type == CONST_ME_RESPAWNORMALCLIENT) //This is effect for respawn monsters normal client and otclient
    {
        type = CONST_ME_RESPAWN;
        pos.x += 1; //i guess something like this
    }

'x' cannot be modified because it is being accessed through a const object theforgottenserver
bump
 
Back
Top