Hello! I've been trying from time to time to create a monster spell with more than 1 animation. Such spells I created with Minrage's spellmaker and most recently with SpellCreator by TGYoshi.
My problem is the same everytime, the spell wil lnot do any damage, or it will do damage on all animations/phases.
What I want is to know what to put in these lines for example:
Or:
If I set the damage in the xmonster.xml like this:
It will do damage on ALL the animations, and not 20.25k, but spread out on all animations or something.
I need to get some help on what code I can use here.. All I am trying is no good :/
Using TFS 0.3.6.pl1
My problem is the same everytime, the spell wil lnot do any damage, or it will do damage on all animations/phases.
What I want is to know what to put in these lines for example:
Code:
local combat9_holycircle = createCombatObject()
setCombatParam(combat9_holycircle, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat9_holycircle, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatParam(combat9_holycircle, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
?? <----
setCombatArea(combat9_holycircle,createCombatArea({{0, 0, 0, 0, 0, 0, 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},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0}}))
function getDmg_holycircle(cid, level, maglevel)
return (1000)*-1,(2000)*-1
end
setCombatCallback(combat9_holycircle, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_holycircle")<--
local dfcombat9_holycircle = {CONST_ANI_SMALLHOLY,1,-5,5,1,-1,5,-5,-1}<--
Or:
Code:
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, 8)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 6)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 3)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0, -0, -0, -0)<--
If I set the damage in the xmonster.xml like this:
Code:
<attack name="smokar" interval="2000" chance="20" min="-20000" max="-25000"/>
I need to get some help on what code I can use here.. All I am trying is no good :/
Using TFS 0.3.6.pl1
Last edited: