Ravauvial
Member
how do i put level to the gate of expertise above level 999 like what for level 1000, 2000, 3000, 4000, 5000...
how to make a door past 66k? :/ ...
<action uniqueid="UID" script="lvldoor.lua"/>
function onUse(cid, item, frompos, item2, topos)
if item.uid == UID then
if getPlayerLevel(cid) >= 66000 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,'Stand in front of the door.')
return 1
end
doTeleportThing(cid,pos)
else
doPlayerSendTextMessage(cid,22,'You need 66.000lvl to pass this door.')
end
return 1
else
return 0
end
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local p = getPlayerPosition(cid)
if getPlayerLevel(cid) >= 66000 then
if p.x ~= toPosition.x and p.y ~= toPosition.y then
doTransformItem(item.uid, item.itemid+1)
doTeleportThing(cid, toPosition, true)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only players of level 66000 and higher may enter this door.")
end
return true
end