04-10-2023, 02:13 PM
Windows 11
V1.0.17.15
Odenia
I am using the Runemaker, but sometimes the Ultimate Healing Rune does not move back into my backpack. This is an issue if it occurs at the last UH rune, because it means it will deposit a UH backpack with 19 runes and 1 left in my left hand.
I am not sure if it's a bug, but because someone else wrote a post about issues with back(), it might be related. Or perhaps i'm just doing something wrong.
I wrote this script, and it keeps saying there is 0 UH rune in my left hand, even though there is.
V1.0.17.15
Odenia
I am using the Runemaker, but sometimes the Ultimate Healing Rune does not move back into my backpack. This is an issue if it occurs at the last UH rune, because it means it will deposit a UH backpack with 19 runes and 1 left in my left hand.
I am not sure if it's a bug, but because someone else wrote a post about issues with back(), it might be related. Or perhaps i'm just doing something wrong.
I wrote this script, and it keeps saying there is 0 UH rune in my left hand, even though there is.
-- Define the ID of the Ultimate Healing Rune and the Golden Backpack
local UH_Rune_ID = 3160
local Golden_BP_ID = 2867
local Hand = 'lhand'
-- Check if the Ultimate Healing Rune is in the left hand
local uh_count = itemcount(UH_Rune_ID, Hand)
print("Ultimate Healing Rune count in " .. Hand .. ": " .. uh_count)
if uh_count > 0 then
-- Find the first available slot in the Golden Backpack
local slot = finditem(Golden_BP_ID, 0)
print("Golden Backpack slot: " .. slot)
if slot == 0 then
print("Golden Backpack not found.")
return
end
-- Move the Ultimate Healing Rune to the first available slot in the Golden Backpack
local move_count = moveitems(UH_Rune_ID, Golden_BP_ID, Hand)
print("Move count: " .. move_count)
end