• 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

Flow subroutine error

Dabonger

New member
Hey guys.....I know that the answer to my question is probably a simple one but I just can't seem to figure it out.

I keep getting a "Flow ran into another subroutine. scwarp.mac@23 (ScaryCaves); Sub ScaryCaves" error and my macro ends. I have tried a couple of things and the macro still terminates after one run.

Its just a simple warp macro while I still learn this stuff.

Rich (BB code):
|------------------------------------------------------------------------------|

#turbo 10


#Event Zoned "You have entered#*#"

sub Main

  
|- ZONER Variables ------------------------------------------------------------|
  /declare Zn int outer

|- Snag the task

/delay 2s
/tar npc marana
/task 3759 5
/delay 20
/call ScaryCaves
/doevents flush 

Sub ScaryCaves
  /echo Starting Scary Caves
  /doevents flush
        /zone karnor
        /call Zoner
        /warp loc -48.92 -277.16 2.19
        /Delay 20
        /zone dreadlands
        /call Zoner
        /warp loc -2514 3498 712
        /Delay 20
        /zone frontiermtns
        /call Zoner
        /Target npc Shilur
        /Hail
        /Delay 10
        /zone Dreadlands
        /call Zoner
        /delay 20
   /return
  }
/return



sub Zoner
  /delay 60
:stillzoning
  /doevents
  /if (${Zn}!=1) /goto :stillzoning
  /varset Zn 0
  /delay 5s
/return

sub Event_Zoned
  /call GMCheck
  /varset Zn 1
 /return

sub GMCheck
  /if (${Bool[${Spawn[gm].ID}]}) {
    /echo A GM or Guide has been detected.  Waiting for five minutes to check again ...
    /delay 300s
    /call GMCheck
  }
/return

I'm not really concerned so much about the macro working as I am about why I'm getting that error so I can avoid that problem in future macros.

Thanks in advance for any help.
DaB
 
Removed those 2 things and still get the same error. New code below.

Rich (BB code):
|------------------------------------------------------------------------------|

#turbo 10


#Event Zoned "You have entered#*#"

sub Main

  
|- ZONER Variables ------------------------------------------------------------|
  /declare Zn int outer

|- Snag the task

/delay 2s
/tar npc marana
/task 3759 5
/delay 20
/call ScaryCaves
/doevents flush 

Sub ScaryCaves
  /echo Starting Scary Caves
  /doevents flush
        /zone karnor
        /call Zoner
        /warp loc -48.92 -277.16 2.19
        /Delay 20
        /zone dreadlands
        /call Zoner
        /warp loc -2514 3498 712
        /Delay 20
        /zone frontiermtns
        /call Zoner
        /Target npc Shilur
        /Hail
        /Delay 10
        /zone Dreadlands
        /call Zoner
        /delay 20
  /return



sub Zoner
  /delay 60
:stillzoning
  /doevents
  /if (${Zn}!=1) /goto :stillzoning
  /varset Zn 0
  /delay 5s
/return

sub Event_Zoned
  /call GMCheck
  /varset Zn 1
 /return

sub GMCheck
  /if (${Bool[${Spawn[gm].ID}]}) {
    /echo A GM or Guide has been detected.  Waiting for five minutes to check again ...
    /delay 300s
    /call GMCheck
  }
/return
 
Try this.

Rich (BB code):
|------------------------------------------------------------------------------|

#turbo 10


#Event Zoned "You have entered#*#"

sub Main

  
|- ZONER Variables ------------------------------------------------------------|
  /declare Zn int outer

|- Snag the task
:mochilaisnoob
/delay 2s
/tar npc marana
/task 3759 5
/delay 20
/call ScaryCaves
/doevents flush 

Sub ScaryCaves
  /echo Starting Scary Caves
  /doevents flush
        /zone karnor
        /call Zoner
        /warp loc -48.92 -277.16 2.19
        /Delay 20
        /zone dreadlands
        /call Zoner
        /warp loc -2514 3498 712
        /Delay 20
        /zone frontiermtns
        /call Zoner
        /Target npc Shilur
        /Hail
        /Delay 10
        /zone Dreadlands
        /call Zoner
        /delay 20
/goto :mochilaisnoob
  /return



sub Zoner
  /delay 60
:stillzoning
  /doevents
  /if (${Zn}!=1) /goto :stillzoning
  /varset Zn 0
  /delay 5s
/return

sub Event_Zoned
  /call GMCheck
  /varset Zn 1
 /return

sub GMCheck
  /if (${Bool[${Spawn[gm].ID}]}) {
    /echo A GM or Guide has been detected.  Waiting for five minutes to check again ...
    /delay 300s
    /call GMCheck
  }
/return
 
Flow subroutine error

Users who are viewing this thread

Back
Top
Cart