CarpetofEl'Khazi.lua 783 B

12345678910111213141516171819202122232425262728293031323334
  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. SetMountColor(Caster, 0, 0, 0, 30, 144, 255)
  21. AddSpellBonus(Caster, 611, Amt)
  22. AddControlEffect(Caster, 13)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Caster)
  26. RemoveControlEffect(Caster, 13)
  27. SetMount(Caster, 0)
  28. end