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.