Here's the script:
How can I add more "bloked areas" so players cant throw this rune on more places?
ty
Lua:
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)
function onCastSpell(cid, var)
local from, to = {x=, y=, z=}, {x=, y=, z=}
if not(isInRange(getCreaturePosition(cid), from, to)) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You cannot use this spell in this area.")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
end
How can I add more "bloked areas" so players cant throw this rune on more places?
ty