eq2emu-content/ItemScripts/Masu.lua
2024-10-26 11:37:28 +00:00

21 lines
No EOL
731 B
Lua
Executable file

--[[
Script Name : ItemScripts/Masu.lua
Script Purpose :
Script Author : Neatz09
Script Date : 1/31/2021
Script Notes :
--]]
function cast(Item, Player)
Spell = GetSpell(5462, 2, "Spells/Commoner/HomemadeMealGenericAgiSta.lua")
Regenz = 102.5
Stat = 7.8
newDuration = 24000
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
SetSpellDataIndex(Spell, 0, Regenz)
SetSpellDataIndex(Spell, 1, Stat)
SetSpellDisplayEffect(Spell, 0, "description", "Increases AGI and STA of target by " .. Stat)
SetSpellDisplayEffect(Spell, 1, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regenz)
CastCustomSpell(Spell, Player, Player)
end