9
3

BrownNightmareWargwithBlueArmor.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Commoner/BrownNightmareWargwithBlueArmor.lua
  3. Script Author : Skywalker646
  4. Script Date : 2019.12.17 09:12:57
  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. -- Summons a mount to ride that increases your ground speed by 130%
  15. function cast(Caster, Target, Speed, SkillAmt, Dmg)
  16. -- Summons a mount
  17. SetMount(Caster, 7243)
  18. SetMountColor(Caster, 153, 76, 0, 0, 0, 255)
  19. --Increases your ground speed by 130%
  20. AddSpellBonus(Caster, 611, Speed)
  21. --Increases your Crushing, Disruption, Piercing, Slashing and Ranged by 7.0
  22. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  23. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  26. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  27. --Increases damage done by spells and combat arts by upto 75.
  28. AddSpellBonus(Caster, 704, Dmg)
  29. end
  30. function remove(Caster, Target)
  31. SetMount(Caster, 0)
  32. RemoveSpellBonus(Caster)
  33. RemoveSkillBonus(Caster)
  34. end