I got a problem, People in my server can shoot mwall from depot(pz) and the mwalls don't have exahust, anyone could help me to fix these?
Here is the script I use:
Here is the script I use:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1498)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end