Postado Junho 25, 2018 6 anos Em 24/06/2018 em 23:16, King Laker disse: @FlavioHulk Vc usaria o comando sem precisar relogar .-. toda vez que vc quer trocar de transformação Data/xml/vocations.xml, No arquivo vocations.xml, O fromvoc="1"> Deve estar com mesmo id da voc do mesmo, Vou dar um exemplo. </vocation> <vocation id="100" name="NOME DA VOCAÇÃO" description="NOME DA VOCAÇÃO" needpremium="0" gaincap="15" gainhp="150" gainmana="150" gainhpticks="0" gainhpamount="0" gainmanaticks="0" gainmanaamount="0" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="100"> ----- <<<<<< Pode ver que aqui em fromvoc vc estar com o mesmo numero de vocation id, Então voce deve fazer isso com todas vocações do seu server, Vc deve mudar a voc de acordo com o id que estar no seu saga.lua Se tiver duvida manda seu Vocations.xml e seu saga.lua pra mim fazer, Depois mando de volta pra vc testar e ver se o problema continua... Em 23/06/2018 em 23:51, King Laker disse: Olá, meu script !saga que adquiri aqui no TK quando a pessoa reloga a talkactions buga mas não da erro nenhum na distro (se criar o personagem ou criar scroll e usar o comando ele não buga mas se relogar ele não funciona ai tem que relogar dnv pra desbugar) Script: Mostrar conteúdo oculto Mostrar conteúdo oculto local saga = { -- [ID DA VOC] = { Naruto }, [1] = { 1103, 1093, 1141, 1140, 1139, 1095, 1094, 1092, 1128, 1133, 1131, 1129, 1138, 1137, 1148}, -- [ID DA VOC] = { Sasuke }, [2] = { 1408, 1406, 1398, 1405, 1404, 1403, 1402, 1401, 1409, 1396}, } local level = 50 -- Limite para liberar uma saga nova function onSay(cid, words, param, channel) if exhaustion.check(cid, 120) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 3) return TRUE end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") exhaustion.set(cid, 120, 0.5) return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") exhaustion.set(cid, 120, 0.5) return true end if getPlayerLevel(cid) >= (tonumber(t[1])*level) then doCreatureChangeOutfit(cid, {lookType = saga[getPlayerVocation(cid)][tonumber(t[1])]}) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) exhaustion.set(cid, 120, 0.5) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") end return true end Me manda seu vocations.xml e seu saga.lua pra mim fazer pra você, Depois você tenta e me diz se o problema continua Editado Junho 25, 2018 6 anos por Wesley Alexandre2014 (veja o histórico de edições)
Postado Junho 25, 2018 6 anos Autor @Wesley Alexandre2014 se eu deixar o mesmo numero do fromvoc com a vocação, o personagem vai aparecer no account manager (mas realmente isso corrigiu o erro) Editado Junho 25, 2018 6 anos por King Laker (veja o histórico de edições) Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Junho 26, 2018 6 anos Em 25/06/2018 em 22:37, King Laker disse: @Wesley Alexandre2014 se eu deixar o mesmo numero do fromvoc com a vocação, o personagem vai aparecer no account manager (mas realmente isso corrigiu o erro) Seu erro foi resolvido então?? [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Junho 26, 2018 6 anos Autor @Vodkart não, por que não posso deixar as vocações donate no account manager Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Junho 26, 2018 6 anos tenta assim: local saga = { [1] = { 1103, 1093, 1141, 1140, 1139, 1095, 1094, 1092, 1128, 1133, 1131, 1129, 1138, 1137, 1148}, [2] = { 1408, 1406, 1398, 1405, 1404, 1403, 1402, 1401, 1409, 1396}, } local level = 50 -- Limite para liberar uma saga nova local sagastor = 578744 function onSay(cid, words, param, channel) if exhaustion.check(cid, 120) == TRUE then doPlayerSendCancel(cid, "You are exhausted.") doSendMagicEffect(getCreaturePosition(cid), 3) return true end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if not saga[getPlayerVocation(cid)] then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao pode trocar de saga.") exhaustion.set(cid, 120, 0.5) return true end local t = string.explode(param, ",") if(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Could not understand.") return true end if not (tonumber(t[1])) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite o número da saga que você deseja.") exhaustion.set(cid, 120, 0.5) return true end if tonumber(t[1]) > #saga[getPlayerVocation(cid)] or tonumber(t[1]) < 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Essa saga não existe.") exhaustion.set(cid, 120, 0.5) return true end if getPlayerLevel(cid) < (tonumber(t[1])*level) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Desculpe, você precisa de level "..(tonumber(t[1]) * level).." usar essa saga.") return true end local out = saga[getPlayerVocation(cid)][tonumber(t[1])] doCreatureChangeOutfit(cid, {lookType = out}) setPlayerStorageValue(cid, sagastor, ":"..out..",:"..getPlayerVocation(cid)) doSendMagicEffect(getThingPos(cid), saga[getPlayerVocation(cid)].effect) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce escolheu uma nova saga!") doPlayerSay(cid, "Saga!!", TALKTYPE_ORANGE_1) exhaustion.set(cid, 120, 0.5) return true end e no login.lua antes do ultimo 'return true' adc isso: local sagastor = 578744 if getPlayerStorageValue(cid, sagastor) ~= -1 then local w = tostring(getPlayerStorageValue(cid, sagastor)):gsub(':', ''):explode(',') doCreatureChangeOutfit(cid, {lookType = tonumber(w[1])}) doPlayerSetVocation(cid, tonumber(w[2])) end [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
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.