donacool
Mapper Scripter Ot Owner
- Joined
- Jan 15, 2010
- Messages
- 97
- Reaction score
- 0
hey everyone this is a script that i made that if you are
level 100+ you can pass but if you are lower you can pass
replace 474 for the tile id
replace 1125 for the uid of the tile(you should add it in the map)
replace 100 for the level you want for the required level
Please give me rep++
level 100+ you can pass but if you are lower you can pass
replace 474 for the tile id
replace 1125 for the uid of the tile(you should add it in the map)
replace 100 for the level you want for the required level
Code:
local tileid = 474
local tileuid = 1125
local levelRequired = 100
local cancel = "You dont have enough level!"
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if isPlayer(cid) and item.itemid == tileid and item.uid == tileuid then
if getPlayerLevel(cid) < levelRequired then
doTeleportThing(cid, fromPos, TRUE)
doPlayerSendCancel(cid, cancel)
end
return true
end
return true
end
return true