9
3

Odyssey.lua 762 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Priest/Cleric/Odyssey.lua
  3. Script Author : neatz09
  4. Script Date : 2020.01.02 04:01:10
  5. Script Purpose :
  6. :
  7. --]]
  8. --Casting power cost scales with the character's total power. A rough equation is Max Power x 54.6% = power cost.
  9. -- Info from spell_display_effects (remove from script when done)
  10. -- Teleports target to a zone landmark
  11. -- You must be a citizen to benefit from an odyssey.
  12. -- This effect cannot be cast during combat
  13. -- If not a City Betrayer
  14. -- Teleports you to your recall point.
  15. function precast(Caster, Target)
  16. if GetBoundZoneID(Target) == 0 then
  17. return false
  18. end
  19. return true
  20. end
  21. function cast(Caster, Target)
  22. Gate(Target)
  23. end