Postado Outubro 9, 2017 7 anos Vocação Sasuke não aparece no account Manager Fiz Algo errado ? Transforms local config = { --[vocation id] = { level, nova voc, looktype, efeito} -- Naruto -- [1] = { 29, 2, 29, 9}, [2] = { 25, 3, 28, 9}, [3] = { 25, 4, 30, 9}, [4] = { 25, 5, 31, 9}, [5] = { 25, 6, 32, 9}, [6] = { 25, 7, 33, 9}, [7] = { 25, 10, 34, 9}, -- Sasuke -- [11] = { 25,12, 35, 9}, [12] = { 50, 13, 36, 9}, [13] = { 75, 14, 37, 9}, [14] = { 100, 15, 38, 9}, [15] = { 125, 16, 39, 9}, [16] = { 150, 17, 40, 9}, [17] = { 175, 18, 41, 9}, } function onSay(cid, words, param, channel) local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true end if (getPlayerStorageValue(cid,112) > 0) then return doPlayerSendCancel(cid, "Voce Nao Pode Se Transforma,Voce Agora Virou Da Akatsuki") end local voc = config[getPlayerVocation(cid)] if voc then if getPlayerLevel(cid) >= voc[1] then doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Transformou!") local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.") end else doPlayerSendCancel(cid, "Você não pode se Transformar!") end return true end Vocations.xml <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="200" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="1"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="2" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="1"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="3" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="2"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="4" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="3"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="5" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="4"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="6" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="5"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="7" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="6"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="11" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="17"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="12" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="17"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="13" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="18"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="14" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="19"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="15" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="20"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="16" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="21"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="17" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="22"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> </vocations> Sem Título-2.bmp
Postado Outubro 9, 2017 7 anos Solução o fromvoc ta com os ids errados, o numero que você coloca la são sempre o da vocation anterior exceto o primeiro de cada nova vocation como fiz abaixo: <vocation id="11" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="11"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="12" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="11"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="13" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="12"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="14" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="13"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="15" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="14"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="16" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="15"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="17" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="16"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> </vocations>
Postado Outubro 9, 2017 7 anos Autor 39 minutos atrás, WhiteBubble disse: o fromvoc ta com os ids errados, o numero que você coloca la são sempre o da vocation anterior exceto o primeiro de cada nova vocation como fiz abaixo: <vocation id="11" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="11"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="12" name="Sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="11"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="13" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="12"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="14" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="13"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="15" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="14"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="16" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="15"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> <vocation id="17" name="sasuke" description="a sasuke" needpremium="0" gaincap="20" gainhp="300" gainmana="300" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.1" attackspeed="300" soulmax="300" gainsoulticks="60" fromvoc="16"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation> </vocations> vo testa maninho Sem Título-2.bmp
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.