Ir para conteúdo

Featured Replies

Postado

no firstitems.lua troca por esse :

 
local config = {
    [1] = {
        --equipment spellbook, wand of vortex, magician's robe, mage hat, studded legs, leather boots, scarf
        {{2175, 1}, {2190, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}},
        --container rope, shovel, mana potion
        {{2120, 1}, {2554, 1}, {2789, 10}}
    },
    [2] = {
        --equipment spellbook, snakebite rod, magician's robe, mage hat, studded legs, leather boots scarf
        {{2175, 1}, {2182, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}},
        --container rope, shovel, mana potion
        {{2120, 1}, {2554, 1}, {2789, 10}}
    },
    [3] = {
        --equipment dwrven shield, 5 spear, ranger's cloak, ranger legs scarf, legion helmet
        {{2525, 1}, {2389, 5}, {2660, 1}, {8923, 1}, {2643, 1}, {2661, 1}, {2480, 1}},
        --container rope, shovel, health potion, bow, 50 arrow
        {{2120, 1}, {2554, 1}, {2789, 10}, {2456, 1}, {2544, 50}}
    },
    [4] = {
        --equipment dwarven shield, steel axe, brass armor, brass helmet, brass legs scarf
        {{2525, 1}, {8601, 1}, {2465, 1}, {2460, 1}, {2478, 1}, {2643, 1}, {2661, 1}},
        --container jagged sword, daramian mace, rope, shovel, health potion
        {{8602, 1}, {2439, 1}, {2120, 1}, {2554, 1}, {2789, 10}}
    }
}


function onLogin(cid)
    local player = Player(cid)
    local targetVocation = config[player:getVocation():getId()]
    if not targetVocation then
        return true
    end


    if player:getLastLoginSaved() == 0 then
        for i = 1, #targetVocation[1] do
            player:addItem(targetVocation[1][i][1], targetVocation[1][i][2])
        end
     
        local backpack = player:addItem(1988)
        for i = 1, #targetVocation[2] do
            backpack:addItem(targetVocation[2][i][1], targetVocation[2][i][2])
        end
    end
    return true
end

e verifica se tem essa linha no creaturescripts.xml :

<event type="login" name="FirstItems" event="script" value="firstitems.lua"/>

Editado por Matsuo (veja o histórico de edições)

Postado

Creio que equipando os characters sample também daria certo, mais a opção do Matsuo é a mais viável caso funcione.

rnem.png

Cloud Anti-DDoS Ilimitado por apenas R$49.99/m

«•Tráfego Ilimitado

«•Opção de Tráfego ilimitado para servidores dedicados com 100Mbps ou 1Gbps de uplink, use sem medo.

«•Conexão 100% Garantida

«•Registro Imediato

«•Upgrade via Painel

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo