Caution: it will drop things onto the ground if you run out of room.
Useful for making things like celestial essence, without your wrist going numb.
Code: Select all
;craft.iss
#macro displayStatus()
echo Auto Combine ${craftStatus}
#endmac
#macro ProcessQueue()
if ${QueuedCommands}
while ${QueuedCommands}
ExecuteQueued
#endmac
function main()
{
call craft_init
while "${Window[TradeskillWnd].Open} && ${craftStatus.Equal[Started]}"
{
while "${Cursor.ID}"
Window[TradeskillWnd].Child[COMBW_AutoInvButton]:LeftMouseUp
Window[TradeskillWnd].Child[COMBW_CombineButton]:LeftMouseUp
ProcessQueue()
wait 10
}
if "${craftStatus.Equal[Started]}"
craftStatus:Set[Finished: Window Closed]
return 0
}
function t_OutOfStuff()
{
craftStatus:Set[Finished: Out of Components]
}
function craft_init()
{
ext -require isxeq
AddTrigger t_OutOfStuff "Sorry, but you don't have everything you need for this recipe in your general inventory."
DeclareVariable craftStatus string script "Started"
displayStatus()
}
function atexit()
{
displayStatus()
}
