qexybot
11-15-2015, 03:39 PM
Need Script to withdraw assassin start from Depot
withdraw assasins to = 200 / thanks
grave18
11-15-2015, 04:57 PM
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.
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Start") then
Targeting.Start()
Looter.Start()
---------------------------------------------------------------------------------
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
---------------------------------------------------------------------------------
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.