• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

68 effects :C

yandere

New Member
Joined
Feb 1, 2014
Messages
76
Reaction score
4
hey in tfs is the largest number of effects spells is 68. how to increase the limit of effects teeth showed them spells

dzi4yw.jpg
 
You need to edit in source and in the lua script in talkaction. But remember tibia client has 255 as limited effects.
 
How much effects does your server have? What kind of server and also server version?
 
In sources you need to find protocolgame.cpp file and edit it as follows:

Find this line:
PHP:
void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
And change this function to this:
PHP:
void ProtocolGame::sendMagicEffect(const Position& pos, uint8_t type)
{
    if(type >= MAGIC_EFFECT_NONE || !canSee(pos))
        return;

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

Then you need to compile new ForgottenServer.exe, here is guide step by step :
http://otland.net/threads/compiling...atest-source-code-last-update-02-12-2010.166/

Finally you need to edit data/talkactions/magiceffect.lua file to this:
Code:
function onSay(cid, words, param, channel)
ilosc_efektow = 234

param = tonumber(param)
if(not param or param < 0 or param > ilosc_efektow) then
doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than "..ilosc_efektow..".")
return true
end

doSendMagicEffect(getCreaturePosition(cid), param)
return true
end
 
Back
Top