9
3

BlackNightmarePurpleSaddle.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Spells/Commoner/BlackNightmarePurpleSaddle.lua
  3. Script Author : Skywalker646
  4. Script Date : 2020.03.25 06:03:47
  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, HP, Mana, Speed)
  15. -- Summons a mount
  16. SetMount(Caster, 7183)
  17. SetMountColor(Caster, 0, 0, 0, 148, 0, 211)
  18. -- Increase Crushing, Piercing, Slashing, Ranged and Disruption of caster by 7.0
  19. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  20. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  21. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  22. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  23. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  24. -- Increases Max Health of caster by 150.0
  25. AddSpellBonus(Caster, 606, HP)
  26. -- Increases Max Mana of caster by 150.0
  27. AddSpellBonus(Caster, 619, Mana)
  28. --Increases your Ground Speed by 130%
  29. AddSpellBonus(Caster, 611, Speed)
  30. end
  31. function remove(Caster, Target)
  32. RemoveSpellBonus(Caster)
  33. RemoveSkillBonus(Caster)
  34. SetMount(Caster, 0)
  35. RemoveControlEffect(Caster, 12)
  36. end