Okay, i done it long time ago but i dont' remember how..
I want to have a spell that does multiple movements
such as having a spell "wave" out infront of you
so that first it sends out explosion area effect then energy area effect.. ( not at the same time )1 then the other.. 0.o i forget what part of the code to edit..
currently what i'm wanting to do is have the spell move infront of the char
***
C = char
s = spell
***
example:
(step1)
Cs
(step2)
C-S
(step3)
C--S
this would make the spell seem to "wave" i have done it before, but it was a long time ago and i can't remember how now... my current spell ( un complete )
all i need to do is add timing between each area...
I want to have a spell that does multiple movements
such as having a spell "wave" out infront of you
so that first it sends out explosion area effect then energy area effect.. ( not at the same time )1 then the other.. 0.o i forget what part of the code to edit..
currently what i'm wanting to do is have the spell move infront of the char
***
C = char
s = spell
***
example:
(step1)
Cs
(step2)
C-S
(step3)
C--S
this would make the spell seem to "wave" i have done it before, but it was a long time ago and i can't remember how now... my current spell ( un complete )
Code:
local combat = createCombatObject()
arr = {{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0}}
local combat = createCombatObject()
arr1 = {
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}
local combat = createCombatObject()
arr2 = {
{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
local area = createCombatArea(arr)
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(combat, area)
setCombatArea(combat, area1)
setCombatArea(combat, area2)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
all i need to do is add timing between each area...