hey i need help im gona make a new wand and i want the wand to shoot in a area but im using this kind a script!
This is added in weapons!
can i do tha itack a target then i hit around it also?
This is added in weapons!
can i do tha itack a target then i hit around it also?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -50000, 0, -100000)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end