Postado Dezembro 12, 2012 12 anos Esse é um script de skills iniciais do meu ot serv , que muda os skills dos players novos , mais kina esta vindo com skills certos , mage tbm , mas pally vem com shielding certo e ml tbm , mais a distance fica em 10 e nao muda se alguem tem como me ajudar por favor! function onLogin(cid) local playerVoc = getPlayerVocation(cid) local reqTries = getPlayerRequiredSkillTries local skillStor = 56364 local gotSkills = getPlayerStorageValue(cid, 56364) if playerVoc == 1 or 5 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,80))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 2 or 6 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 80)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,80))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 3 or 7 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 115)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 90)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,30))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 4 or 8 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 100)) doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 100)) doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 100)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 100)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,10))) setPlayerStorageValue(cid, skillStor, 1) end return TRUE end QUALQUER DUVIDA ESTOU ON!
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.