diff --git a/code.lua b/code.lua index d261bfe..db4f0fd 100644 --- a/code.lua +++ b/code.lua @@ -6,33 +6,40 @@ do local HSId = 5512; local SilasPotId = 156634; local NormalPotId = 152494; +local AbyssalPotId = 169451; local EmeraldId = 166799; -- Emerald of Vigor function getPotNames() SilasPotName = GetItemInfo(SilasPotId); NormalPotName = GetItemInfo(NormalPotId); + AbyssalPotName = GetItemInfo(AbyssalPotId); EmeraldName = GetItemInfo(EmeraldId); -- fall back on connect sometimes GetItem fail if SilasPotName==nil then SilasPotName = "Silas' Vial of Continuous Curing" end + if AbyssalPotName==nil then + AbyssalPotName = "Abyssal Healing Potion" + end if NormalPotName==nil then NormalPotName = "Coastal Healing Potion" end if EmeraldName==nil then EmeraldName = "Emerald of Vigor" end - return SilasPotName, NormalPotName, EmeraldName + return SilasPotName, AbyssalPotName, NormalPotName, EmeraldName end function getPots() - SilasPotName, NormalPotName, EmeraldName = getPotNames() + SilasPotName, AbyssalPotName, NormalPotName, EmeraldName = getPotNames() SilasNbr = GetItemCount(SilasPotId, false, false); return { {SilasPotName, SilasNbr}, {EmeraldName, GetItemCount(EmeraldId, false, false)}, + {AbyssalPotName, GetItemCount(AbyssalPotId, false, false)}, {NormalPotName, GetItemCount(NormalPotId, false, false)} + } end function getHs()