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

15 lines
No EOL
671 B
Lua
Executable file

-- Effects extracted from item_effects table:
-- Increases Out-of-Combat Health Regeneration of target by 10.0
function cast(Item, Player)
Spell = GetSpell(5462, 1, "Spells/Commoner/HomemadeMealGeneric.lua")
SetSpellData(Spell, "name", "delectable bread")
SetSpellData(Spell, "description", "")
newDuration = 36000.0
SetSpellData(Spell, "duration1", newDuration)
SetSpellData(Spell, "duration2", newDuration)
Regen = 10.0
SetSpellDataIndex(Spell, 0, Regen)
SetSpellDisplayEffect(Spell, 0, "description", "Increases Out-of-Combat Health Regeneration of target by " .. Regen)
CastCustomSpell(Spell, Player, Player)
end