Postado Agosto 1, 2019 5 anos Estou tendo esse erro no terminal do meu servidor, a magia aparece, porem ele nao sumona os clones, alguem ajuda? clone protetor.lua Spoiler function onCastSpell(cid, var) local cloth, health, maxhealth, summons = getCreatureOutfit(cid), getCreatureHealth(cid), getCreatureMaxHealth(cid), getCreatureSummons(cid) local MaximoSummon = 2 if(table.maxn(summons) < MaximoSummon) then local pos = getPlayerPosition(cid) local bpos = {x=pos.x+2, y = pos.y, z = pos.z} local farAwayPos = {x = 590, y = 464, z = 7} -- SUMMON 1 local Teste1 = doCreateMonster("Clone Protetor", farAwayPos) doConvinceCreature(cid, Teste1) addEvent(doTeleportThing, 100, Teste1, pos) addEvent(doSendMagicEffect, 100, pos, 10) return true end return true end
Postado Agosto 2, 2019 5 anos Bom dia, você adcionou o código do monster no arquivo "monsters.xml"? Spoiler Dbo Absalon/GOD Revolution Citar "Sábio é aquele que conhece os limites da própria ignorância." Sócrates
Postado Agosto 2, 2019 5 anos Autor 1 hora atrás, The Nayol disse: Bom dia, você adcionou o código do monster no arquivo "monsters.xml"? Bom dia, adicionei sim <monster name="Clone Protetor" file="Clone Protetor.xml"/>
Postado Agosto 2, 2019 5 anos Pode me mandar o script da spell e também o do monster, por favor? Spoiler Dbo Absalon/GOD Revolution Citar "Sábio é aquele que conhece os limites da própria ignorância." Sócrates
Postado Agosto 2, 2019 5 anos Autor 2 minutos atrás, The Nayol disse: Pode me mandar o script da spell e também o do monster, por favor? monsters/Clone Protetor.xml Spoiler <?xml version="1.0" encoding="UTF-8"?> <monster name="Protetor" nameDescription="an Protetor" race="energy" experience="0" speed="1000" manacost="1000"> <health now="1500000" max="1500000"/> <look type="667"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="1"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="1"/> <flag convinceable="1"/> <flag pushable="1"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="1000" min="-5000" max="-10000"/> <attack name="Zeno" interval="2000" chance="50" min="-10000" max="-15000"/> </attacks> <defenses armor="0" defense="0"> </defenses> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="0"/> <immunity outfit="1"/> <immunity invisible="0"/> </immunities> </monster> spells/clone protetor.lua Spoiler function onCastSpell(cid, var) local cloth, health, maxhealth, summons = getCreatureOutfit(cid), getCreatureHealth(cid), getCreatureMaxHealth(cid), getCreatureSummons(cid) local MaximoSummon = 2 if(table.maxn(summons) < MaximoSummon) then local pos = getPlayerPosition(cid) local bpos = {x=pos.x+2, y = pos.y, z = pos.z} local farAwayPos = {x = 590, y = 464, z = 7} -- SUMMON 1 local Teste1 = doCreateMonster("Clone Protetor", farAwayPos) doConvinceCreature(cid, Teste1) addEvent(doTeleportThing, 100, Teste1, pos) addEvent(doSendMagicEffect, 100, pos, 10) return true end return true end
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.