Could someone share with me a lua for withdrawing assassin stars from depot ?
Can I use it on trail aswell ?
Thanks
Could someone share with me a lua for withdrawing assassin stars from depot ?
Can I use it on trail aswell ?
Thanks
@Kaguya
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
Thanks man
where paste this script ?...