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
Drop Bps inside depot chest
#1
Hey!

I've looked around and searched but couldn't find a script specifically throwing gray bps inside the chest locker. I've written this already 

reachgrounditem('locker')
wait(1000)
openitem('locker')
wait(1000)
openitem('depot chest')

But what then? I need an action script that would allow me to open the main bp, if it's not already open, then throw all gray bps inside the chest depot. I'm sure the best thing to do here is to open the main bp first and maximize size to see every gray bp?
Reply

#2
1. Check if bp is open.
windowcount(optional string name) [number]: Represent the amount of defined windows that are open.
if windowcount('red backpack') == 0 then
-- do something
end

2. Open main bp.
openitem(string/number item, string location, bool newWindow, number Index) [void]: Open an item located inside your containers, inventory or ground, depends of your location choice.
openitem(back().id, 'back')

3. Move items
moveitems(string item, string to, string from, optional in count) [void]
moveitems('halberd', 'depot chest', 'red backpack', 100)

4. Resize window
resizewindow(string/number item, number size) [void]: Resize defined window to defined size.
resizewindows() [void]: Resize to minimum size all open windows.
resizewindow('red backpack', 3)
Or resize all..
resizewindows(3)
btw.. you don't need to resize to move items, Bot would scroll to find it.

Everything in a single script.
local ITEMS = { 'gray backpack' } -- Items to move.
local MAIN_BP = 'red backpack' -- Where items are.
local DESTINATION = 'depot chest' -- Where items should be moved to.

reachgrounditem('locker')
wait(1000)
openitem('locker')
wait(1000)
openitem('depot chest')

while windowcount(MAIN_BP) == 0 do
  openitem(MAIN_BP, 'back')
  wait(800, 1200)
end

for _, item in ipairs(ITEMS) do
  while itemcount(item, MAIN_BP) > 0 do
    moveitems(item, DESTINATION, MAIN_BP, 100)
    wait(500, 800)
  end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016