BlackSpottedWargwithBlackArmor.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Commoner/BlackSpottedWargwithBlackArmor.lua
  3. Script Author : Skywalker646
  4. Script Date : 2019.12.09 09:12:49
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Summons a mount to ride that increases your ground speed by 130%
  9. function precast(Caster)
  10. if GetMount(Caster) > 0 then
  11. return false
  12. end
  13. return true
  14. end
  15. function cast(Caster, Target, Speed, SkillAmt, Dmg)
  16. -- Summons a mount
  17. SetMount(Caster, 7220)
  18. SetMountColor(Caster, 0, 0, 0, 0, 0, 0)
  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 50.
  28. AddSpellBonus(Caster, 704, Dmg)
  29. end
  30. function remove(Caster, Target)
  31. SetMount(Caster, 0)
  32. RemoveSpellBonus(Caster)
  33. RemoveSkillBonus(Caster)
  34. end