local gate1000 = MoveEvent()
function gate1000.onStepIn(cid, item, position, fromPosition)
local level = 1000
if getPlayerLevel(cid) >= level then
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be at least level "..level.." to pass here!")
doSendMagicEffect(getPlayerPosition(cid), 3)
end
return TRUE
end
gate1000:aid(50994)
gate1000:register()
After passing all Familiar have bug
lua:4: attempt to compare number with boolean
stack traceback:
[C]: in function '__le'
function gate1000.onStepIn(cid, item, position, fromPosition)
local level = 1000
if getPlayerLevel(cid) >= level then
else
doTeleportThing(cid, fromPosition)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to be at least level "..level.." to pass here!")
doSendMagicEffect(getPlayerPosition(cid), 3)
end
return TRUE
end
gate1000:aid(50994)
gate1000:register()
After passing all Familiar have bug
lua:4: attempt to compare number with boolean
stack traceback:
[C]: in function '__le'