Hello I creating my own server and I wanted to make custom spells and such
Im running 9.70 client but once I made an actual custom spell and uploaded it this error
message comes out on my log
Screenshot:
Error Msg:
(local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, 2)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1, -5, -2, -10)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, 2)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 48)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1, -5, -2, -10)
setCombatArea(combat1, createCombatArea(area1))
setCombatArea(combat2, createCombatArea(area2))
function onCastSpell(cid, var)
addEvent(doCombat, 100, cid, combat1, var)
addEvent(doCombat, 300, cid, combat2, var)
end)
I would greatly appreciate any and all help, Im still new to the hobbie and have alot to learn
so I would find it very helpful if more experience people could take a look and help me in this problem
Thanks alot for your help it is greatly appreciated
Frozt4
Im running 9.70 client but once I made an actual custom spell and uploaded it this error
message comes out on my log
Screenshot:

Error Msg:
(local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, 2)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 11)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1, -5, -2, -10)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, 2)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 48)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 4)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1, -5, -2, -10)
setCombatArea(combat1, createCombatArea(area1))
setCombatArea(combat2, createCombatArea(area2))
function onCastSpell(cid, var)
addEvent(doCombat, 100, cid, combat1, var)
addEvent(doCombat, 300, cid, combat2, var)
end)
I would greatly appreciate any and all help, Im still new to the hobbie and have alot to learn
so I would find it very helpful if more experience people could take a look and help me in this problem
Thanks alot for your help it is greatly appreciated
Frozt4