Page 1 of 1

HouseStorage (Chest) Macro

Posted: Sun Jan 19, 2014 2:47 pm
by prometheus
Hey there,

currently I am looking for a macro function that would allow me to move an item from inventory to chest.
Yet I know about PickUpBagItem - which ususally works fine if it comes to move items between bank and inventory.

Do you have any suggestion?

Greetings

Re: HouseStorage (Chest) Macro

Posted: Sun Jan 19, 2014 7:08 pm
by prometheus
Problem solved,

PickupBagItem had the wrong index

mea culpa :D

Re: HouseStorage (Chest) Macro

Posted: Sun Jan 19, 2014 11:08 pm
by rock5
Ok, here are the functions I think you need to know.
  • local enable, name, texture, Placed, ID = Houses_GetFurnitureItemInfo( FurnitureSlot );
FurnitureSlot is the slot of the furniture in the list you see when you click the house interface "Furniture" button. This gives you the ID of the furniture which you will need.

  • local maxItems, StorageName, FurnitureSlot = Houses_GetItemInfo( ID , -1 );
and
  • local texture, name, itemCount, locked, quality = Houses_GetItemInfo( ID, ItemSlot );

This function comes in 2 forms. The first one just gives you some extra info about the furniture and the second one gives you the actual info about items in the furniture. Note: "ID" is the id gotten from the first command.

Once you know which furnature and which slot you are going to use you use the following command to pick up or put down in that position

  • Houses_PickupItem( ID , ItemSlot );


That's all that's needed to find a slot and use it but it still requires some programming. Probably we should make some functions that simplify it, maybe a userfunction.