9
3

FroglokPondstoneGood.lua 687 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : ItemScripts/FroglokPondstoneEvil.lua
  3. Script Author : neatz09
  4. Script Date : 2023.04.22 09:04:22
  5. Script Purpose : handles item id#46436
  6. :
  7. --]]
  8. function examined(Item, Player)
  9. end
  10. function used(Item, Player)
  11. local Cube = 121856
  12. local Spawn2 = GetSpawn(Player, Cube)
  13. if Spawn2 == nil then SendMessage(Player, "You must seek an ancient pond to use this item.", "Yellow") else
  14. local Distance = GetDistance(Player, Spawn2)
  15. if Distance > 78 then SendMessage(Player, "You must seek an ancient pond to use this item.", "Yellow")
  16. else CastSpell(Player, 2550399, 1)
  17. end
  18. end
  19. end