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 next backpack script
Hello i can u help me with this?
I need a script that open next backpack when full.


I didn't tested, but it may work.

local backpack = 'green backpack' -- index, id or name... e.g.: '0', '2865' or 'green backpack'

local container = getcontainer(backpack)
if container.open and container.usedslots == container.maxslots then
    for _, item in ipairs(container.items) do
        if itemhasflags(item.id, 4) then
            openitemslot(item.index, container.index, false)

Thanks alot, i will test it as soon as i can...
1 More request please:

I need to know how to count USED ITEMS, for example:

I have a backpack with 19 mana fluids then 1 backpack inside and so on...
I want to count when i use a mana fluid, and reset the counter when refilling.


The code that i posted gives you that information. You should use getcontainer() or getcontainers() according your needs.

|Only Registered members can see download links. | Click here to buy subscription or here to register.

getcontainer(string/number container)[table]: Table of container structure (index or name).

Forum Jump:

Forum software by © MyBB Theme © iAndrew 2016