• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /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.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /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.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Casino Mac

elmokev

New member
Is there a macro for the casino to like, keep handing in tokens til you get a gold ticket, while deleting every other item you get? Would save me 5 hours after raid handing in hehe.
 
Rich (BB code):
#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
 
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.
 
Personally I'd make it:
Rich (BB code):
 /if ((!${Cursor.Name[Gold Ticket]}) && (!${Cursor.Name[King's Court Token]})) {
/destroy
} else {
You WIN!
/endmac
}
/return


I'd also add ( ) around all the ${ } stuff
 
Something like that would work.

Rich (BB code):
#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
 
Last one doesnt seem to work =/ I added the line you suggested into your original one and it works, but doesn't destroy any items and doesn't auto put tokens won into inventory, so freezes after like 1 or 2 hand ins.
 
Try this then :p

Rich (BB code):
#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
 
Casino Mac

Users who are viewing this thread

Back
Top
Cart