I created this little snippet of a script tonight because I was tired of having to manually move all of the crafting components (that are bought) to my 'utility pouch' every time I go to buy shit.
So, basically, if you have a basic "utility pouch" that's equipped in your crafting inventory and then go to a crafting vendor ...buy all of the 'solvents', 'water', etc.. that you need, then run this script and it'll move it all to the utility pouch for you.
This script should also serve as an example for moving inventory items around.
So, basically, if you have a basic "utility pouch" that's equipped in your crafting inventory and then go to a crafting vendor ...buy all of the 'solvents', 'water', etc.. that you need, then run this script and it'll move it all to the utility pouch for you.
This script should also serve as an example for moving inventory items around.
Code:
function main()
{
variable int i = 1
variable int UtilityPouchIndex = 0
variable int ContainerCurrentlyInIndex = 0
; Change "Utility Pouch" if your crafting container has a different name
UtilityPouchIndex:Set[${Me.Inventory[Utility Pouch].Index}]
do
{
if (${Me.Inventory[${i}].MiscDescription.Find[Small crafting utilities]} > 0)
{
if (${Me.Inventory[${i}].InContainer(exists)})
{
ContainerCurrentlyInIndex:Set[${Me.Inventory[${i}].InContainer.Index}]
}
else
{
ContainerCurrentlyInIndex:Set[0]
}
if (${ContainerCurrentlyInIndex} != ${UtilityPouchIndex})
{
Me.Inventory[${i}]:PutInContainer[${UtilityPouchIndex}]
wait 2
; ^^^ This 'wait' is extremely important!
}
}
}
while (${i:Inc} <= ${Me.Inventory})
}