9
3

CraftKeepersDiscofFlight.lua 980 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Spells/Commoner/CraftKeepersDiscofFlight.lua
  3. Script Author : Skywalker646
  4. Script Date : 2019.12.22 09:12:42
  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. function cast(Caster, Target, HP, MP, Speed, Multi, Cast)
  15. -- Summons a mount to ride
  16. SetMount(Caster, 11059)
  17. AddControlEffect(Caster, 13)
  18. -- Increases Max Health of caster by 200.
  19. AddSpellBonus(Caster, 606, HP)
  20. -- Increases Max Power by 200.0
  21. AddSpellBonus(Caster, 619, MP)
  22. -- increases your ground speed by 130%
  23. AddSpellBonus(Caster, 611, Speed)
  24. -- Increases Multi Attack Chance by 2.0
  25. AddSpellBonus(Caster, 641, Multi)
  26. -- Increases Ability Casting Speed by 2.0%
  27. AddSpellBonus(Caster, 664, Cast)
  28. end
  29. function remove(Caster, Target)
  30. SetMount(Caster, 0)
  31. RemoveControlEffect(Caster, 13)
  32. RemoveSpellBonus(Caster)
  33. end