Skip to content

Commit

Permalink
removed Silas
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Maus authored and Oliver Maus committed Apr 16, 2020
1 parent c0df6fb commit fe3069e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
4 changes: 2 additions & 2 deletions HealthstoneAutoMacro.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 80200
## Version: 1.1.1
## Interface: 80300
## Version: 1.1.2
## 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
13 changes: 2 additions & 11 deletions code.lua
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
-- This file is loaded from "HealthstoneAutoMacro.toc"
-- #showtooltip
-- /castsequence reset=combat Healthstone, Coastal Healing Potion
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
Expand All @@ -28,14 +21,12 @@ function getPotNames()
if EmeraldName==nil then
EmeraldName = "Emerald of Vigor"
end
return SilasPotName, AbyssalPotName, NormalPotName, EmeraldName
return AbyssalPotName, NormalPotName, EmeraldName
end

function getPots()
SilasPotName, AbyssalPotName, NormalPotName, EmeraldName = getPotNames()
SilasNbr = GetItemCount(SilasPotId, false, false);
AbyssalPotName, NormalPotName, EmeraldName = getPotNames()
return {
{SilasPotName, SilasNbr},
{EmeraldName, GetItemCount(EmeraldId, false, false)},
{AbyssalPotName, GetItemCount(AbyssalPotId, false, false)},
{NormalPotName, GetItemCount(NormalPotId, false, false)}
Expand Down

0 comments on commit fe3069e

Please sign in to comment.