Cloner System , Sumona um Monstro , com Mesmo Outfit que o Seu Cor etc... Mesma Life e Tudo!!Gastando Mana Tipo um Jutso Clones Da Sombra
vá em
Data>Monster
Crie um Arquivo.XML e Renomeie para Cloner
coloque isso dentro!
<?xml version="1.0" encoding="UTF-8"?> <monster name="Clone" nameDescription="a clone" race="undead" experience="0" speed="400" manacost="0"> <health now="10" max="10000"/> <look type="21" head="20" body="30" legs="40" feet="50" corpse="1397"/> <targetchange interval="50000" chance="0"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="1"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="0"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="15" attack="7"/> <attack name="arrow" interval="1000" chance="40" min="-2" max="-4"/> <attack name="throwing star" interval="3000" chance="50" min="-3" max="-5"/> <attack name="throwing knife" interval="2000" chance="60" min="-2" max="-4"/> </attacks> <defenses armor="1" defense="5"/> <defense name="haste" interval="3000" chance="40"/> <defense name="light healing" interval="6000" chance="70" min="20" max="40"/> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="0"/> </immunities> <loot> </loot> </monster>
Agora em Monster.xml
Bote isso
<monster name="Clone" file="clone.xml" />
Ok Agora voce ja tem o Monstro , Agora Vamos a Spell vá em Data>Spells>Scripts e coloque isso dentro!!
function onCastSpell(cid, var) ----COPY PLAYER STATUS local playerpos = getPlayerPosition(cid) local cloth = getCreatureOutfit(cid) local health = getCreatureHealth(cid) local maxhealth = getCreatureMaxHealth(cid) ----CLONE THE PLAYER local clone = doCreateMonster("Clone", playerpos) doConvinceCreature(cid, Clone) setCreatureMaxHealth(clone, maxhealth) doCreatureAddHealth(clone, health) doSetCreatureOutfit(clone, cloth, -1) doSendMagicEffect(playerpos, 2) return TRUE end
a Tag em Spells.xml
<instant name="Shadow Clone" words="utevo ani vid" selftarget="0" aggressive="0" direction="1" lvl="40" maglv="20" mana="300" soul="0" exhaustion="1000" prem="0" enabled="1" script="clone.lua"><vocation id="3"/><vocation id="7"/</instant>
Muinto Obrigado espero que Gostem!!
Print Screen: