Hello, I'm trying to fix the Exori San spell, but it doesnt really work the way i want it to
problem 1 = how can i make it shoot on target when I attack a monster, but when i dont attack a monster it should shoot in front of me
problem 2 = when i hit a monster, it doesn't show damage, but the mosnters hp will change. the Combat param type 1024 should be holy hit, but it doesnt work
I'd appreciate it alot if someone could help me out
problem 1 = how can i make it shoot on target when I attack a monster, but when i dont attack a monster it should shoot in front of me
problem 2 = when i hit a monster, it doesn't show damage, but the mosnters hp will change. the Combat param type 1024 should be holy hit, but it doesnt work
I'd appreciate it alot if someone could help me out
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, 1024)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.9, -40, -0.9, 0)
local arr = {
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 0, 0},
{0, 3, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end