Ir para conteúdo
  • 0

Alguem me ajuda com esse script!


ravely13

Pergunta

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!

 

 

Quote

 

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!

Link para o comentário
Compartilhar em outros sites

10 respostass a esta questão

Posts Recomendados

  • 0

Tente assim:

 

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, 100))

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

 

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...