Ceejzor
Murica Born N Raised!
I have been getting this error in my console.
Is there something wrong with this?
MagicWallEntrance.lua
Anyway thanks in advance~
PHP:
[29/03/2010 11:40:13] [Error - MoveEvents Interface]
[29/03/2010 11:40:13] data/movements/scripts/PitsOfInferno/MagicWallEntrance.lua:onStepIn
[29/03/2010 11:40:14] Description:
[29/03/2010 11:40:14] ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: attempt to compare boolean with number
[29/03/2010 11:40:14] stack traceback:
[29/03/2010 11:40:14] ...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:5: in function <...ovements/scripts/PitsOfInferno/MagicWallEntrance.lua:1>
Is there something wrong with this?
MagicWallEntrance.lua
PHP:
function onStepIn(cid, item, pos)
local position = {x=412, y=1414, z=9}
local position2 = {x=398, y=1380, z=9}
if (getPlayerItemCount(cid, 1970) < 1) then
doTeleportThing(cid, position)
doSendMagicEffect(position,10)
else
doTeleportThing(cid, position2)
doSendMagicEffect(position2,10)
end
end
Anyway thanks in advance~