Boa tarde glr do XTIBIA, sou novato aqui e hoje mais cedo eu estava pesquisando novas script's, talkactions e entre outro, e acabei achando um topico com o nome de "Clone-se", nesse topico o cara postou um script que você usa em item e consegue clonar seu proprio char, copiando o "HP", a "MANA", a "SPEED" e entre outros, gostaria de saber se alguem sabe como editar esse script, para poder copiar os skills também, tipo: "atk" e "def
Aqui vai o script que ele postou:
[data/monsters/Clone.xml]
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Clone" nameDescription="a clone" race="undead" experience="0" speed="0" manacost="0">
<health now="1" max="1"/>
<look typeex="1112" />
<targetchange interval="5000" chance="0"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="0"/>
<flag illusionable="0"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="0"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="100"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="40" attack="28"/>
<attack name="drunk" interval="1000" chance="12" length="3" spread="3">
<attribute key="areaEffect" value="fire"/>
</attack>
</attacks>
<defenses armor="1" defense="1"/>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="1"/>
<immunity poison="0"/>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
e o linha do arquivo XML
<monster name="Clone" file="Clone.xml"/>
Se alguem souber como editar ai do jeito que eu pedi, agradeceria muito (: vlw aii gente =D
obs; sou novato aqui e não sei como por dentro de um spoiler =/
Faltou a outra parte do "Script"
me desculpe gente, essa parte fica no "Actions"
function onUse(cid, item, fromPosition, itemEx, toPosition)
max_summons = 0 -----------------|||||| 0 = 1 clone (max) ---------- 1 = 2 clones (max) ---------- 2 = 3 clones (max) .
if(table.maxn(getCreatureSummons(cid)) <= max_summons) then
local clon = doCreateMonster("Clone",getPlayerPosition(cid))
doCreatureChangeOutfit(clon, getCreatureOutfit(cid))
setCreatureMaxHealth(clon, getCreatureHealth(cid))
doCreatureAddHealth(clon, getCreatureMaxHealth(clon))
setCreatureMaxHealth(clon, getCreatureMaxHealth(cid) - 1)
doCreatureAddHealth(clon, 1)
doSendDistanceShoot(getPlayerPosition(cid), getCreaturePosition(clon), 4)
doSendMagicEffect(getCreaturePosition(clon),37)
doConvinceCreature(cid, clon)
doChangeSpeed(clon, getCreatureSpeed(cid))
else
doPlayerSendCancel(cid,"Your clone is summoned.")
end
return TRUE
end
e a linha do actions XML
<action itemid="3955" event="script" value="cloner.lua" />
pronto !!!
vlw ai gente =D