• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Flow subroutine error

Dabonger

New member
Joined
Oct 18, 2005
RedCents
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
 
Looks like you have an extraneous /return in your subroutine as well as an unmatched "}".

/delay 20
/return ======> DELETE THIS
} ======> DELETE THIS
/return
 
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
 
Rich (BB code):
/delay 2s
/tar npc marana
/task 3759 5
/delay 20
/call ScaryCaves
/doevents flush
/return

Add the red to Sub Main
 
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