123456789101112131415161718192021222324252627282930313233343536373839 |
- --[[
- Script Name : Spells/Commoner/SteelArmoredRhinoGoldSaddle.lua
- Script Author : Skywalker646
- Script Date : 2020.01.30 07:01:30
- Script Purpose :
- :
- --]]
- function precast(Caster)
- if GetMount(Caster) > 0 then
- return false
- end
- return true
- end
- function cast(Caster, Target, HP, Speed, Def, SkillAmt)
- -- Summons a mount to ride
- SetMount(Caster, 7206)
- SetMountColor(Caster, 150, 150, 150, 255, 215, 0)
- -- Increases Max Health of caster by 100.0
- AddSpellBonus(Caster, 606, HP)
- --Increases your ground speed by 130%
- AddSpellBonus(Caster, 611, Speed)
- -- Increases Defense of caster by 3.0
- AddSkillBonus(Caster, GetSkillIDByName("Defense"), Def)
- -- Increases Slashing, Piercing, Ranged, Crushing and Focus of caster by 7.0
- AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
- end
- function remove(Caster, Target)
- SetMount(Caster, 0)
- RemoveSkillBonus(Caster)
- RemoveSpellBonus(Caster)
- end
|