9
3

HillrunnerPackHorse.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Commoner/HillrunnerPackHorse.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.04.20 08:04:26
  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, Speed, SkillAmt)
  15. --Summons a mount to ride
  16. SetMount(Caster, 9033)
  17. SetMountColor(Caster, 107, 68, 35, 0, 0, 0)
  18. -- Increases your ground speed by 130%
  19. AddSpellBonus(Caster, 611, Speed)
  20. -- Increases Fishing, Trapping, Mining, Foresting, Gathering and Transmuting of caster by 23.8
  21. AddSkillBonus(Caster, GetSkillIDByName("Fishing"), SkillAmt)
  22. AddSkillBonus(Caster, GetSkillIDByName("Trapping"), SkillAmt)
  23. AddSkillBonus(Caster, GetSkillIDByName("Mining"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Foresting"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Gathering"), SkillAmt)
  26. AddSkillBonus(Caster, GetSkillIDByName("Transmuting"), SkillAmt)
  27. end
  28. function remove(Caster, Target)
  29. SetMount(Caster, 0)
  30. RemoveSpellBonus(Caster)
  31. RemoveSkillBonus(Caster)
  32. end