Postado Agosto 17, 2018 6 anos Diga em poucas palavras a base utilizada (Nome do servidor ou nome do website). 0.4 Base: 8.6 Qual erro está surgindo/O que você procura? gostaria de uma magia tipo utevo res, só que com um monstro fixo tipo Summon pet, e ele criaria o monstro q eu escolhi no script Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
Postado Agosto 17, 2018 6 anos Autor 3 horas atrás, victor4312 disse: <instant name="Pet aparecer" words="Pet aparecer" lvl="75" mana="3000" prem="0" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="petsummon.lua"> </instant> function onCastSpell(cid, var) local from,to = {x=962, y=885, z=7},{x=973, y=892, z=7} -- começo e final do mapa local from2,to2 = {x=979, y=901, z=7},{x=991, y=905, z=7} -- começo e final do mapa local playerpos = getPlayerPosition(cid) local position1 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z} local position2 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} local MaximoSummon = 1 --- Maximo de Monstros Sumonados!! local summons = getCreatureSummons(cid) if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) then doPlayerSendCancel(cid, "Você não pode usar Summons Aqui!") return true end if(table.maxn(summons) < MaximoSummon) then -- no summons local clone = doCreateMonster("Demon", playerpos) -- monster que você quer que sumone doConvinceCreature(cid, clone) doSendMagicEffect(position1, 152) doSendMagicEffect(position2, 111) doPlayerSendTextMessage(cid,27,'Demon Sumonado.') return TRUE end end testa essa o demon ta matando o player, n ta ajudando ele
Postado Agosto 17, 2018 6 anos Autor <?xml version="1.0" encoding="UTF-8"?> <monster name="Druid" nameDescription="a druid" race="blood" experience="2500" speed="390" manacost="0"> <health now="1500" max="1500"/> <look type="128" head="78" body="120" legs="68" feet="97" corpse="3128" addons="1"/> <targetchange interval="2000" chance="5"/> <strategy attack="80" defense="10"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="40" attack="40"/> <attack name="fire" interval="2000" chance="80" range="7" radius="4" target="1" min="-150" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> <attack name="fire" interval="4000" chance="20" range="7" radius="2" target="1" min="-100" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> </attacks> <defenses armor="35" defense="50"> <defense name="healing" interval="2000" chance="60" min="700" max="1000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="5000" chance="30" speedchange="700" duration="20000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <immunities> <immunity physical="0"/> <immunity energy="1"/> <immunity fire="1"/> <immunity poison="1"/> <immunity lifedrain="0"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="2"> <summon name="fire elemental" interval="1000" chance="17" max="2"/> </summons> <voices interval="5000" chance="10"> <voice sentence="Let's have a fight!"/> <voice sentence="Welcome to my battleground."/> <voice sentence="Have you seen princess Lumelia?"/> <voice sentence="I will sing a tune at your grave."/> </voices> <loot capacity="800"> <item id="2544" countmax="13" chance="27000"/> <item id="2456" countmax="1" chance="13000"/> <item id="2487" countmax="1" chance="600"/> <item id="2491" countmax="1" chance="500"/> <item id="2488" countmax="1" chance="500"/> <item id="2519" countmax="1" chance="400"/> <item id="2392" countmax="1" chance="500"/> <item id="2148" countmax="100" chance="60000"/> <item id="2681" countmax="1" chance="20000"/> <item id="2652" countmax="1" chance="8000"/> <item id="2071" countmax="1" chance="15000"/> <item id="2666" countmax="2" chance="18000"/> <item id="2164" countmax="1" chance="500"/> <item id="2744" countmax="1" chance="20000"/> <item id="2120" countmax="1" chance="20000"/> <item id="2661" countmax="1" chance="12000"/> <item id="1949" countmax="1" chance="45000"/> <item id="2377" countmax="1" chance="1500"/> <item id="2391" countmax="1" chance="1000"/> <item id="2121" countmax="1" chance="5000"/> </loot> </monster> Esse vai ser o pet q eu quero
Postado Agosto 17, 2018 6 anos Autor 5 minutos atrás, victor4312 disse: <?xml version="1.0" encoding="UTF-8"?> <monster name="Druid" nameDescription="a druid" race="blood" experience="2500" speed="390" manacost="0"> <health now="1500" max="1500"/> <look type="128" head="78" body="120" legs="68" feet="97" corpse="3128" addons="1"/> <targetchange interval="2000" chance="5"/> <strategy attack="80" defense="10"/> <flags> <flag summonable="1"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="40" attack="40"/> <attack name="fire" interval="2000" chance="80" range="7" radius="4" target="1" min="-150" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> <attack name="fire" interval="4000" chance="20" range="7" radius="2" target="1" min="-100" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> </attacks> <defenses armor="35" defense="50"> <defense name="healing" interval="2000" chance="60" min="700" max="1000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="5000" chance="30" speedchange="700" duration="20000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <immunities> <immunity physical="0"/> <immunity energy="1"/> <immunity fire="1"/> <immunity poison="1"/> <immunity lifedrain="0"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="2"> <summon name="fire elemental" interval="1000" chance="17" max="2"/> </summons> <voices interval="5000" chance="10"> <voice sentence="Let's have a fight!"/> <voice sentence="Welcome to my battleground."/> <voice sentence="Have you seen princess Lumelia?"/> <voice sentence="I will sing a tune at your grave."/> </voices> <loot capacity="800"> <item id="2544" countmax="13" chance="27000"/> <item id="2456" countmax="1" chance="13000"/> <item id="2487" countmax="1" chance="600"/> <item id="2491" countmax="1" chance="500"/> <item id="2488" countmax="1" chance="500"/> <item id="2519" countmax="1" chance="400"/> <item id="2392" countmax="1" chance="500"/> <item id="2148" countmax="100" chance="60000"/> <item id="2681" countmax="1" chance="20000"/> <item id="2652" countmax="1" chance="8000"/> <item id="2071" countmax="1" chance="15000"/> <item id="2666" countmax="2" chance="18000"/> <item id="2164" countmax="1" chance="500"/> <item id="2744" countmax="1" chance="20000"/> <item id="2120" countmax="1" chance="20000"/> <item id="2661" countmax="1" chance="12000"/> <item id="1949" countmax="1" chance="45000"/> <item id="2377" countmax="1" chance="1500"/> <item id="2391" countmax="1" chance="1000"/> <item id="2121" countmax="1" chance="5000"/> </loot> </monster> testa continuou matando @victor4312 consegui \/ <?xml version="1.0" encoding="UTF-8"?> <monster name="Druid" nameDescription="a druid" race="blood" experience="2500" speed="390" manacost="999999"> <health now="1500" max="1500"/> <look type="128" head="78" body="120" legs="68" feet="97" corpse="3128" addons="1"/> <targetchange interval="2000" chance="5"/> <strategy attack="80" defense="10"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="1"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="4"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="40" attack="40"/> <attack name="fire" interval="2000" chance="80" range="7" radius="4" target="1" min="-150" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> <attack name="fire" interval="4000" chance="20" range="7" radius="2" target="1" min="-100" max="-200"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> </attacks> <defenses armor="35" defense="50"> <defense name="mass healing" interval="2000" chance="60" min="700" max="1000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="5000" chance="30" speedchange="700" duration="20000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <immunities> <immunity physical="0"/> <immunity energy="1"/> <immunity fire="1"/> <immunity poison="1"/> <immunity lifedrain="0"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="2"> <summon name="fire elemental" interval="1000" chance="17" max="2"/> </summons> <voices interval="5000" chance="10"> <voice sentence="Let's have a fight!"/> <voice sentence="Welcome to my battleground."/> <voice sentence="Have you seen princess Lumelia?"/> <voice sentence="I will sing a tune at your grave."/> </voices> <loot capacity="800"> </loot> </monster>
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.