Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
Updated for 8.2 and added Abyssal Healing Potion
  • Loading branch information
ollidiemaus authored Jul 8, 2019
2 parents 8895235 + 61ca28d commit 9d32284
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
7 changes: 3 additions & 4 deletions HealthstoneAutoMacro.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
## Interface: 80100
## Version: 1.0
## Interface: 80200
## Version: 1.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
code.lua
## Notes: Updates the Macro HAMHealthPot to use either Healthstone, Abyssal Healing Potion, Coastal Healing Potion, Silas' Vial of Continuous Curing or Emerald of Vigor
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 9d32284

Please sign in to comment.