EQ2EMu/server/ItemScripts/DwarvenStout.lua
2022-06-05 13:50:31 -07:00

21 lines
No EOL
738 B
Lua
Executable file

--[[
Script Name : ItemScripts/DwarvenStout.lua
Script Purpose :
Script Author : Neatz09
Script Date : 1/31/2021
Script Notes :
--]]
function cast(Item, Player)
Spell = GetSpell(5463, 2, "Spells/Commoner/HomemadeDrinkGenericStaWis.lua")
Regenz = 30.0
Stat = 3.2
newDuration = 54000
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
SetSpellDataIndex(Spell, 0, Regenz)
SetSpellDataIndex(Spell, 1, Stat)
SetSpellDisplayEffect(Spell, 0, "description", "Increases STA and WIS of target by " .. Stat)
SetSpellDisplayEffect(Spell, 1, "description", "Increases Out-of-Combat Power Regeneration of target by " .. Regenz)
CastCustomSpell(Spell, Player, Player)
end