Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local combat = createCombatObject()
  2. setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
  3. setCombatParam(combat, COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
  4.  
  5. function onCastSpell(cid, var)
  6. local fromPosition = {x = 32958, y = 32074, z = 6} -- top left cornor of the playground
  7. local toPosition = {x = 32960, y = 32077, z = 6} -- bottom right cornor of the playground
  8. if isInRange(cid:getPosition(), fromPosition, toPosition) then
  9. doPlayerSendCancel(cid:getId(), "You cannot use any runes in here.")
  10. return false
  11. end
  12.  
  13. return doCombat(cid, combat, var)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement