jolle_jkpg
Das kebab
I need rl rook level 2+ bridge.
Using 0.3.6
Thanks for any help.
Using 0.3.6
Thanks for any help.
function onStepIn(cid, item, fromPosition, toPosition)
if getPlayerLevel(cid) >= 2 then
doTeleportThing(cid, toPosition)
else
doTeleportThing(cid, fromPosition)
doPlayerSendCancel(cid, "You need level 2 to pass.")
end
return true
end
function onStepIn(cid, item, fromPosition, toPosition)
if getPlayerLevel(cid) < 2 then -- or == 1 then
doTeleportThing(cid, fromPosition)
doPlayerSendCancel(cid, "You need level 2 to pass.")
end
return true
end
Level depending Level Door & Tile
1000 -> maximumDoorLevel
+ Required Level
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) >= 2 then
if getCreaturePosition(cid).y < toPosition.y then
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y+1,z=toPosition.z}, TRUE)
else
doTeleportThing(cid, {x=toPosition.x,y=toPosition.y-1,z=toPosition.z}, TRUE)
end
else
doPlayerSendCancel(cid, "You need level 2 to pass.")
end
return TRUE
end
[Warning - Event::loadScript] Event onStepIn not found (data/movements/scripts/rook_leveltile.lua)
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) >= 1 then
doPlayerSendTextMessage(cid, 22, "You need level 2 to pass.")
doTeleportThing(cid, fromPosition)
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
if getPlayerLevel(cid) < 2 then
doPlayerSendTextMessage(cid, 22, "You need level 2 to pass.")
doTeleportThing(cid, fromPosition)
end
return TRUE
end