local fromPosition = {x="1000", y="1000", z="0"}
local toPosition = {x="1000", y="1000", z="15"}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)
function onCastSpell(cid, var)
if not isInRange(cid, fromPosition, toPosition) then
return doCombat(cid, combat, var)
else
return doPlayerSendCancel(cid, "You may not use this rune in WOE")
end
end