XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Withdraw from depot

  1. #1

    Join Date
    Mar 2012
    Location
    Sweden
    Posts
    52
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Withdraw from depot

    Hello! I'm making my first 100% afk hunting script. Can anyone explain to me how i withdraw items from the depot? I'd like to withdraw from example backpack nr3 and nr4. Thanks

  2. #2
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)
    lua code:

    local AmmoUse = "Assassin Star"
    local AmmoMax = 200
    local AmmoBp = "Purple Backpack"
    ----------------------

    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(labelName)
    if (labelName == "WithdrawAmmo") then
    Self.ItemCount(Item.GetID(AmmoUse) < AmmoMax)
    AmmoToWithdraw = (AmmoMax - Self.ItemCount(AmmoUse))
    Self.WithdrawItems(0, {Item.GetID(AmmoUse), AmmoBp, AmmoToWithdraw}) -- 0, Is the spot of bp on Depot.
    end


    @BIRDIE13
    Last edited by Oscagi; 11-26-2015 at 02:18 PM.


    REMEMBER TO SAY THANKS.

Posting Permissions

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