• 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

help with macro

ketchup82

New member
any help getting this to work would be appriceated. keep gettting message subroutine main wasn't found

#chat tell
#event Exp "You gain experience!!"
#event Level "You have gained a level! Welcome to level #1#!"
#event Tell "GM"
#event GM "Guide"
#event Text "Hello,"

Sub Main
/declare TimesRun int outer
/varset TimesRun 0
:loop
/call Checks
/tar npc exam
/delay 0.5s
/saytarget i would like to begin
/delay 0.5s
/tar npc ontu
/delay 1s
/give
/notify GiveWnd GVW_Give_Button leftmouseup
/doevents
/goto :loop
/return

Sub Event_Exp
/varcalc TimesRun ${TimesRun}+1
/return

Sub Event_Level(LevelText)
/echo Level ${LevelText} took ${TimesRun} runs...
/varset TimesRun 0
/return

|--------------------------------------------------|
| Checks for GM's and Players |
|--------------------------------------------------|
Sub Checks

:check

/if (${SpawnCount[pc radius 200]}>1) {
/echo Player is close...
/echo Pausing the Macro until they leave...
/beep
/beep
/afk Went to go get beer, brb
/delay 5s
/goto :check
}
/if (${Spawn[gm].ID}) {
/echo GM has entered the zone!
/popup [GM IN ZONE, PAUSING MACRO UNTIL THEY LEAVE]
/beep
/beep
/gate
/camp desktop
/endmac
/delay 5s
/goto :check
}
/doevents next
/return

|------------------------------------------------------|
| Handles Tells |
|------------------------------------------------------|
Sub event_Tell
/beep
/beep
/afk brb, getting a drink
/endmac

|------------------------------------------------------|
| Handles GM stuff |
|------------------------------------------------------|
Sub event_Hello
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/delay 1s
/exit

|------------------------------------------------------|
| Handles GM stuff |
|------------------------------------------------------|
Sub event_GM
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/beep
/delay 1s
/exit

|------------------------------------------------------|
| Handles GM stuff |
|------------------------------------------------------|
Sub event_Guide
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/beep
/delay 1s
/exit
 
Rich (BB code):
#event Exp "You gain experience!!"
#event Level "You have gained a level! Welcome to level #1#!"
#event Tell "GM"
#event GM "Guide"
#event Text "Hello"

Sub Main
/declare TimesRun int outer
/varset TimesRun 0
:loop
/call Checks
/call Zonecheck
/tar npc exam
/delay 0.5s
/saytarget i would like to begin
/delay 0.5s
/tar npc ontu
/delay 1s
/give
/notify GiveWnd GVW_Give_Button leftmouseup 
/doevents
/goto :loop
/return

Sub Event_Exp
/varcalc TimesRun ${TimesRun}+1
/return

Sub Event_Level(LevelText)
/echo Level ${LevelText} took ${TimesRun} runs...
/varset TimesRun 0
/return


--------------------------------------------------
Checks to see if you aren't in seru
--------------------------------------------------
{
/if (${Zone.ID}!=159)      /z sseru
}
/return

--------------------------------------------------
 Checks for GM's and Players                                 
--------------------------------------------------
Sub Checks 

:check
 
 /if (${Spawn[gm].ID}) { 
     /echo GM has entered the zone!
     /popup [GM IN ZONE, PAUSING MACRO UNTIL THEY LEAVE]
     /beep
     /beep
     /beep
     /beep
     /gate
     /camp desktop
      /endmac
     /delay 5s
     /goto :check
} 
 /doevents next
 /return 

------------------------------------------------------
 Handles Tells                                        
------------------------------------------------------
Sub event_Tell
/beep
/beep
/beep
/beep
/beep
/gate
/afk
/endmac

------------------------------------------------------
 Handles GM stuff                                     
------------------------------------------------------
Sub event_Text
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/beep
/beep
/beep
/delay 1s
/exit

------------------------------------------------------
 Handles GM stuff                                     
------------------------------------------------------
Sub event_GM
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/beep
/beep
/beep
/delay 1s
/exit
Should work if you aren't in the zone due to being deaded
 
Last edited:
If you're going to have this sub event at the bottom:

Rich (BB code):
Sub event_Guide
/delay 10s
/r Sec, gotta restart my computer.. it's being all buggy
/beep
/beep
/beep
/delay 1s
/exit

It might be helpful to add an event to trigger it at the top:
Rich (BB code):
#Event Guide "#*#whatever#*#"

Same for sub event_hello.

=)
 
help with macro

Users who are viewing this thread

Back
Top
Cart