PDA

View Full Version : Refill spears from depot



Quinn1202
01-03-2016, 11:25 PM
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.


---Paladin Options----

local AmmoID = 3277

local MaxAmmo = 10

local AmmoDP = 2

local AmmoLeave = 3


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:


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})

Quinn1202
01-04-2016, 10:53 AM
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?

Quinn1202
01-05-2016, 01:05 AM
BUMP!

brindeds
01-05-2016, 10:57 AM
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.


---Paladin Options----

local AmmoID = 3277

local MaxAmmo = 10

local AmmoDP = 2

local AmmoLeave = 3


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:


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:
Container.GetByName("Locker"):OpenChildren({"name of three container", true})

Here do the same thing:
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.