Ir para conteúdo

Magias Poketibia


Nitrox

Posts Recomendados

Bom, Preciso de ajuda em dois scipts;

O primeiro é o passive,

é uma magia que o pokemon usa sozinho, mais que somente quando é atacado.

Era pra se assim, com monstros atacando ele,

 

passive.png

 

mais fica desse jeito, mandando sozinho

 

passivemagmar.jpg

 

Eu fui no Script do pokemon e adicionei isso,

 

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Electabuzz" nameDescription="a Electabuzz" race="electric" experience="30" speed="220" manacost="340">

<health now="75" max="75"/>

<look type="281" head="0" body="0" legs="0" feet="0" corpse="6065"/>

<targetchange interval="5" chance="1000"/>

<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 runonhealth="0"/>

</flags>

<attacks>

<attack name="melee" interval="2000" skill="35" attack="45"/>

</attacks>

<defenses armor="20" defense="20">

<defense name="passiveelecta" interval="5000" chance="30" min="-300" max="-500">

</defense>

<defense name="passiveelecta2" interval="9000" chance="50" min="-2500" max="-3500">

</defense>

</defenses>

<elements>

<element energyPercent="22"/>

<element holyPercent="11"/>

<element earthPercent="-3"/>

<element deathPercent="-4"/>

</elements>

<voices interval="5000" chance="10">

<voice sentence="Buzz!"/>

</voices>

</monster>

 

O problema é que, ele fica usando direto!

Mesmo sem nenhum monstro o atacando!

Esse é a primeira duvida!

 

A segunda é a seguinte;

Numa magia continua como essa:

 

eartr.png

 

A magia teria de seguir o pokemon, bom é só isso se alguém puder me ajudar,

Agradeço desde já!

Muito Obrigado!

Link para o comentário
Compartilhar em outros sites

pra magia de seguir pokemon, vai ter que postar o script dela aqui que eu faço pra você

 

mas no xml de cada monstro, tudo que você adiciona em defense, ele usa toda hora, e tudo que você coloca em attacks, ele usa só quando estiver batalhando...

é só passar suas magias de defense para attack

Link para o comentário
Compartilhar em outros sites

 

local acombat1 = createCombatObject()

local acombat2 = createCombatObject()

local acombat3 = createCombatObject()

local acombat4 = createCombatObject()

local acombat5 = createCombatObject()

local acombat6 = createCombatObject()

local acombat7 = createCombatObject()

local acombat8 = createCombatObject()

local acombat9 = createCombatObject()

local acombat10 = createCombatObject()

local acombat11 = createCombatObject()

local acombat12 = createCombatObject()

local acombat13 = createCombatObject()

local acombat14 = createCombatObject()

local acombat15 = createCombatObject()

local acombat16 = createCombatObject()

local acombat17 = createCombatObject()

local acombat18 = createCombatObject()

local acombat19 = createCombatObject()

local acombat20 = createCombatObject()

local acombat21 = createCombatObject()

local acombat22 = createCombatObject()

local acombat23 = createCombatObject()

local acombat24 = createCombatObject()

local acombat25 = createCombatObject()

local acombat26 = createCombatObject()

local acombat27 = createCombatObject()

local acombat28 = createCombatObject()

local acombat29 = createCombatObject()

local acombat30 = createCombatObject()

local acombat31 = createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat11 = createCombatObject()

setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat11, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat12 = createCombatObject()

setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat12, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat13 = createCombatObject()

setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat13, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat14 = createCombatObject()

setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat14, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat15 = createCombatObject()

setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat15, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat16 = createCombatObject()

setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat16, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat17 = createCombatObject()

setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat17, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat18 = createCombatObject()

setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat18, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

 

local combat19 = createCombatObject()

setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat19, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat20 = createCombatObject()

setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat20, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat21 = createCombatObject()

setCombatParam(combat21, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat21, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat21, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat22 = createCombatObject()

setCombatParam(combat22, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat22, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat22, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat23 = createCombatObject()

setCombatParam(combat23, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat23, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat23, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat24 = createCombatObject()

setCombatParam(combat24, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat24, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat24, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat25 = createCombatObject()

setCombatParam(combat25, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat25, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat25, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat26 = createCombatObject()

setCombatParam(combat26, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat26, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat26, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat27 = createCombatObject()

setCombatParam(combat27, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat27, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat27, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat28 = createCombatObject()

setCombatParam(combat28, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat28, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat28, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat29 = createCombatObject()

setCombatParam(combat29, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat29, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat29, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat30 = createCombatObject()

setCombatParam(combat30, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat30, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat30, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

local combat31 = createCombatObject()

setCombatParam(combat31, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat31, COMBAT_PARAM_EFFECT, 65)

setCombatFormula(combat31, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

arr1 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0,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 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

}

 

arr31 = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 0, 1, 1, 2, 1, 1, 0, 0, 0},

{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

local area4 = createCombatArea(arr4)

local area5 = createCombatArea(arr5)

local area6 = createCombatArea(arr6)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

local area11 = createCombatArea(arr11)

local area12 = createCombatArea(arr12)

local area13 = createCombatArea(arr13)

local area14 = createCombatArea(arr14)

local area15 = createCombatArea(arr15)

local area16 = createCombatArea(arr16)

local area17 = createCombatArea(arr17)

local area18 = createCombatArea(arr18)

local area19 = createCombatArea(arr19)

local area20 = createCombatArea(arr20)

local area21 = createCombatArea(arr21)

local area22 = createCombatArea(arr22)

local area23 = createCombatArea(arr23)

local area24 = createCombatArea(arr24)

local area25 = createCombatArea(arr25)

local area26 = createCombatArea(arr26)

local area27 = createCombatArea(arr27)

local area28 = createCombatArea(arr28)

local area29 = createCombatArea(arr29)

local area30 = createCombatArea(arr30)

local area31 = createCombatArea(arr31)

setCombatArea(acombat1, area1)

setCombatArea(acombat2, area2)

setCombatArea(acombat3, area3)

setCombatArea(acombat4, area4)

setCombatArea(acombat5, area5)

setCombatArea(acombat6, area6)

setCombatArea(acombat7, area7)

setCombatArea(acombat8, area8)

setCombatArea(acombat9, area9)

setCombatArea(acombat10, area10)

setCombatArea(acombat11, area11)

setCombatArea(acombat12, area12)

setCombatArea(acombat13, area13)

setCombatArea(acombat14, area14)

setCombatArea(acombat15, area15)

setCombatArea(acombat16, area16)

setCombatArea(acombat17, area17)

setCombatArea(acombat18, area18)

setCombatArea(acombat19, area19)

setCombatArea(acombat20, area20)

setCombatArea(acombat21, area21)

setCombatArea(acombat22, area22)

setCombatArea(acombat23, area23)

setCombatArea(acombat24, area24)

setCombatArea(acombat25, area25)

setCombatArea(acombat26, area26)

setCombatArea(acombat27, area27)

setCombatArea(acombat28, area28)

setCombatArea(acombat29, area29)

setCombatArea(acombat30, area30)

setCombatArea(acombat31, area31)

 

function onTargetTile(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

function onTargetTile2(cid, pos)

doCombat(cid,combat2,positionToVariant(pos))

end

 

function onTargetTile3(cid, pos)

doCombat(cid,combat3,positionToVariant(pos))

end

 

function onTargetTile4(cid, pos)

doCombat(cid,combat4,positionToVariant(pos))

end

 

function onTargetTile5(cid, pos)

doCombat(cid,combat5,positionToVariant(pos))

end

 

function onTargetTile6(cid, pos)

doCombat(cid,combat6,positionToVariant(pos))

end

 

function onTargetTile7(cid, pos)

doCombat(cid,combat7,positionToVariant(pos))

end

 

function onTargetTile8(cid, pos)

doCombat(cid,combat8,positionToVariant(pos))

end

 

function onTargetTile9(cid, pos)

doCombat(cid,combat9,positionToVariant(pos))

end

 

function onTargetTile10(cid, pos)

doCombat(cid,combat10,positionToVariant(pos))

end

 

function onTargetTile11(cid, pos)

doCombat(cid,combat11,positionToVariant(pos))

end

 

function onTargetTile12(cid, pos)

doCombat(cid,combat12,positionToVariant(pos))

end

 

function onTargetTile13(cid, pos)

doCombat(cid,combat13,positionToVariant(pos))

end

 

function onTargetTile14(cid, pos)

doCombat(cid,combat14,positionToVariant(pos))

end

 

function onTargetTile15(cid, pos)

doCombat(cid,combat15,positionToVariant(pos))

end

 

function onTargetTile16(cid, pos)

doCombat(cid,combat16,positionToVariant(pos))

end

setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")

 

 

setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")

 

 

setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")

 

 

setCombatCallback(acombat5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5")

 

 

setCombatCallback(acombat6, CALLBACK_PARAM_TARGETTILE, "onTargetTile6")

 

 

setCombatCallback(acombat7, CALLBACK_PARAM_TARGETTILE, "onTargetTile7")

 

 

setCombatCallback(acombat8, CALLBACK_PARAM_TARGETTILE, "onTargetTile8")

 

 

setCombatCallback(acombat9, CALLBACK_PARAM_TARGETTILE, "onTargetTile9")

 

 

setCombatCallback(acombat10, CALLBACK_PARAM_TARGETTILE, "onTargetTile10")

 

 

setCombatCallback(acombat11, CALLBACK_PARAM_TARGETTILE, "onTargetTile11")

 

 

setCombatCallback(acombat12, CALLBACK_PARAM_TARGETTILE, "onTargetTile12")

 

 

setCombatCallback(acombat13, CALLBACK_PARAM_TARGETTILE, "onTargetTile13")

 

 

setCombatCallback(acombat14, CALLBACK_PARAM_TARGETTILE, "onTargetTile14")

 

 

setCombatCallback(acombat15, CALLBACK_PARAM_TARGETTILE, "onTargetTile15")

 

 

setCombatCallback(acombat16, CALLBACK_PARAM_TARGETTILE, "onTargetTile16")

 

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, acombat1, parameters.var)

end

 

local function onCastSpell2(parameters)

doCombat(parameters.cid, acombat2, parameters.var)

end

 

local function onCastSpell3(parameters)

doCombat(parameters.cid, acombat3, parameters.var)

end

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, acombat4, parameters.var)

end

 

local function onCastSpell5(parameters)

doCombat(parameters.cid, acombat5, parameters.var)

end

 

local function onCastSpell6(parameters)

doCombat(parameters.cid, acombat6, parameters.var)

end

 

local function onCastSpell7(parameters)

doCombat(parameters.cid, acombat7, parameters.var)

end

 

local function onCastSpell8(parameters)

doCombat(parameters.cid, acombat8, parameters.var)

end

 

local function onCastSpell9(parameters)

doCombat(parameters.cid, acombat9, parameters.var)

end

 

local function onCastSpell10(parameters)

doCombat(parameters.cid, acombat10, parameters.var)

end

 

local function onCastSpell11(parameters)

doCombat(parameters.cid, acombat11, parameters.var)

end

 

local function onCastSpell12(parameters)

doCombat(parameters.cid, acombat12, parameters.var)

end

 

local function onCastSpell13(parameters)

doCombat(parameters.cid, acombat13, parameters.var)

end

 

local function onCastSpell14(parameters)

doCombat(parameters.cid, acombat14, parameters.var)

end

 

local function onCastSpell15(parameters)

doCombat(parameters.cid, acombat15, parameters.var)

end

 

local function onCastSpell16(parameters)

doCombat(parameters.cid, acombat16, parameters.var)

end

 

 

 

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 300, parameters)

addEvent(onCastSpell4, 400, parameters)

addEvent(onCastSpell5, 500, parameters)

addEvent(onCastSpell6, 600, parameters)

addEvent(onCastSpell7, 700, parameters)

addEvent(onCastSpell8, 800, parameters)

addEvent(onCastSpell9, 900, parameters)

addEvent(onCastSpell10, 1000, parameters)

addEvent(onCastSpell11, 1100, parameters)

addEvent(onCastSpell12, 1200, parameters)

addEvent(onCastSpell13, 1300, parameters)

addEvent(onCastSpell14, 1400, parameters)

addEvent(onCastSpell15, 1500, parameters)

addEvent(onCastSpell16, 1600, parameters)

 

end

 

 

Se puder me explicar onde editar para botar pra seguir, obrigado!

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...