• 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!

Solved Reward on Lvl 200 Item Each voc will have his Own Item

Ns Sparkz

Just a Normal Ns King
Joined
Mar 6, 2011
Messages
466
Reaction score
25
Location
Egypt
Lua:
function onAdvance(cid, skill, oldLevel, newLevel)
    local config = {
        storage = 29213, -- Storage which player get after advance 200 lvl
        level = 200, -- Which level player needs to get reward
        cash = {2160, 50}, -- {ID of Item, Amount of Item}
        text = "You reached 200 lvl, blalablabl" -- Text after advance
    }
    if(skill == SKILL__LEVEL and newLevel >= config.level) then
        if(getPlayerStorageValue(cid, config.storage) ~= 1) then
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, config.text)
            doPlayerAddItem(cid, config.cash[1], config.cash[2])
            setPlayerStorageValue(cid, config.storage, 1)
            return true
        end
        return true
    end
    return true
end


I want to have a different item for each voc. could someone edit this script?
 
Back
Top