De_Luxe wrote:Guys how i can put some stuff from my inventory to container? drop("spindlytaproot",Inventory.Player,Prime.Inventory) not working. Also i have problems with placeStockpile(); can you give me example of use?
Prime.Inventory is not a type of inventory Inventory holds all of the types of inventory
Prime..Inventory.Study
Pime.Inventory.Player
Prime.Inventory.Container
First off your mixing a few things:
if you havent set a #primeObject you should not be using Prime.Inventory, you should be using Inventory.Type
Drop takes 3 arguments the ItemName, the Source Inventory, and the Destination
Source inventory is the Inventory the item is located so
Inventory.Study
Inventory.Player
(Currently doesnt allow you to Drop from a container directly, though this is fixed in the next version
Destination is either an Inventory OR
if To is a string it defines an Inventory.Container if To is an Inventory it drops into that inventory
This means you need to define the container by the window name
So your code should be
- Code: Select all
drop("spindlytaproot", Inventory.Player, "Crate");