Log in

View Full Version : Assassin Star withdrawer



Kaguya
11-15-2015, 06:50 PM
Could someone share with me a lua for withdrawing assassin stars from depot ?
Can I use it on trail aswell ?
Thanks

Oscagi
11-17-2015, 12:17 AM
Kaguya

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

Kaguya
11-27-2015, 02:42 PM
Thanks man

master vegas
12-09-2015, 05:58 PM
where paste this script ?...