function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
newnPosition = {x=1000, y=1000, z=7}
if level => 80
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
else
doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
end
return true
end
Nie działa mi.Code:function onStepIn(cid, item, position, fromPosition) local level = getPlayerLevel(cid) newnPosition = {x=1000, y=1000, z=7} if level => 80 doTeleportThing(cid,newnPosition) doSendMagicEffect(newnPosition, 10) else doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1) end return true end
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
newnPosition = {x=1000, y=1000, z=7}
if level >= 80
then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
else
doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
end
return true
end
function onStepIn(cid, item, position, fromPosition)
local level = getPlayerLevel(cid)
local newnPosition = {x=1000, y=1000, z=7}
if level >= 80 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
else
doCreatureSay(cid, "Too low lvl", TALKTYPE_ORANGE_1)
end
return true
end