9
3

CarpetofEl'Khazi.lua 736 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. Script Name : Spells/Commoner/CarpetofEl'Khazi.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.15 10:11:32
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster)
  9. if GetMount(Caster) > 0 then
  10. return false
  11. end
  12. return true
  13. end
  14. -- Info from spell_display_effects (remove from script when done)
  15. -- Summons mount
  16. -- Reduces maximum falling speed of caster.
  17. -- Increases your ground speed by 130%.
  18. function cast(Caster, Target, Amt)
  19. SetMount(Caster, 1369)
  20. AddSpellBonus(Caster, 611, Amt)
  21. AddControlEffect(Caster, 13)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Caster)
  25. RemoveControlEffect(Caster, 13)
  26. SetMount(Caster, 0)
  27. end