data\creaturescripts\scripts\bicho.lua
local tbl = {
["Gerador"] = {pos = {x=160, y=54, z=7}}}
function onDeath(cid, corpse, killer)
local bicho = tbl[getCreatureName(cid)]
if bicho then
doTeleportThing(killer[1], bicho.pos)
doSendMagicEffect(bicho.pos, CONST_ME_TELEPORT)
end
return TRUE
end
creaturescripts.xml
<event type="death" name="bicho" event="script" value="bicho.lua"/>
é adiciona isso no bicho
<script>
<event name="bicho"/>
</script>
ficando assim
<?xml version="1.0" encoding="UTF-8"?> <monster name="Gerador" nameDescription="a Gerador" race="undead" experience="2500" speed="0" manacost="0"> <health now="110000" max="110000"/> <look typeex="8635"/> <targetchange interval="5000" chance="20"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="0"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="100"/> </flags> <attacks> <attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-999" max="-1000"> <attribute key="areaEffect" value="energy"/> </attack> </attacks> <defenses armor="1" defense="1"/> <immunities> <immunity poison="1"/> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <script> <event name="bicho"/> </script> </monster>




info
Grupo: Artesão
Registrado: 20/11/12
Posts: 142
Reputação: +19
Char no Tibia: Deleted
Como Diz O Titulo
È 1 Gerador (No Caso 1 monstro)
Que Vai Teleporta O Player Que Der O Ultimo Hit Nele
Pra Position 160 54 7 Quando O Player Matalo !
Monstro Aqui
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Gerador" nameDescription="a Gerador" race="undead" experience="2500" speed="0" manacost="0">
<health now="110000" max="110000"/>
<look typeex="8635"/>
<targetchange interval="5000" chance="20"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="0"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="100"/>
</flags>
<attacks>
<attack name="energy" interval="2000" chance="100" radius="10" target="0" min="-999" max="-1000">
<attribute key="areaEffect" value="energy"/>
</attack>
</attacks>
<defenses armor="1" defense="1"/>
<immunities>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
</monster>