Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
- setCombatParam(combat, COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
- function onCastSpell(cid, var)
- local fromPosition = {x = 32958, y = 32074, z = 6} -- top left cornor of the playground
- local toPosition = {x = 32960, y = 32077, z = 6} -- bottom right cornor of the playground
- if isInRange(cid:getPosition(), fromPosition, toPosition) then
- doPlayerSendCancel(cid:getId(), "You cannot use any runes in here.")
- return false
- end
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement