MagicalStormWhistle.lua 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Spells/Commoner/MagicalStormWhistle.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.01.07 08:01:38
  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, SkillAmt, Speed)
  15. -- Summons a mount
  16. SetMount(Caster, 13905)
  17. -- Increase Focus, Disruption, Ministration, Subjugation, Ordination, Slashing, Piercing, Crushing,
  18. --Aggression and Ranged of caster by 5
  19. AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
  20. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  21. AddSkillBonus(Caster, GetSkillIDByName("Ministration"), SkillAmt)
  22. AddSkillBonus(Caster, GetSkillIDByName("Subjugation"), SkillAmt)
  23. AddSkillBonus(Caster, GetSkillIDByName("Ordination"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  26. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  27. AddSkillBonus(Caster, GetSkillIDByName("Aggression"), SkillAmt)
  28. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  29. -- Reduces maximum falling speed of caster.
  30. AddControlEffect(Caster, 13)
  31. --Increases your Ground Speed by 135%
  32. AddSpellBonus(Caster, 611, Speed)
  33. end
  34. function remove(Caster, Target)
  35. RemoveSpellBonus(Caster)
  36. RemoveSkillBonus(Caster)
  37. RemoveControlEffect(Caster, 13)
  38. SetMount(Caster, 0)
  39. end