Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#event noitem "#*#Could not send notification to #*#"
#event noitem "#*#Invalid item slot #*#"
Sub Main
:loop
/ctrl /itemnotify ${FindItem[King's Court Token].InvSlot} leftmouseup
/doevents
/delay 5
/click left target
/doevents
/notify GiveWnd GVW_Give_Button leftmouseup
/doevents
/delay 5
/if (!$Cursor.Name[Gold Ticket]) {
/destroy
} else {
/echo You Win! Ending Macro
/endmac
}
/goto :loop
/return
Sub event_noitem
/echo You ran out of items! ending macro
/endmac
/return
Need (!${Cursor.Name[Gold Ticket]}) insteadelmokev said:macro doesn't seem to work Cade =/ gets to trade window with 1 token in and says ~
Failed to parse /if condition '(!$Cursor.Name[Gold Ticket])', non-numeric encountered.
#event noitem "#*#Could not send notification to #*#"
#event noitem "#*#Invalid item slot #*#"
Sub Main
:loop
/if (${Cursor.Name[Gold Ticket]}) {
/echo WINNER!
/endmac
}
/ctrl /itemnotify (${FindItem[King's Court Token].InvSlot}) leftmouseup
/doevents
/delay 5
/click left target
/doevents
/notify GiveWnd GVW_Give_Button leftmouseup
/doevents
/delay 5
/if ((!$Cursor.Name[Gold Ticket]}) && (!${Cursor.Name[King's Court Token]})) {
/destroy
} else {
/if (${Cursor.Name[King's Court Token]}) {
/autoinv
/return
}
}
/goto :loop
/return
Sub event_noitem
/echo You ran out of items! ending macro
/endmac
/return
#event noitem "#*#Could not send notification to #*#"
#event noitem "#*#Invalid item slot #*#"
Sub Main
:loop
/ctrl /itemnotify (${FindItem[King's Court Token].InvSlot}) leftmouseup
/doevents
/delay 5
/click left target
/doevents
/notify GiveWnd GVW_Give_Button leftmouseup
/doevents
/delay 5
/if (${Cursor.Name[Gold Ticket]}) {
/autoinv
/echo You Win!
/endmac
}
/if (${Cursor.Name[King's Court Token]}) {
/autoinv
/if (!${Cursor.Name[King's Court Token]}) {
/if (!${Cursor.Name[Gold Ticket]}) {
/destroy
}
}
/goto :loop
/return
Sub event_noitems
/echo You ran out of items! Ending macro
/endmac
/return