9
3

BundleofSpiritWards.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : ItemScripts/BundleofSpiritsWards.lua
  3. Script Purpose : for the quest item "Bundle of Spirits"
  4. Script Author : theFoof
  5. Script Date : 2013.5.28
  6. Script Notes :
  7. --]]
  8. local CallingBack = 35
  9. function used(Item, Player)
  10. if HasQuest(Player, CallingBack) then
  11. if GetZoneID(GetZone(Player)) == 470 then
  12. local X = GetX(Player)
  13. local Z = GetZ(Player)
  14. if X >= 595 and X <= 605 then
  15. if Z >= -268 and Z <= -258 then
  16. SetStepComplete(Player, CallingBack, 4)
  17. end
  18. elseif X >= 576 and X <= 586 and Z >= -344 and Z <= -334 then
  19. SetStepComplete(Player, CallingBack, 1)
  20. elseif X >= 502 and X <= 512 then
  21. if Z >= -238 and Z <= -228 then
  22. SetStepComplete(Player, CallingBack, 2)
  23. end
  24. elseif X >= 579 and X <= 589 and Z >= -160 and Z <= -150 then
  25. SetStepComplete(Player, CallingBack, 3)
  26. elseif X >= 576 and X <= 586 and Z >= -217 and Z <= -207 then
  27. SetStepComplete(Player, CallingBack, 5)
  28. else
  29. SendMessage(Player, "You cannot place a ward here.", "yellow")
  30. end
  31. end
  32. end
  33. end