XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Assassin Star withdrawer

  1. #1

    Join Date
    Jul 2015
    Posts
    42
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Assassin Star withdrawer

    Could someone share with me a lua for withdrawing assassin stars from depot ?
    Can I use it on trail aswell ?
    Thanks

  2. #2
    Oscagi's Avatar
    Join Date
    Aug 2014
    Location
    Spain
    Posts
    237
    Mentioned
    27 Post(s)
    Tagged
    0 Thread(s)

    Withdraw Stars

    @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


    REMEMBER TO SAY THANKS.

  3. #3

    Join Date
    Jul 2015
    Posts
    42
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks man

  4. #4

    Join Date
    Aug 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    where paste this script ?...

Posting Permissions

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