Skip to content

Commit

Permalink
Added Rejuvenating Siphoned Essence
Browse files Browse the repository at this point in the history
  • Loading branch information
ollidiemaus committed Nov 29, 2020
1 parent 9ee8d8a commit f1b2321
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HealthstoneAutoMacro.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 90002
## Version: 1.2
## Version: 1.2.1
## Title: Healthstone Auto Macro
## Author: ollidiemaus
## Notes: Updates the Macro HAMHealthPot to use either Healthstone, Coastal Healing Potion, Silas' Vial of Continuous Curing or Emerald of Vigor
Expand Down
11 changes: 9 additions & 2 deletions code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ do
local HSId = 5512;
local NormalPotId = 171267;
local PhialId = 177278; -- Phial of Serenity
local SiphId = 176409; -- Rejuvenating Siphoned Essence


function getPotNames()
NormalPotName = GetItemInfo(NormalPotId);
PhialName = GetItemInfo(PhialId);
SiphName = GetItemInfo(SiphId);

-- fall back on connect sometimes GetItem fail
if NormalPotName==nil then
Expand All @@ -16,13 +19,17 @@ function getPotNames()
if PhialName==nil then
PhialName = "Phial of Serenity"
end
return NormalPotName, PhialName
if SiphName==nil then
SiphName = "Rejuvenating Siphoned Essence"
end
return SiphName, NormalPotName, PhialName
end

function getPots()
NormalPotName, PhialName = getPotNames()
SiphName, NormalPotName, PhialName = getPotNames()
return {
{PhialName, GetItemCount(PhialId, false, false)},
{SiphName, GetItemCount(SiphId, false, false)},
{NormalPotName, GetItemCount(NormalPotId, false, false)}

}
Expand Down

0 comments on commit f1b2321

Please sign in to comment.