- Joined
- Jul 19, 2008
- Messages
- 334
- Reaction score
- 2
- Points
- 18
I am trying to create a dye making macro to do the combine to for the extract and resin in the jar. been trying to get AI help and its not quite getting it and I obviously dont get it.
/declare JarCount int local 0
/declare CombineCount int local 0
/declare Items string outer "Item1 Item2 Item3 Item4"
/declare JarSlot string outer "<source_slot>"
/declare OpenSlot string outer "<open_slot>"
Sub Main
/while (${JarCount} < 25) {
/echo Moving jar from ${JarSlot} to ${OpenSlot}...
/itemnotify ${JarSlot} rightmouseup
/delay 2s
/echo Opening jar...
/delay 2s
/while (${CombineCount} < 10) {
/echo Adding ${Items} to jar...
/delay 2s
/echo Combining ${Items} in jar...
/delay 5s
/varset CombineCount ${Math.Calc[${CombineCount}+1]}
}
/echo Auto inventory...
/delay 2s
/varset JarCount ${Math.Calc[${JarCount}+1]}
}
/echo Finished combining items.
/return
/declare JarCount int local 0
/declare CombineCount int local 0
/declare Items string outer "Item1 Item2 Item3 Item4"
/declare JarSlot string outer "<source_slot>"
/declare OpenSlot string outer "<open_slot>"
Sub Main
/while (${JarCount} < 25) {
/echo Moving jar from ${JarSlot} to ${OpenSlot}...
/itemnotify ${JarSlot} rightmouseup
/delay 2s
/echo Opening jar...
/delay 2s
/while (${CombineCount} < 10) {
/echo Adding ${Items} to jar...
/delay 2s
/echo Combining ${Items} in jar...
/delay 5s
/varset CombineCount ${Math.Calc[${CombineCount}+1]}
}
/echo Auto inventory...
/delay 2s
/varset JarCount ${Math.Calc[${JarCount}+1]}
}
/echo Finished combining items.
/return