Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local config = {
- level_change = 65,
- sets = {
- [3] = { -- Vocation 3[Paladin]
- [1] = 2498, -- Head[Royal Helmet]
- [2] = nil, -- Necklace[Nada]
- [3] = nil, -- Backpack[Nada]
- [4] = 8891, -- Armor[Paladin Armor]
- [5] = 2520, -- Mão Direita[Demon shield]> Supondo que o escudo esteja sempre na mão Direita.
- [6] = nil, -- Mão Esquerda[Nada]
- [7] = 2470, -- Legs[Golden Legs]
- [8] = 2195, -- Feet[Boots of Haste]
- [9] = nil, -- Ring[Nada]
- [10] = nil,-- Ammo[Nada]
- },
- [4] = { -- Vocation 4[Knight]
- [1] = 2498, -- Head[Royal Helmet]
- [2] = nil, -- Necklace[Nada]
- [3] = nil, -- Backpack[Nada]
- [4] = 2487, -- Armor[Crown Armor]
- [5] = 2520, -- Mão Direita[Demon shield]> Supondo que o escudo esteja sempre na mão Direita.
- [6] = nil, -- Mão Esquerda[Nada]
- [7] = 2470, -- Legs[Golden Legs]
- [8] = 2645, -- Feet[Steel Boots]
- [9] = nil, -- Ring[Nada]
- [10] = nil,-- Ammo[Nada]
- },
- }
- }
- function onAdvance(cid, skill, oldLevel, newLevel)
- if newLevel == config.level_change and getPlayerStorageValue(cid, 712) < 1 then
- local voc = config.sets[getPlayerVocation(cid)]
- if not voc then
- return true
- end
- local newset = ""
- for slot = 1, 10 do
- local item = voc[slot]
- if item then
- doTransformItem(getPlayerSlotItem(cid, slot).uid, item)
- newset = "\n" .. getItemNameById(item)
- end
- end
- setPlayerStorageValue(cid, 712, 1)
- doPlayerSendTextMessag(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Seu set foi transformado para:".. newset)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement