9
3

CalltoHome.lua 624 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Commoner/CalltoHome.lua
  3. Script Author : neatz09
  4. Script Date : 2019.04.08 12:04:04
  5. Script Purpose :
  6. Updated by : Devn00b 6/18/2022
  7. --]]
  8. -- Teleports you to your recall point.
  9. function precast(Caster, Target)
  10. if GetBoundZoneID(Caster) == 0 then
  11. return false
  12. end
  13. if(GetCanGate(Caster) == 1)
  14. then
  15. return true
  16. else
  17. SendMessage(Caster, "You cannot use Call to Home from this location.", "red")
  18. return false
  19. end
  20. return true
  21. end
  22. function cast(Caster, Target)
  23. Gate(Caster)
  24. end