• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Minimalny i Maxymalny LVL

szatan1x

Professional Lua
Joined
May 10, 2011
Messages
803
Reaction score
27
Location
Poland
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.
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
 

Similar threads

Back
Top Bottom