1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- --[[
- Script Name : Spells/Commoner/Turborotor1000.lua
- Script Author : Skywalker646
- Script Date : 2020.02.02 12:02:40
- Script Purpose :
- :
- --]]
- function precast(Caster)
- if GetMount(Caster) > 0 then
- return false
- end
- return true
- end
- function cast(Caster, Target, SkillAmt, Speed, Air)
- -- Summons a mount
- SetMount(Caster, 4835)
- AddControlEffect(Caster, 12)
- -- Increase Focus, Disruption, Ministration, Subjugation, Ordination, Slashing, Piercing, Crushing,
- --Aggression and Ranged of caster by 5
- AddSkillBonus(Caster, GetSkillIDByName("Focus"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ministration"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Subjugation"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ordination"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Aggression"), SkillAmt)
- AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
- --Increases your Ground Speed by 75%
- --Increases your Air Speed by 150%
- AddSpellBonus(Caster, 611, Speed)
- AddSpellBonus(Target, 612, Air)
- end
- function remove(Caster, Target)
- RemoveSpellBonus(Caster)
- RemoveSkillBonus(Caster)
- SetMount(Caster, 0)
- RemoveControlEffect(Caster, 12)
- end
|