mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
39 lines
1.2 KiB
Lua
Executable file
39 lines
1.2 KiB
Lua
Executable file
--[[
|
|
Script Name : Spells/Commoner/RussetWarg.lua
|
|
Script Author : neatz09
|
|
Script Date : 2019.11.25 08:11:47
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
function precast(Caster)
|
|
if GetMount(Caster) > 0 then
|
|
return false
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
-- Summons a mount to ride that increases your ground speed by 135%
|
|
function cast(Caster, Target, Speed, SkillAmt, Dmg)
|
|
-- Summons a mount
|
|
SetMount(Caster, 7221)
|
|
SetMountColor(Caster, 128, 70, 27, 255, 182, 193)
|
|
--Increases your ground speed by 135%
|
|
AddSpellBonus(Caster, 611, Speed)
|
|
--Increases your Crushing, Disruption, Piercing, Slashing and Ranged by 7.0
|
|
AddSkillBonus(Caster, GetSkillIDByName("Crushing"), SkillAmt)
|
|
AddSkillBonus(Caster, GetSkillIDByName("Disruption"), SkillAmt)
|
|
AddSkillBonus(Caster, GetSkillIDByName("Piercing"), SkillAmt)
|
|
AddSkillBonus(Caster, GetSkillIDByName("Slashing"), SkillAmt)
|
|
AddSkillBonus(Caster, GetSkillIDByName("Ranged"), SkillAmt)
|
|
--Increases damage done by spells and combat arts by upto 30.
|
|
AddSpellBonus(Caster, 704, Dmg)
|
|
end
|
|
|
|
function remove(Caster, Target)
|
|
SetMount(Caster, 0)
|
|
RemoveSpellBonus(Caster)
|
|
RemoveSkillBonus(Caster)
|
|
|
|
end
|