dye combine macro

Darkon

Lifetime Member
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
 
  • Wow
Reactions: EQDAB
well, in a macro you don't use "" around strings. and then you need to do something to find what the source slots and open slots are. the items strings can work, but you are going to have to parse the string to find what items are in it. and right now you aren't actually moving the jar to open slot, just echoing that you, and the same with the items.

I don't remember if i found this somewhere or if i coded it or a combo of the 2. I am sure someone much smarter than me could it in a way that isn't limited to just the evergreen, but I only wanted to do the evergreen. you do need to have pack8 empty when you start it. and you do need to stay on the screen while it is running and watch it as sometimes the game lags and I don't have any checks for making sure the correct item was picked up as a single item, placed into the right spot, etc. so it will occasionally bug out and start picking up stacks of the stuff cause it didn't clear the cursor first

sub Main
:loop
/delay 3
/if (${Cursor.ID}) {
/autoinv
/goto :loop
}
/if (${FindItemCount[Medium Clay Jar]}<1 || ${FindItemCount[Evergreen Extract]}<1 || ${FindItemCount[Resin]}<1) /end
/itemnotify "Medium Clay Jar" leftmouseup
/delay 3
/itemnotify pack8 leftmouseup
/delay 3
/itemnotify pack8 rightmouseup
/delay 3
:extract
/ctrlkey /itemnotify "Evergreen Extract" leftmouseup
/delay 3
/itemnotify in pack8 1 leftmouseup
/delay 3
/if (${Cursor.ID}) {
/autoinv
}
/ctrlkey /itemnotify "Resin" leftmouseup
/delay 3
/itemnotify in pack8 2 leftmouseup
/delay 3
/if (${Cursor.ID}) {
/autoinv
}
/combine pack8
/delay 5
/autoinv
/delay 2
:auto
/if (${Cursor.ID}) {
/autoinv
/delay 5
/goto :auto
}
/goto :loop
 
  • Like
Reactions: EQDAB
thanks, moved it to pack twelve and it works but kind of weirdly and yea would like to be able to tell it to use 1 or 2 or 3 resins to make the dark normal or light dies. and it's easy enough to change the extract name only 2 places to do it.
 
thanks, moved it to pack twelve and it works but kind of weirdly and yea would like to be able to tell it to use 1 or 2 or 3 resins to make the dark normal or light dies. and it's easy enough to change the extract name only 2 places to do it.

If you want to try this, I threw it together.

Example INI for the 3 dyes you mention:

Code:
[Dark Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Evergreen Extract
[Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Resin
Component3=Evergreen Extract
[Light Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Resin
Component3=Resin
Component4=Evergreen Extract

htw
 

Attachments

  • Misc.lua
    18.9 KB · Views: 1
  • Combine.lua
    16.6 KB · Views: 0
  • Combine.ini
    1.3 KB · Views: 0
Last edited:
  • Love
Reactions: EQDAB and Darkon
If you want to try this, I threw it together.

Example INI for the 3 dyes you mention:

Code:
[Dark Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Evergreen Extract
[Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Resin
Component3=Evergreen Extract
[Light Green Dye]
Container=Medium Clay Jar
Component1=Resin
Component2=Resin
Component3=Resin
Component4=Evergreen Extract

htw
added other colors Yellow and red have the yellow extract AKA Jack-O-Lantern extract and I get invalid recipie.
 

Attachments

  • Combine.ini
    1.3 KB · Views: 1
added other colors Yellow and red have the yellow extract AKA Jack-O-Lantern extract and I get invalid recipie.

Did you put the ini in your config dir like it says?

Edit: I just went in game and made yellow, dark yellow, and light yellow fine using your INI. It's in the wrong directory, if you run the lua without options it will tell you where it goes: /lua run combine
 
Last edited:
  • Like
Reactions: EQDAB