XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 5 of 5

Thread: Withdraw from... need script!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    grave18's Avatar
    Join Date
    Mar 2014
    Posts
    74
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    http://forums.xenobot.net/showthread...light=withdraw
    Next time please look a little on forum...
    lua code:

    local Ammo_AmmoID = 7368
    local Ammo_AmmoMax = 200
    local DpBp_Ammo = 0 -- 0-the first backpack in the depot, 1-second backpack in the depot, etc.

    elseif (labelName == "GetSupplies") then
    if (Self.ItemCount(Ammo_AmmoID) < Ammo_AmmoMax) then
    local AmmoNumber = (Ammo_AmmoMax - Self.ItemCount(Ammo_AmmoID))
    Self.WithdrawItems(DpBp_Ammo, {Ammo_AmmoID, 0, AmmoNumber})
    end
    Last edited by grave18; 12-29-2015 at 10:12 PM.

Posting Permissions

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