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
FREE [v0.2] Check for rune and Open next backpack or Alert
#1
Hello.

This script will check if there are RUNES on specific backpack's and...
1. IF OPEN_BACKPACK is ENABLED... If there are no specific rune and there are a container, it will open this container. I recommend to disable "OPEN_BACKPACK" (set "OPEN_BACKPACK" as false) while using "Healer/Settings/Open next BP for more supply" or "Targeting/Settings/Open next BP for more runes".
2. If there are less or equal to MinCount and there are no container, it will play a sound and flash the client.

I recommend you to use Backpack index instead of names, unless you use that specific backpack (e.g.: "golden backpack') for your runes backpacks only and all runes backpacks INSIDE are the same kind. So if you are using Golden Backpack for runes and gold coins OR not using same color for all runes backpacks, you must use index.

Index is zero-based and according the order that you opened the backpacks.

local Backpack = 'green backpack' -- specific container to check for runes.
local Rune = 'ultimate healing rune' -- rune to check.

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

local PLAY_ALERT = true -- Play alert on MinCount?
local ALERT_COUNT = 2 -- 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
   Rune = itemid(Rune)

   local Containers = getcontainers()

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

       if (cont.name:lower() == Backpack:lower() or tostring(Backpack) == tostring(cont.index)) 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 OPEN_BACKPACK and RunesCount == 0 and ContainerSlot >= 0 then
               openitemslot(ContainerSlot, cont.index, false)
               wait(1000)
           elseif PLAY_ALERT and RunesCount <= ALERT_COUNT and ContainerSlot == -1 then
               playsound('default')
               flashclient()
               wait(800)            
           end
       end
   end
end
Reply

#2
Does it work with opened backpack that is on ground?
Reply

#3
Hello.

Yes, if it’s opened it will work.
Reply

#4
i cant get this working but i think its because the 'backpacks' arent colour coded in game. all are known as 'backpacks'
Reply

#5
Hello.

Yes, but Bot distinguish standard bps by color, because each BP has its own ID. A green bp has ID 2865 for example. So when you use the name "green backpack", Bot knows that you are talking about the item ID 2865.
Reply

#6
(12-09-2020, 05:06 AM)Hmm, wondering why it doenst work in my ot then. it wont open the red backpack when looking for great fireball runesArkilys Wrote:
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Hello.

Yes, but Bot distinguish standard bps by color, because each BP has its own ID. A green bp has ID 2865 for example. So when you use the name "green backpack", Bot knows that you are talking about the item ID 2865.
Reply

#7
hey man, im having no luck at all with this.
I am using 'red backpack' for great fireball runes.
Cant get it to open next backpack or play alert.

I tried using the red bp and gfb item id's in the place of the names but that didnt work either.

Any chance of making an 'advanced shooter' with a bp opener in built?
Reply

#8
Yo man, any chance you have an idea why its not working or give us a hint at how to make it work.
im trying to get red backpacks id 2867 to open looking for great fireball rune 3191... but i cant for the life of me get it to open.

any chance you can have a look?

edit: So, i can get it to beep at me for having no runes... even though their are plenty by having 'baackpack' rather than a color backpack.
i cant get it to recognise runes at all even with the id
Edit: so its not recognising 'colored' backpacks or runes within backpacks.
Reply

#9
Hello.

Notice that you can use container index as well instead of name on the script above.

Try this code, it will check ONLY for container id instead of its name or index.
local BACKPACK_ID = 2867 -- specific container to check for runes.
local Rune = 'ultimate healing rune' -- rune to check.

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

local PLAY_ALERT = true -- Play alert on MinCount?
local ALERT_COUNT = 2 -- 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
   Rune = itemid(Rune)

   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 == Rune then
                   RunesCount = RunesCount + item.count
               end
           end

           if OPEN_BACKPACK and RunesCount == 0 and ContainerSlot >= 0 then
               openitemslot(ContainerSlot, cont.index, false)
               wait(1000)
           elseif PLAY_ALERT and RunesCount <= ALERT_COUNT and ContainerSlot == -1 then
               playsound('default')
               flashclient()
               wait(800)            
           end
       end
   end
end
Reply

#10
I tried this, tried everything with the script. I actually think its bot and client related. I dont think the bot is seeing the 'red backpack' as the looter only loots to the 'default' or first opened backpack anyway even when you add red backpack.

I actually think this is bigger than just this persistent. I cant get it to find the gfb in any case, the alert plays regardless of what bp the gfb are in, except the targetter will use them fine.
running out of ideas
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016