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
Open BPS and Check Manas
#1
Howdy, i am chasing a bit of help with a couple of scripts that i cant get working. 

You helped me get the rune check and if no runes go to WPT 'Leave hunt' but i cannot get it working with Mana Fluid. Could you please help. Below is what i have so far.
local BACKPACK_ID = 2868 -- specific container to check for runes.
local VIAL_ID = 2874 -- item id to check.
local FLUID_ID = 7 -- item id to check.

local OPEN_BACKPACK = true -- open next backpack for more runes?

local PLAY_ALERT = True -- Play alert on MinCount?
local ALERT_COUNT = 5 -- Min. count to play alert.

--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]

if connected() then

  local Containers = getcontainers()

  for i = 1, #Containers do
      local cont = Containers[i]
      local ContainerSlot = -1
      local RunesCount = 0

      if cont.id == BACKPACK_ID then
          for j = 1, #cont.items do
              local item = cont.items[j]
              if itemhasflags(item.id, 4) then
                  ContainerSlot = item.index
              elseif item.id == VIAL_ID and item.count == FLUID_ID then
                  RunesCount = RunesCount + 1
              end
          end

         if RunesCount <= COUNT and ContainerSlot == -1 then
                gotolabel(WAYPOINT)
                break         
            end
        end
    end
end

I am Also trying to sort out some issues with the BP reopen after relog. Currently it is super glitchy. opens the same bp twice, doesnt resize. Moves things randomly and closes accidentally. Anything you can help with to make it smoother? as without it, i am likely to die very quickly. Below is what i have so far

if windowcount() < 4 then
    setsettings('Looter/Enabled', false)
    setsettings('Cavebot/Enabled', false)
    closewindows()
    wait(500, 800)
    local bp_item = back()
    if bp_item.id > 0 then
        local WIN_COUNT = windowcount()
        while WIN_COUNT == 0 and bp_item.id > 0 do
            openitem(bp_item.id, 'back')
            wait(1000, 1500)
            bp_item = back()
            WIN_COUNT = windowcount()
        end

        if WIN_COUNT > 0 then
            resizewindows(1)
            wait(200, 500)

            local containers = getcontainers()
            for _, cont in ipairs(containers) do
                for __, item in ipairs(cont.items) do
                    if itemhasflags(item.id, 4) then
                        for i = 1, 3 do
                            if windowcount() == WIN_COUNT then
                                openitemslot(item.index, cont.index, true)
                                wait(500, 1000)
                                resizewindows(1)
                                resizewindows(1)
                                wait(200, 500)
                            else
                                break
                            end
                        end
                        WIN_COUNT = windowcount()
                    end
                end
            end
            setsettings('Looter/Enabled', true)
            setsettings('Cavebot/Enabled', true)
        end
    end
end

Thanks
Reply

#2
Hello.

The first script, there's a lua syntax error. COUNT doesn't exists, but ALERT_COUNT.
local BACKPACK_ID = 2868 -- specific container to check for runes.
local VIAL_ID = 2874 -- item id to check.
local FLUID_ID = 7 -- item id to check.

local OPEN_BACKPACK = true -- open next backpack for more runes?

local PLAY_ALERT = True -- Play alert on MinCount?
local ALERT_COUNT = 5 -- Min. count to play alert.

--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]
--[[ DON'T EDIT BELOW THIS LINE --]]

if connected() then

    local Containers = getcontainers()

    for i = 1, #Containers do
        local cont = Containers[i]
        local ContainerSlot = -1
        local RunesCount = 0

        if cont.id == BACKPACK_ID then
            for j = 1, #cont.items do
                local item = cont.items[j]
                if itemhasflags(item.id, 4) then
                    ContainerSlot = item.index
                elseif item.id == VIAL_ID and item.count == FLUID_ID then
                    RunesCount = RunesCount + 1
                end
            end

            if RunesCount <= ALERT_COUNT and ContainerSlot == -1 then
                gotolabel(WAYPOINT)
                break        
            end
        end
    end
end

The second script works fine for me.
Reply

#3
i added
local WAYPOINT = 'Leave Hunt'

Seems to no longer cause an error. will test if it sends me to the correct WPT or just flashes a bunch...

Not sure what bugged the BP one. Could be framerate again.

Thanks

EDIT: works well
Thansk for you help - Also, uh issue was caused by framerate
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016