Hello.
You didn't specified if you would leave Bot running for 24 hours or so. So i will suppose that you will.
Runemaker doesn't counts how many runes has been made, so unless you create your own runemaker script to make the runes and count it, i'm not sure if any scripts may be 100% accurate.
It's a good suggestion and i will think to add such count as an option in future.
I could think in two ways to count it... I DIDN'T TESTED IT, SO I'M NOT SURE IF IT'S GONNA WORK.
In both cases, it will print on Console how many runes has been made since you run this script after it detects a new rune or so.
You must use it on Persistents.
If that's not what you are looking for, please be more specific. Explaining more details, etc.
1. Checking for messages on Default Channel. So you must leave Default Channel always selected.
local MESSAGE = 'adura vita'
if connected() then
if COUNT == nil then
COUNT = 0
end
local player_name = name()
local messages = getnewmessages()
for _, msg in ipairs(messages) do
if msg.sender:lower() == player_name:lower() and msg.content:lower() == MESSAGE:lower() then
COUNT = COUNT + 1
print('Runes made:', COUNT)
end
end
end
2. Use itemcount() to check if a new uh rune appears in your container, so sum up.
local ITEM = 'ultimate healing rune'
if connected() then
if COUNT == nil then
COUNT = 0
end
if LAST_COUNT == nil then
LAST_COUNT = 0
end
local current_count = itemcount(ITEM)
if current_count <= 0 then
LAST_COUNT = 0
else
local diff_count = (current_count - LAST_COUNT)
if diff_count >= 1 and diff_count <= 2 then
COUNT = COUNT + (current_count - LAST_COUNT)
print('Runes made:', COUNT)
else
LAST_COUNT = current_count
end
end
end