Ir para conteúdo
  • 0

Matando o poke e indo para um lugar REP+


MaxxSilva

Pergunta

3 respostass a esta questão

Posts Recomendados

  • 0

data/creaturescript/scripts/killMonster.lua:

 

local playerTeleport = {x = 340, y = 840, z = 15}


function onDeath(cid, corpse, killer)
   
  doTeleportThing(killer[1], playerTeleport)
  doSendMagicEffect(getThingPos(killer[1]), 10)




return TRUE
end

Tag:

<event type="death" name="killMonster" event="script" value="killMonster.lua"/>

Depois vá no XML no pokémon e registre o evento nele:

<script>
<event name="killMonster"/>
</script>
Link para o comentário
Compartilhar em outros sites

  • 0

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Regirock" nameDescription="a regirock" race="rock" experience="5780" speed="337" manacost="0">
<health now="1200" max="1200"/>
<look type="1094" head="60" body="80" legs="95" feet="113" corpse="11954"/>
<targetchange interval="10000" chance="0"/>
<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="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="97"/>
<flag runonhealth="0"/>
<flag hungerdelay="16"/>
</flags>
<attacks>
<attack name="melee" interval="3000" chance="100" range="1" min="-50" max="-100"/>
<attack name="Iron Tail" interval="1758" chance="30" range="1"/>
<attack name="Horn Attack" interval="1758" chance="30" range="1"/>
<attack name="Stomp" interval="3052" chance="29" range="3"/>
<attack name="Earthshock" interval="2393" chance="28" range="4"/>
<attack name="Horn Drill" interval="2805" chance="29" range="2"/>
<attack name="Earthquake" interval="3393" chance="28" range="4"/>
<attack name="Shockwave" interval="3040" chance="28" range="6"/>
<attack name="Rock Throw" interval="4393" chance="28" range="4"/>
<attack name="Falling Rocks" interval="4993" chance="28" range="4"/>
<attack name="Epicenter" interval="5393" chance="28" range="4"/>
<attack name="Rest" interval="15393" chance="28" range="4"/>
</attacks>
<defenses armor="0" defense="0"/>
<voices interval="5000" chance="10">
<voice sentence="REGIROCK!"/>
</voices>
<loot>
<item id="11451" chance="100" count="1" countmax="1"/>
<item id="12337" chance="20000" countmax="100"/>
<item id="12177" chance="10000" countmax="2"/>
</loot>
<script>
<event name="Spawn"/>
</script>
<event name="killMonster"/>
</script>
</monster>

Ta dando erro no monster e o xml dele ta assim ta certo?


Ja achei o erro foi mal deu certo
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...