Hello there,
I was just wondering, how to create a summon that explodes upon death and deal its master formulas dmg.
I was trying to do something in onDeath, but I really dont have a clue how to do what I need.
Basically I need script that takes positon from summon, but formulas from its master or to make summon have same formulas as master.
Im using tfs 0.3.6pl1
Here is sample spell:
Greetings,
Erexo.
I was just wondering, how to create a summon that explodes upon death and deal its master formulas dmg.
I was trying to do something in onDeath, but I really dont have a clue how to do what I need.
Basically I need script that takes positon from summon, but formulas from its master or to make summon have same formulas as master.
Im using tfs 0.3.6pl1
Here is sample spell:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.6, 0, -0.7, 0)
arr = {
{1, 1, 1},
{1, 3, 1},
{1, 1, 1},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Greetings,
Erexo.
Last edited: