BlueSaddleRedNightmare.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Spells/Commoner/BlueSaddleRedNightmare.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.15 05:11:06
  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, Pwr, SkillAmt, Speed)
  15. -- Increases Max Health of caster by 150.0
  16. AddSpellBonus(Caster, 606, HP)
  17. --Increases Max Power of caster by 150.0
  18. AddSpellBonus(Caster, 619, Pwr)
  19. --Increases Ranged and Slashing of caster by 7.0
  20. --Increases Piercing, Disruption and Crushing of caster by 7.0
  21. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  22. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  23. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
  26. --Summons a mount to ride
  27. SetMount(Caster, 6831)
  28. SetMountColor(Caster, 0, 0, 0, 255, 0, 0)
  29. --Increases your ground speed by 130%
  30. AddSpellBonus(Target, 611, Speed)
  31. --Requires Evil Alignment.
  32. Say(Caster, "Alignment not implemented.")
  33. end
  34. function remove(Caster, Target)
  35. RemoveSpellBonus(Caster)
  36. RemoveSkillBonus(Caster)
  37. SetMount(Caster, 0)
  38. end