Hello
I'm trying to make movement script. It's easy - tile on which you cant step if you haven't enough lvl
easy, huh? BUT... doesn't work, i dont know why
both scripts dont work help please ^_^
I'm trying to make movement script. It's easy - tile on which you cant step if you haven't enough lvl
easy, huh? BUT... doesn't work, i dont know why
Code:
local pos = getPlayerPosition(cid)
local tppos = {x=1000, y=1000, z=7}
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) <= 10000 then
doTeleportThing(cid, tppos)
doPlayerSendTextMessage(cid, 19, "Zostales teleportowany")
end
end
Code:
function onStepIn(cid, item, pos)
local npos = {x=840, y=1782, z=7}
if isPlayer(cid) == TRUE then
if getPlayerLevel(cid) < 10000 then
else
doTeleportThing(cid,npos)
doSendMagicEffect(npos,2)
end
end
end
both scripts dont work help please ^_^