9
3

DarkRedNightmareBlackSaddle.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. --Requires Evil Alignment.
  31. Say(Caster, "Alignment not implemented.")
  32. end
  33. function remove(Caster, Target)
  34. RemoveSpellBonus(Caster)
  35. RemoveSkillBonus(Caster)
  36. SetMount(Caster, 0)
  37. end