BlueSaddlePurpleNightmare.lua 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Spells/Commoner/BlueSaddlePurpleNightmare.lua
  3. Script Author : neatz09
  4. Script Date : 2019.11.15 05:11:49
  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, 128, 0, 128)
  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