Os clones nao aparecem quando o player usa a magia...
clonegiru.lua
Spoiler
function onCastSpell(cid, var)
local cloth, health, maxhealth, summons = getCreatureOutfit(cid), getCreatureHealth(cid), getCreatureMaxHealth(cid), getCreatureSummons(cid)
local MaximoSummon = 1
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}
Pergunta
jvls 0
Os clones nao aparecem quando o player usa a magia...
clonegiru.lua
function onCastSpell(cid, var)
local cloth, health, maxhealth, summons = getCreatureOutfit(cid), getCreatureHealth(cid), getCreatureMaxHealth(cid), getCreatureSummons(cid)
local MaximoSummon = 1
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 Giru", farAwayPos)
doConvinceCreature(cid, Teste1)
addEvent(doTeleportThing, 100, Teste1, pos)
addEvent(doSendMagicEffect, 100, pos, 10)
return true
end
return true
end
Clone Giru.xml
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Giru" nameDescription="an Giru" race="energy" experience="0" speed="1000" manacost="1000">
<health now="2000000" max="2000000"/>
<look type="450"/>
<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="Bomb" interval="2000" chance="50" min="-30000" max="-35000"/>
</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>
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados