Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
COUNTING UHS
#1
looking for script which show me how many uhs has been made  in a last 24hours.

thanks
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Smile" title="Smile" class="smilie smilie_1" />

#2
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



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016