It seems like there should be a way to do this with a bit more style... My cludge workaround is:
Code: Select all
Sub NewTSCombine
/delay 2
:CombineClick
/varset Waiting 0
/delay 8
/notify TradeskillWnd CombineButton leftmouseup
:WaitForResult
/delay 1
/doevents CombineSuccess
/doevents CombineFail
/doevents NoComponents
/if (@OutOfItems==TRUE) {
/varset OutOfItems FALSE
/goto :DoneCombining
}
/if (@FailedCombine==TRUE) {
/varset FailedCombine FALSE
/goto :CombineClick
}
/if (@MadeIt==TRUE) {
/varset MadeIt FALSE
/autoinv
/goto :CombineClick
}
/varadd Waiting 1
/if (@Waiting==10) {
/echo ${Time} Combine click timeout. Reclicking.
/mqlog ${Time} Combine click timeout. Reclicking.
/goto :CombineClick
}
/goto :WaitForResult
:DoneCombining
/return
Old way:
Code: Select all
/selectitem "Water Flask" merchantCode: Select all
/notify MerchantWnd MW_MerchantSlot7 leftmouseup
I play on satellite so my timings get ALL screwed up pretty easily with tradeskill scripts. Latency is anywhere from .5 to 3.5 seconds, and hardcoded delays of 4 seconds just bugs the hell outta me!
Thanks for the help in advance!
-SimpleMynd


