TS macro, issue with enviro container
Posted: Thu Mar 14, 2019 8:01 pm
Hello all! Newer to coding here!
Background:
I am currently writing a macro to manage one particular tradeskill recipe which has 2 sub-combines in an environmental container.
Issue:
I cannot seem to get my macro to hit the combine button in the experimental container of a pottery wheel. The most bizarre part, If i close the container, re-open it by hand, and then manually type the code (line by line) into the in game MQ2 chat window, it will combine just fine.
Attempted fixes:
I have poured over the wiki, forums, and discord and hours of adjusting and testing to try and wrap my brain around this with not much luck. There have been three different versions of the combine line I have tried using:
1)
2)
3)
Number 1 produces the popup by EQ saying I cannot hit combine when items are stacked in the container (which they are not stacked), while 2 & 3 just get ignored. I am wondering if it is the way I am opening the container possibly? Below are two of the subs... the end of the NavToWheel sub is where I open the container, and then it jumps into MakeJar. Any thoughts? Thanks in advance for any tips/pointers/enlightenment!
Background:
I am currently writing a macro to manage one particular tradeskill recipe which has 2 sub-combines in an environmental container.
Issue:
I cannot seem to get my macro to hit the combine button in the experimental container of a pottery wheel. The most bizarre part, If i close the container, re-open it by hand, and then manually type the code (line by line) into the in game MQ2 chat window, it will combine just fine.
Attempted fixes:
I have poured over the wiki, forums, and discord and hours of adjusting and testing to try and wrap my brain around this with not much luck. There have been three different versions of the combine line I have tried using:
1)
Code: Select all
/combine ContainerWindow Code: Select all
/notify ContainerWindow container_combine leftmouseup Code: Select all
/notify ContainerCombine_Items Container_Combine leftmouseup Code: Select all
Sub NavToWheel
/echo DEBUG: Starting NavToWheel
/itemtarget pottery
/nav item
/echo DEBUG: Moving to Pottery Wheel
:running
/delay 5
/while (${Navigation.Active}) {
/goto :running
}
/echo DEBUG: I made it to the Pottery Wheel!
/call OpenPacks
/click left item
/delay 1s
/notify TradeSkillWnd COMBW_ExperimentButton LeftMouseUp
/delay 1s
/return
Sub MakeJar
/echo Debug: Attempting to making ${extract} Unfired Jars
:unfiredloop
/if (${Cursor.ID}) {
/autoinv
/delay 2
/goto :unfiredloop
}
:returnloop
/ctrl /itemnotify "Water Flask" leftmouseup
/delay 10
/itemnotify enviro1 leftmouseup
/delay 10
/ctrl /itemnotify "Medium Jar Sketch" leftmouseup
/delay 10
/itemnotify enviro2 leftmouseup
/delay 10
/ctrl /itemnotify "Block of Clay" leftmouseup
/delay 10
/itemnotify enviro3 leftmouseup
/delay 2s
/combine ContainerWindow