

/ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private./target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs./lua run
#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
#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