eq2emu-content/ItemScripts/FoodDrink/Coldwindchowder_35732.lua
2025-06-24 00:00:05 +00:00

16 lines
No EOL
710 B
Lua
Executable file

-- Effects extracted from item_effects table:
-- Increases Out-of-Combat Health Regeneration of target by 27.5
-- This effect suspends during combat
function cast(Item, Player)
Spell = GetSpell(5462, 1, "Spells/Commoner/HomemadeMealGeneric.lua")
SetSpellData(Spell, "name", "Coldwind chowder")
SetSpellData(Spell, "description", "")
newDuration = 18000.0
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
Regen = 27.5
SetSpellDataIndex(Spell, 0, Regen)
SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regen)
CastCustomSpell(Spell, Player, Player)
end