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

23 lines
No EOL
1.1 KiB
Lua
Executable file

-- Effects extracted from item_effects table:
-- Increases Max Power of target by 5.5
-- Increases Max Health of target by 5.5
-- Increases Out-of-Combat Health Regeneration of target by 10.0
function cast(Item, Player)
Spell = GetSpell(5462, 2, "Spells/Commoner/HomemadeMealGenericMaxHpPwr.lua")
SetSpellData(Spell, "name", "Behemoth Reduction")
SetSpellData(Spell, "description", "")
newDuration = 18000.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)
MaxHP = 5.5
SetSpellDataIndex(Spell, 1, MaxHP)
SetSpellDisplayEffect(Spell, 1, "description", "Increases MaxHP of target by " .. MaxHP)
MaxPower = 5.5
SetSpellDataIndex(Spell, 2, MaxPower)
SetSpellDisplayEffect(Spell, 2, "description", "Increases MaxPower of target by " .. MaxPower)
CastCustomSpell(Spell, Player, Player)
end