Postado Julho 1, 2012 13 anos olá,então...no meu servidor de war não está funcionando o start skills T_T está no creat.....xml : <event type="login" name="StartSkills" event="script" value="startskills.lua"/> e o script : function onLogin(cid) local playerVoc = getPlayerVocation(cid) local reqTries = getPlayerRequiredSkillTries local skillStor = 56364 local gotSkills = getPlayerStorageValue(cid, 56364) if playerVoc == 5 and gotSkills == -1 then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,85))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 6 and gotSkills == -1 then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,85))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 7 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 110)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 90)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,10))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 8 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 110)) doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 110)) doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 110)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 105)) doPlayerAddMagLevel(cid, 8) setPlayerStorageValue(cid, skillStor, 1) end return TRUE end Já troquei o script pra vários,o executável,tudo e o msm erro :F estava tudo normal...do nada aconteceu isso. Hot Summer,a Hot Hot Summer! (8) Contato = [email protected]
Postado Julho 2, 2012 13 anos Não cheguei a testar, mas dá uma olhada aew: local Vocs = { [7] = { h = { [SKILL_DISTANCE] = 110, [SKILL_SHIELD] = 90, }, mana = true }, [8] = { h = { [SKILL_AXE] = 110, [SKILL_SWORD] = 110, [SKILL_CLUB] = 110, [SKILL_SHIELD] = 105, }, }, } function onLogin(cid) local reqTries = getPlayerRequiredSkillTries if (getPlayerStorageValue(cid, 56364) ~= -1) then return true end if (Vocs[getPlayerVocation(cid)]) then for i, v in pairs(Vocs[getPlayerVocation(cid)].h) do doPlayerAddSkillTry(cid, i, reqTries(cid, i, v)) end if (Vocs[getPlayerVocation(cid)].mana) then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid, 10))) end else doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid, 85))) end return setPlayerStorageValue(cid, 56364, 1) end Editado Julho 2, 2012 13 anos por MaXwEllDeN (veja o histórico de edições) -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Postado Julho 2, 2012 13 anos Já é login Kimosz, não sei se é em todas as versões, mas quando é login não precisa registrar. Editado Julho 2, 2012 13 anos por MaXwEllDeN (veja o histórico de edições) -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
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.