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

15 lines
No EOL
658 B
Lua
Executable file

-- Effects extracted from item_effects table:
-- Increases Out-of-Combat Power Regeneration of target by 75.0
function cast(Item, Player)
Spell = GetSpell(5463, 1, "Spells/Commoner/HomemadeDrinkGeneric.lua")
SetSpellData(Spell, "name", "rum")
SetSpellData(Spell, "description", "")
newDuration = 21600.0
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
Regen = 75.0
SetSpellDataIndex(Spell, 0, Regen)
SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regen)
CastCustomSpell(Spell, Player, Player)
end