This is something I threw together to do combines until the recipe is learned. It handles salvage by picking up each item in the container adding what is missing. You only have to change the number of items to make the combine and the name of each component used in the combine. Any issues let me know.
Thanks to Maskoi for the combine notify button info and how to drop the item into the right spot
Thanks to Maskoi for the combine notify button info and how to drop the item into the right spot
Rich (BB code):
| Simple environment (forge, kiln, etc) experimental combine macro
| envcombine.mac
| 2012-02-13 by Sym
#Event LearnedRecipe "You have learned the recipe #*#"
Sub Main
| change IC value to how many items to combine
/declare IC int outer 3
/declare Item[${IC}] string outer
| /varset name of each item, must match # above
/varset Item[1] Grande Wormwood
/varset Item[2] Water Flask
/varset Item[3] Bottle
| nothing else to edit past here
/declare a int
:Start
/doevents
/for a 1 to ${IC}
/nomodkey /itemnotify enviro${a} leftmouseup
/delay 2
/if (${Cursor.ID}) {
/nomodkey /itemnotify enviro${a} leftmouseup
/delay 2
} else {
/if (${FindItem[=${Item[${a}]}].InvSlot} > 0) {
/nomodkey /ctrl /itemnotify ${FindItem[=${Item[${a}]}].InvSlot} leftmouseup
/delay 2 ${Cursor.ID}
/nomodkey /itemnotify enviro${a} leftmouseup
} else {
/beep
/e You are missing ${Item[${a}]}
/endm
}
}
/delay 2
/next a
/notify ContainerCombine_Items Container_Combine leftmouseup
/delay 1s ${Cursor.ID}
:ClearCursor
/autoinv
/delay 5 !${Cursor.ID}
/if (${Cursor.ID}) /goto :ClearCursor
/delay 5
/goto :Start
/return
sub Event_LearnedRecipe
/beep
/e You have learned how to make this, you can use combine.mac now instead
/beep
/return