9
3

SteelArmoredRhinoGoldSaddle.lua 1.2 KB

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