Esse é meu 3º trabalho aki no xtibia... entao comentem plx
abra data/spells/scripts, copie um bloco de notas e apague td q estiver dentro e ponha isso:
local combat = createCombatObject()
local NORMAL_CORPSE_STAGE_I = {5965, 6022, 6080, 6082, 3128, 3229, 3130, 2830, 3131, 3132, 3132}
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
local arr = {
{0, 0, 0, 1, 1, 1,0 , 0, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 3, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onTargetTile(cid, pos)
local position = {x=pos.x, y=pos.y, z=pos.z, stackpos=255}
local item = getThingfromPos(position)
if item.itemid > 0 then
if isInArray(NORMAL_CORPSE_STAGE_I, item.itemid) == 1 then
doRemoveItem(item.uid,1)
doSendMagicEffect(pos, CONST_ME_POFF)
local creature = doSummonCreature("clone das sombras", pos)
doConvinceCreature(cid, creature)
end
end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
E renomeie como kage bushin no jutsu
depois de feito isso abra spells.xml e acrescente:
<instant name="clone das sombras" words="kage bushin no jutsu" lvl="100" maglv="0" mana="500" soul="0" exhaustion="1" prem="1" enabled="1" script="kage bushin no jutsu.lua"><vocation id="2"/><vocation id="1"/><vocation id="3"/><vocation id="4"/><vocation id="6"/><vocation id="5"/><vocation id="7"/><vocation id="8"/><vocation id="9"/><vocation id="10"/><vocation id="11"/><vocation id="12"/></instant>
a magia esta pronta, mas para faze-la funcionar, vc tem q adicionar o monstro clone das sombras, entao abre data/monster e copie qualque xml e coloque isso dentro:
<?xml version="1.0" encoding="UTF-8"?><monster name="Clone Das Sombras" species="human" nameDescription="a clone das sombras" race="blood" experience="0" speed="390" manacost="0">
<health now="1800" max="1800"/>
<look type="131" head="95" body="95" legs="95" feet="95" corpse="3128"/>
<targetchange interval="60000" chance="0"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag staticattack="50"/>
<flag lightlevel="0"/>
<flag lightcolor="0"/>
<flag targetdistance="1"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-800" max="-2750"/>
<attack name="spear" interval="1000" chance="100" min="-720" max="-1800"/>
<attack name="berserk" interval="5000" chance="700"/>
</attacks>
<defenses armor="43" defense="45"/>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity poison="1"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="1"/>
</immunities>
<voices interval="2000" chance="5">
<voice sentence="No prisoners!"/>
<voice sentence="By Bolg's Blood!"/>
<voice sentence="You're no match for me!"/>
<voice sentence="NO MERCY!"/>
<voice sentence="MINE!"/>
</voices>
<loot>
<item id="2148" countmax="10" chance1="100000" chancemax="0"/>
<item id="2148" countmax="100" chance1="100000" chancemax="0"/>
<item id="2476" chance="1000"/>
<item id="2489" chance="1428"/>
<item id="2490" chance="6666"/>
<item id="2381" chance="5000"/>
<item id="2389" countmax="1" chance1="20000" chancemax="0"/>
<item id="1987" chance="100000">
<inside>
<item id="2463" chance="2500"/>
<item id="2148" countmax="15" chance1="100000" chancemax="0"/>
<item id="2120" chance="20000"/>
<item id="2387" chance="6666"/>
<item id="2377" chance="2857"/>
<item id="2430" chance="1333"/>
<item id="2414" chance="909"/>
<item id="2195" chance="555"/>
</inside>
</item>
</loot>
</monster>
e renomeie como clone das sombras
agora abra o monsters.xml (para adicionar o monstro) e coloque:
<monster name="clone das sombras" file="clone das sombras.xml" />
E ai esta o spell kage bushin no jutsu
Antes
Depois
Obs: para usa-lo, tem que ter corpos (human) envolta de vc.
Ja que muita gente nao esta achando o monster.xml, ele fica na pasta dos monsters... o meu esta em ordem alfabetica entao é soh procurar por M
Muita gente tambm esta falando que os summon mata o criador... eu nao sei oq deu mas no meu ele funciona normal (Yourots)