• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Log Errors, Custom Spell Error

Frozt4

New Member
Joined
Sep 3, 2011
Messages
1
Reaction score
0
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:IMG_07032013_183924.jpg

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
 
Back
Top