Skip to content

Commit

Permalink
Update code.lua
Browse files Browse the repository at this point in the history
added  Abyssal Healing Potion
  • Loading branch information
ollidiemaus committed Jul 8, 2019
1 parent c1bbd8c commit d7eb379
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d7eb379

Please sign in to comment.