Witam,
dałby radę ktoś przerobić/zrobić skrypt do actions na minimalny i maxymalny lvl?
Tutaj jest tylko minimalny lvl ale jak ktoś dałby radę tutaj dodać jeszcze max lvl to byłoby świetnie.
dałby radę ktoś przerobić/zrobić skrypt do actions na minimalny i maxymalny lvl?
Tutaj jest tylko minimalny lvl ale jak ktoś dałby radę tutaj dodać jeszcze max lvl to byłoby świetnie.
Code:
local newnPosition = {x=1242, y=949, z=6}
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
local vipstatus = getPlayerStorageValue(cid,storageValue)
local pos2 ={x=1240, y=949, z=6}
if getPlayerLevel(cid) >= 10000 then
local playerpos = getPlayerPosition(cid)
local doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if playerpos.x == pos2.x then
if item.actionid == 2079 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doSendAnimatedText(getPlayerPosition(cid), "Witamy!", TEXTCOLOR_YELLOW)
end
else
doTeleportThing(cid,pos2)
doSendMagicEffect(pos2, 10)
end
else
doPlayerSendCancel(cid, "Masz za niski level! (Wymagany: 10000 lvl")
end
return true
end