9
3

BronzeArmoredRhinoYellowSaddle.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Spells/Commoner/BronzeArmoredRhinoYellowSaddle.lua
  3. Script Author : Skywalker646
  4. Script Date : 2019.12.09 07:12:43
  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, Speed, HP, SkillAmt, Def)
  15. --Summons a mount to ride
  16. SetMount(Caster, 7206)
  17. SetMountColor(Caster, 212, 175, 55, 255, 255, 0)
  18. --Increases your ground speed by 130%
  19. AddSpellBonus(Caster, 611, Speed)
  20. -- Increases Max Health of caster by 100.0
  21. AddSpellBonus(Caster, 606, HP)
  22. -- Increases Crushing, Focus, Piercing, Ranged and Slashing of caster by 7.0
  23. AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
  24. AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
  25. AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
  26. AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
  27. AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
  28. -- Increases Defense of caster by 3.0
  29. AddSkillBonus(Caster, GetSkillIDByName("Defense"), Def)
  30. end
  31. function remove(Caster, Target)
  32. SetMount(Caster, 0)
  33. RemoveSkillBonus(Caster)
  34. RemoveSpellBonus(Caster)
  35. end