We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c2b6d6 commit 3f1739bCopy full SHA for 3f1739b
src/009-walker.lua
@@ -21,6 +21,7 @@ Walker = (function()
21
local prompt = Console.prompt
22
local bankWithdrawGold = Npc.bankWithdrawGold
23
local getMoney = Container.getMoney
24
+ local getTotalItemCount = Container.getTotalItemCount
25
26
local function walkerLabelExists(label)
27
local waypoints = _settings['Walker']['WaypointList']
@@ -650,6 +651,10 @@ Walker = (function()
650
651
local function walkerRestoreMana(potionid, manaRestorePercent, callback)
652
local selfid = xeno.getSelfID()
653
local function pump()
654
+ if getTotalItemCount(potionid) == 0 then
655
+ return
656
+ end
657
+
658
-- Stop if creature onscreen
659
local pos = xeno.getSelfPosition()
660
for i = CREATURES_LOW, CREATURES_HIGH do
0 commit comments