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
UH's checker in stacked backpacks
#1
Lightbulb 
Hi everyone! 
I am looking for a script that will check supplies [UH's amount] when I have stacked them in a backpack, explainers below.

In the situation presented below it shouldn't work:
|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.loading="lazy" alt="[Image: cxGbivR.png]" class="mycode_img" />

In the situation presented below it should work: 
|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.loading="lazy" alt="[Image: nVtYsL6.png]" class="mycode_img" />

So basically: 
If in UH's BP is another BP
Do nothing
Else
UH's amount <= X then
goto label Y
End

Unfortunately, I do not know how to write that 
|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="Sad" title="Sad" class="smilie smilie_8" />
Reply

#2
Hello.

I have a similar script, but works for opening the next backpack and playing alert. So i've changed it to work like you need.
|Only Registered members can see download links. | Click here to buy subscription or here to register.


local Backpack = 'green backpack' -- specific container to check for runes.
local Rune = 'ultimate healing rune' -- rune to check.
local MIN_COUNT = 2 -- Min. count to go to label.
local LABEL_NAME = 'go_refill' -- Label that will go if low amount of runes.

if connected() then
    Rune = itemid(Rune)

    local cont = getcontainer(Backpack)
    local ContainerSlot = -1
    local RunesCount = 0
    if cont.open then
        for j = 1, #cont.items do
            local item = cont.items[j]
            if itemhasflags(item.id, 4) then
                ContainerSlot = item.index
            elseif item.id == Rune then
                RunesCount = RunesCount + item.count
            end
        end

        if PLAY_ALERT and RunesCount <= MIN_COUNT and ContainerSlot == -1 then
            gotolabel(LABEL_NAME)
        end
    end
end
Reply

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
He is not checking if there are other backpacks to open only the UHS inside this one and going to "X LABEL" ", this way he never opens the next one, always goes to LABEL first, he would have to do the check only when there was no other backpacks to open?
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016