XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 353

Thread: [Update] XenoBot Apophis v14.7.6.656 [10.50 & Apophis Global Release]

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Senior Member ppgab's Avatar
    Join Date
    Mar 2014
    Location
    Brazil
    Posts
    986
    Mentioned
    86 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Syntax View Post
    Probably, the current depositor is very old, one of the first things I made, and even though I was pr0 back then it's pretty dated.
    After I get done moving into my new place, I'll give you guys some new depositor/withdrawing functions.
    I have a few improvements I need to make to them, and make them backwards compatible with the current input.
    yeah, those two functions in the xenolualib could be cleaner imo, but the only thing i would add to self.deposit (i also added to mine) is keep opening equiped bps that are full, so it doesn't miss loot (probably shoud ignore this if Container(i):ID() == Self.Backpack().id).

    this is why i separate by index in mine :
    lua code:

    Self.OpenDepot()
    local dp = Container('Depot Chest')
    for i = 0, #arg do
    dp:UseItem(arg[i].Index, true) -- opening in new window
    -- loop trough bps and move found items
    for j = dp:Index()+1, #Container.GetAll() do -- closing what was opened
    Container(j):Close()
    end
    end


    i know yu pro but i tought my function was clever
    Last edited by ppgab; 07-09-2014 at 02:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •