• 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.X+ Error spell console

Ichito123

New Member
Joined
Nov 25, 2013
Messages
36
Reaction score
3
Hello Everyone i have problem i use this spell:
And i have this error. Any Ideas how i can repair this script ?


Lua Script Eror: [Spell Interface]
data/spells/script/my/ue/mort.lua:eek:nCastSpell
LuaSctiptInterface::luaAddEvent<>. Argument #4 in unsafe
stack trackback:
[C]: in funcion 'addEvent'
data/spells/scripts/my/ue/mort.lua:57: in function <data/spells/scripts/my/ue/mort.lua:53>
Post automatically merged:

 

Attachments

Solution
Use search function before creating such topic. This issue occured number of times.
search: Search results for query: Argument # in unsafe (https://otland.net/search/700999/?q=Argument+%23+in+unsafe&o=relevance)
e.g. post: Solved - What is wrong? Lua (https://otland.net/threads/what-is-wrong-lua.249077/#post-2421082)

Your cid parameter is probably an object of a Creature not just an ID.
Obtain an ID of this object: cid:getId()

addEvent(RunPart,100,combat1_Brush,cid:getId(),var,dfcombat1_Brush,startPos)
Use search function before creating such topic. This issue occured number of times.
search: Search results for query: Argument # in unsafe (https://otland.net/search/700999/?q=Argument+%23+in+unsafe&o=relevance)
e.g. post: Solved - What is wrong? Lua (https://otland.net/threads/what-is-wrong-lua.249077/#post-2421082)

Your cid parameter is probably an object of a Creature not just an ID.
Obtain an ID of this object: cid:getId()

addEvent(RunPart,100,combat1_Brush,cid:getId(),var,dfcombat1_Brush,startPos)
 
Solution
Back
Top