Postado Março 1, 2018 7 anos Amigos, boa noite. Ando com um problema que esta me impedindo de colocar meu enforced online. Ja tentei de tudo, e estou ficando desanimado Creio que o problema seja simples: Nao consigo configurar as Skills iniciais! Por mais que eu coloque as skills que eu quero no startskill.lua, os players nascem bugados. Meu tfs é o 0.4 dev 3777 8.6, e eu uso SQL, por acc/manager simples. Segue aqui minha startskill.lua: function onLogin(cid) local playerVoc = getPlayerVocation(cid) local reqTries = getPlayerRequiredSkillTries local skillStor = 56364 local gotSkills = getPlayerStorageValue(cid, 56364) if playerVoc == 1 and gotSkills == -1 then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,70))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 2 and gotSkills == -1 then doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,70))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 3 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 75)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 70)) doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,20))) setPlayerStorageValue(cid, skillStor, 1) elseif playerVoc == 4 and gotSkills == -1 then doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 80)) doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 80)) doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 80)) doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 70)) doPlayerAddMagLevel(cid, 9) setPlayerStorageValue(cid, skillStor, 1) end return TRUE end Por favor, me ajudem! Valeu
Postado Março 9, 2018 7 anos Este tópico foi movido para a área correta. Esta é uma mensagem automática!Pedimos que leia as regras do fórum! Mostrar conteúdo oculto This topic has been moved to the correct area. This is an automated message!Please read the forum rules. https://github.com/Cjaker/ , _ , ( o o ) /'` ' `'\ ESTOU TE OBSERVANDO O_O |'''''''| |\\'''//| """
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.