Trying to fix all the errors I get in my console... and for a couple of scripts I have I get this error, the script runs and works fine but it just pops up this error and it's annoying. I'm using Avesta 0.6.3.
Heres one script that makes the error pop up.
LuaScriptInterface:opNumber(). Error: Expected an integer parameter.
Heres one script that makes the error pop up.
LUA:
local pos = {x = 703, y = 603, z = 7}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, 7000) <= 0 then
doTeleportThing(cid, pos)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, 18, "You need a private account!")
end
return true
end
Last edited: