DarkRedNightmareBlackSaddle.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : Spells/Commoner/DarkRedNightmareBlackSaddle.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.16 01:11: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. function cast(Caster, Target, HP, MP, SkillAmt, Speed)
  15. --Summons a mount to ride
  16. SetMount(Caster, 6831)
  17. SetMountColor(Caster, 128, 0, 0, 0, 0, 0)
  18. --Increases Max Health of caster by 100
  19. AddSpellBonus(Caster, 606, HP)
  20. --Increases Max Power of caster by 100
  21. AddSpellBonus(Caster, 619, MP)
  22. --Increases, Piercing, Slashing, Crushing, Ranged and Disruption by 7.0
  23. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  26. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  27. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  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. end