• 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 0.X TF 0.3.6pl1 Magic effects limit

peha

New Member
Joined
Apr 21, 2020
Messages
12
Reaction score
0
Hello I can't find old post which showed how to increase magic effects limit to 254 from 68.

EDIT:
I edited unit8_t to unit16_t in methods addMagicEffect/sendMagicEffect protocolgame.cpp/.h, player.h, game.cpp/.h, but it doesn't do anything
 
Last edited:
 
Solution
I edited source and still can't display magic effects after 68. When i wrote /z 100 no error, no message, nothing happen.

magiceffects.lua edited like this
Lua:
function onSay(cid, words, param, channel)
maxEffects = 65535

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

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

EDIT:
Okay I figured it out. Had to make some changes in code from link above.
 
Last edited:
Back
Top