derkonsito
02-10-2016, 03:25 AM
Hey guys im using this withdraw code, it withdraw the spears perfectly but then stays trying to withdraw more and never moves... i guess its because the bot instantly equips them, can someone help me making it not to stuck! Thanks
elseif (labelName == "GetAmmo") then
Self.ReachDepot()
wait(200, 300)
Container.GetByName("Locker"):OpenChildren({3502, true}) -- Opens depot chest
wait(500,600)
Container.GetByName("Locker"):Close() -- Closes locker
wait(500,600)
Self.WithdrawItems(AmmoDP, {AmmoID, 0, MaxAmmo-Self.ItemCount(AmmoID)}) -- 3 means from third backpack in DP, Ammo is ammunition ID, 0 means to first backpack you hold, last "number" is an amount to withdraw.
wait(200,400)
elseif (labelName == "GetAmmo") then
Self.ReachDepot()
wait(200, 300)
Container.GetByName("Locker"):OpenChildren({3502, true}) -- Opens depot chest
wait(500,600)
Container.GetByName("Locker"):Close() -- Closes locker
wait(500,600)
Self.WithdrawItems(AmmoDP, {AmmoID, 0, MaxAmmo-Self.ItemCount(AmmoID)}) -- 3 means from third backpack in DP, Ammo is ammunition ID, 0 means to first backpack you hold, last "number" is an amount to withdraw.
wait(200,400)