function onStepIn(cid, item, pos, fromPos)
if isPlayer(cid) then
local new
if doPlayerRemoveMoney(cid, 3000) then
new = {x=100, y=100, z=7}
else
new = {x=100, y=100, z=7}
doPlayerSendCancel(cid, 'You need 3k to enter!')
end
doTeleportThing(cid, new)
if not hasCondition(cid, CONDITION_GAMEMASTER, GAMEMASTER_INVISIBLE) then
doSendMagicEffect(pos, 10)
doSendMagicEffect(new, 10)
end
end
end
[30/07/2011 11:36:02] Lua Script Error: [MoveEvents Interface]
[30/07/2011 11:36:02] data/movements/scripts/payegiptos.lua:onStepIn
[30/07/2011 11:36:02] data/movements/scripts/payegiptos.lua:11: attempt to call global 'hasCondition' (a nil value)
[30/07/2011 11:36:02] stack traceback:
[30/07/2011 11:36:02] [C]: in function 'hasCondition'
[30/07/2011 11:36:02] data/movements/scripts/payegiptos.lua:11: in function <data/movements/scripts/payegiptos.lua:1>