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

Problem with magic effects limit.

Croow

learning LUA :)
Joined
Aug 17, 2015
Messages
25
Reaction score
4
Hello, is it possible to have more than 255 magic effects in client? I mean when I overruns this number then effects repeat.

Here is my magiceffect.lua
Code:
function onSay(cid, words, param, channel)
effects_count = 408

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

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

----------------------
TFS 0.3.6pl~8.54
 
Back
Top