XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Refill spears from depot

  1. #1

    Join Date
    Jan 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Refill spears from depot

    Hi.

    I have a problem with refilling spears from depot. My character do not refill missing spears. I do not know how can i repair it.

    Here is a fragment of code.

    Code:
    ---Paladin Options----
    
    local AmmoID = 3277 	
    
    local MaxAmmo = 10 	                        
    
    local AmmoDP = 2 		
    
    local AmmoLeave = 3
    Code:
    elseif (labelName == "GetAmmo") then
        Container.GetByName("Locker"):OpenChildren({3502, true}) 			
            wait(500,600)
        Container.GetByName("Locker"):Close() 			 		
            wait(500,600)
            Self.WithdrawItems(AmmoDP, {AmmoID, 1, MaxAmmo-Self.ItemCount(AmmoID)}) 
            wait(200,400)
    I have 200 spears in 3rd chest in depot.

    Thanks in advance!

    P.S. Sorry about my bad english
    @edit

    I have a problem with depositor too.

    Here is the code:

    Code:
    elseif (labelName == "DP") then
    		Walker.Stop()
    		wait(1600,2400)
    		Self.DepositItems({9692, 0}, {11485, 0}, {8031, 0}, {12600, 0}, {11473, 0}, {5894, 0}, {9689, 0})
    		wait(500,1500)
    		Self.DepositItems({11512, 1}, {11465, 1}, {10275, 1})
    		wait(500,1500)
    		Self.DepositItems({3277, 2})
    Last edited by Quinn1202; 01-04-2016 at 01:32 PM.

  2. #2

    Join Date
    Jan 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dealt with these problems but there is one more.
    When my character refill spears it writes "This object is too heavy for you to carry".
    He still want to pick some spears from depot. I have turned of auto-refill in equipment manager.
    Can i in some way turn it off while he is refilling spears and then turn it on?
    @edit

    Ok. i can't understand that. When it haven't got any spears in inventory then it take from depot 10 spears. When it have some spears in inventory then it don't take any spear from depot. I don't know right now what is wrong with this code. Any ideas?
    Last edited by Quinn1202; 01-04-2016 at 11:32 AM.

  3. #3

    Join Date
    Jan 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    BUMP!

  4. #4

    Join Date
    Jun 2015
    Posts
    72
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Quinn1202 View Post
    Hi.

    I have a problem with refilling spears from depot. My character do not refill missing spears. I do not know how can i repair it.

    Here is a fragment of code.

    Code:
    ---Paladin Options----
    
    local AmmoID = 3277 	
    
    local MaxAmmo = 10 	                        
    
    local AmmoDP = 2 		
    
    local AmmoLeave = 3
    Code:
    elseif (labelName == "GetAmmo") then
        Container.GetByName("Locker"):OpenChildren({3502, true}) 			
            wait(500,600)
        Container.GetByName("Locker"):Close() 			 		
            wait(500,600)
            Self.WithdrawItems(AmmoDP, {AmmoID, 1, MaxAmmo-Self.ItemCount(AmmoID)}) 
            wait(200,400)
    I have 200 spears in 3rd chest in depot.

    Thanks in advance!

    P.S. Sorry about my bad english
    @edit

    I have a problem with depositor too.

    Here is the code:

    Code:
    elseif (labelName == "DP") then
    		Walker.Stop()
    		wait(1600,2400)
    		Self.DepositItems({9692, 0}, {11485, 0}, {8031, 0}, {12600, 0}, {11473, 0}, {5894, 0}, {9689, 0})
    		wait(500,1500)
    		Self.DepositItems({11512, 1}, {11465, 1}, {10275, 1})
    		wait(500,1500)
    		Self.DepositItems({3277, 2})
    You are able to open the BP with spears? Because after the new update there have been some changes.
    Answer me some questions so I can help you?
    3502 is the third container ID? Because if you are trying to open the child with id = 3502. Try putting:
    lua code:
    Container.GetByName("Locker"):OpenChildren({"name of three container", true})


    Here do the same thing:
    lua code:
    Self.WithdrawItems("name of three container",{AmmoID, 1, MaxAmmo-Self.ItemCount(AmmoID)})


    Ps: Replace "name of three container" for the container name. Take a look on it, and copy exactly like the name.
    Ps2: Tell it worked.

Tags for this Thread

Posting Permissions

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