Author Topic: My first Script, looking to pick your brains.  (Read 10368 times)

0 Members and 1 Guest are viewing this topic.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #15 on: August 16, 2009, 02:04:45 PM »
0

Code: [Select]
set %MyRunebook FMALJRD
FindItem XHF     ; This seems lacking in details where is the rod at your hand backpack floor ?
set %FishingPole #Findid

Repeat
  For %Runeon 1 16
     {
      gosub clickRunebookLocation %MyRunebook %Runeon M #TRUE
      gosub Fish   
      IF #Weight > 300
           gosub SecureDropoff
     }
Until #False   ; Set a script ending condition here..
Halt

;==============FISH SUB============
sub fish
  Repeat
     set #LObjectID %FishingPole
     set #LTargetKind 2
     set #LTargetX -1 + #CharPosX
     set #LTargetY 3 + #CharPosY
     event macro 17 0
     target
     event macro 22 0
     wait 8s
     call ScanForJournalMsg.txt you_pull_out 1 20
     set !Exit #Result
     call ScanForJournalMsg.txt biting_here 1 20
     set !Exit #Result || !Exit
  Until  #weight >= 300  || ( ! !Exit)
Return

Sub SecureDropoff
   ; Do your secure drop off code here or what ever you do when 2 heavy
Return
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #16 on: August 16, 2009, 02:13:35 PM »
0
I snatched this tidbit from someones script.  It works & looks like this... 
Code: [Select]
sub fish
gosub checkweight
baithook:
set #LObjectID #FindID
set #LTargetKind 2
set #LTargetX -1 + #CharPosX
set #LTargetY 3 + #CharPosY
event macro 17 0
target
event macro 22 0
wait 8s


journal1:
call ScanForJournalMsg.txt you_pull_out 1 20
     if #result = #true
{
gosub checkweight
goto baithook
}
else
{
gosub checkweight
goto journal2
}

journal2:
call ScanForJournalMsg.txt biting_here 1 20
     if #result = #true

return



;===============CHECK WEIGHT============
sub checkweight
  if #weight > #maxweight - 30
    set %overweight YES
  if #weight > 390
    set %overweight YES
  if %overweight = YES
  {
        GoSub gobank
        GoSub dumptrash
  }
return

@Endless:
Yours looks a lot cleaner :)  Just wish I understood the different symbols LOL...  Will that make it faster? or just neater

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #17 on: August 16, 2009, 02:42:45 PM »
0
Your posted bit has a serious flaw

Code: [Select]
journal2:
call ScanForJournalMsg.txt biting_here 1 20
     if #result = #true

return


So what about if the Result is false... what does the script do .. i suspect it goes to end of the script then line 1 and starts over.


What symbols in my version are you stuck on ?
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Scrripty

  • Guest
Re: My first Script, looking to pick your brains.
« Reply #18 on: August 16, 2009, 03:14:23 PM »
0
Oh so now you understand what I was getting at because this is nearly EXACTLY what I put. :) Also, I wouldn't have written this like you did.  I was just using what you did and trying to keep it as simple as I could so you would see a way to do it.  I do things VERY simply at first, then I make them better and better as I "see" a better way. :)  If that makes sense.  EN:  I think he is wondering about this:  
Code: [Select]
    set !Exit #Result
     call ScanForJournalMsg.txt biting_here 1 20
     set !Exit #Result || !Exit
  Until  #weight >= 300  || ( ! !Exit)
Return

Basically the ! symbol just means the OPOSITE of whatever the result is.  So if the #result is true, and you typed ( ! !exit) that would mean, if #FALSE !exit... basically.  So if you ScanForJournal and the message "biting_here" appears in the string the result would be #true I'm guessing? :)  The two || symbols just mean "OR"  so until #weight >= 300 OR ( ! !Exit )

I snatched this tidbit from someones script.  It works & looks like this...  
Code: [Select]
sub fish
gosub checkweight
baithook:
set #LObjectID #FindID
set #LTargetKind 2
set #LTargetX -1 + #CharPosX
set #LTargetY 3 + #CharPosY
event macro 17 0
target
event macro 22 0
wait 8s


journal1:
call ScanForJournalMsg.txt you_pull_out 1 20
     if #result = #true
{
gosub checkweight
goto baithook
}
else
{
gosub checkweight
goto journal2
}

journal2:
call ScanForJournalMsg.txt biting_here 1 20
     if #result = #true

return



;===============CHECK WEIGHT============
sub checkweight
   if #weight > #maxweight - 30
     set %overweight YES
   if #weight > 390
     set %overweight YES
   if %overweight = YES
   {
        GoSub gobank
        GoSub dumptrash
   }
return

@Endless:
Yours looks a lot cleaner :)  Just wish I understood the different symbols LOL...  Will that make it faster? or just neater

I probly would write this in a very logical way.  Just a stupid simple example of how I'd order the subs.  If you loop that and have the subs all squared away with what each does... that would work fine I'm guessing.  It would setup a secure, recall to each rune, drop garbage, and drop loot in bank.  What else do you need? :)

like this:

gosub checkbankorsecure
gosub checkforpole
gosub doallskillchecks
gosub setup
loop:
gosub recalltofirstrunethennextruneforeachbook
gosub fish
gosub killserpsiffound
gosub loot
gosub checkweight
gosub droplootandgarbage
goto loop
« Last Edit: August 16, 2009, 03:25:17 PM by Scripty »

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #19 on: August 16, 2009, 04:24:26 PM »
0
Twinkle McNugget, Endless... you are very kind to take the time, as is everyone else. 
Bear with me, I am learning and have learned a lot. :)


Well, there is a lot more to this script than this.  The fishing part is just the beginning.  I had it working, seriously working perfect, then I merged my 3 or 4 pages of garbled code, and now it doesnt work again, and I've been working on it all day and week for that matter.  I would like to share the full script, but I want to figure out as much as possible first, and just let you guys know when I am stuck.  That will give me a clearer train of thought so I don't get TOO many things and codes going at once.

Ummm... I am stuck, but I think I need to take a break and come back refreshed.

I will probably learn later that there is already a script that does what I am wanting to do... LOL... not funny.

But what I want it to do... FOR NOW...  is:

setup:
  bank
  bank secure
  trash
  runebook to bank
  and more...
-----------------
setup is probably 99% complete.
----------------- 
  fishing location runebook (all spots are from shore)
gosub fish
  rune1-16 until fish not biting
  journal to tell when not biting
  weight check
go bank when heavy
  dump trash (footwear, mess of fish)

----------------
I had it working until here, with the help from you guys...
----------------
  dump pearls in secure  (pretty sure this will be easy)
go to the next part of the script. 3 or 4 more subs (pretty sure this will be a nightmare)
go continue fishing where I left off
rinse repeat.


I wont be dumping fish into bank secure or any secure for that matter.

My final thought is, my mind is pooped.  You guys have given me a great start, and I just need to put in a little more until this part is done.

But I think for tonight, I am done. I need a break.

Thanks again guys
I'll post any progress, if I can muster some up. :)

Scrripty

  • Guest
Re: My first Script, looking to pick your brains.
« Reply #20 on: August 16, 2009, 04:47:35 PM »
0
I guess this is a bad time to tell you that TrailMyx is an avid fisher and has a GREAT fishing script that does all that.  But no need to recall as it does it on a boat... :)  Recalls to bank, drops loot, recalls back, drops all the junk on the serpents body so you have portable garbage cans basically. :)  It's very nice.  I would continue with what you are doing though because it will make your life way easier in the long run.  You'll be able to adapt anything to your purpose which is a very usefull skill to have when running scripts. :)

Twinkle McNugget, Endless... you are very kind to take the time, as is everyone else. 
Bear with me, I am learning and have learned a lot. :)


Well, there is a lot more to this script than this.  The fishing part is just the beginning.  I had it working, seriously working perfect, then I merged my 3 or 4 pages of garbled code, and now it doesnt work again, and I've been working on it all day and week for that matter.  I would like to share the full script, but I want to figure out as much as possible first, and just let you guys know when I am stuck.  That will give me a clearer train of thought so I don't get TOO many things and codes going at once.

Ummm... I am stuck, but I think I need to take a break and come back refreshed.

I will probably learn later that there is already a script that does what I am wanting to do... LOL... not funny.

But what I want it to do... FOR NOW...  is:

setup:
  bank
  bank secure
  trash
  runebook to bank
  and more...
-----------------
setup is probably 99% complete.
----------------- 
  fishing location runebook (all spots are from shore)
gosub fish
  rune1-16 until fish not biting
  journal to tell when not biting
  weight check
go bank when heavy
  dump trash (footwear, mess of fish)

----------------
I had it working until here, with the help from you guys...
----------------
  dump pearls in secure  (pretty sure this will be easy)
go to the next part of the script. 3 or 4 more subs (pretty sure this will be a nightmare)
go continue fishing where I left off
rinse repeat.


I wont be dumping fish into bank secure or any secure for that matter.

My final thought is, my mind is pooped.  You guys have given me a great start, and I just need to put in a little more until this part is done.

But I think for tonight, I am done. I need a break.

Thanks again guys
I'll post any progress, if I can muster some up. :)

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #21 on: August 16, 2009, 06:59:25 PM »
0
I second what script said.. even though thier probably are scripts out thier that do everything you want .. thiers nothing quiet like the empowerment that comes from creating your own.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #22 on: August 16, 2009, 07:20:41 PM »
0
word....   I couldn't agree more.

So I lied my previous post said I needed a break...  pfft!!!  I couldn't take a break, and reverted the script to do a few things the way i chickenscratched it out.  It works, even though it doesn't look as professional as you guys would do it.  Nor does it take those extra steps to keep it stable.  You guys will have to help me iron out those parts.  I have one more sub until it does EVERYTHING I want it to.  Just about 1000 Lines!!!  MUHAHAHA  And I thought this would be the nightmare part!! 

Well I shouldn't speak so soon.   :-X

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13303
  • Activity:
    0.4%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: My first Script, looking to pick your brains.
« Reply #23 on: August 16, 2009, 07:28:50 PM »
0
Looks like seeriusly has been bitten by the scripting bug.  heh.  Nice!
Please read the ScriptUO site RULES
Come play RIFT with me!

Scrripty

  • Guest
Re: My first Script, looking to pick your brains.
« Reply #24 on: August 16, 2009, 07:37:33 PM »
0
From my limited experience man, adding logic to a script is an ongoing and frustrating thing. :)  Just when you think you have EVERY single thing that could possibly happen covered... you find 10 more.  Or some noob uses it some way you never thought of and comes up with 10 more features you HAVE to add. haha  Gah.  I think I read TM saying somewhere that actual script writing is like 20 percent of the time, the other 80 is debugging. :)  So true.  I've spent HOURS hunting down a freaking bracket out of place.  ONE, LITTLE, BRACKET.   >:(  ONE THING TO ALWAYS REMEMBER:  ALWAYS WORK ON A BACKUP OF YOUR MOST RECENT AND WORKING VERSION.  If you add something and it WORKS, SAVE IT AND WORK ON A BACKUP OF THAT ALSO. haha  When you first start scripting you forget and work on the main script and do too much, then screw it all up and can't get it back to what it was. haha  I've done it a few times... I know...  Trust me...  :)


Also, I think EN was trying to get you to look at Journal2:.  You have an if statement that does nothing but return... :)  I'll post my edit and see if it works for you.  I'm assuming that any other result other than biting_here means you want to fish again?  I'm not a big fisher... I have no idea... I think that would do the trick wouldn't it?  Now any other result besides biting_here takes you right back to baithook: until you get biting_here in #result which will return you out of the fish sub, and everything else will keep you fishing.   

Code: [Select]
sub fish
gosub checkweight
baithook:
set #LObjectID #FindID
set #LTargetKind 2
set #LTargetX -1 + #CharPosX
set #LTargetY 3 + #CharPosY
event macro 17 0
target
event macro 22 0
wait 8s

journal1:
call ScanForJournalMsg.txt you_pull_out 1 20
     if #result = #true
{
gosub checkweight
goto baithook
}
else
{
gosub checkweight
goto journal2
}

journal2:
call ScanForJournalMsg.txt biting_here 1 20
     if #result = #true
        return
goto baithook

;===============CHECK WEIGHT============
sub checkweight
  if #weight > #maxweight - 30
    set %overweight YES
  if #weight > 390
    set %overweight YES
  if %overweight = YES
  {
        GoSub gobank
        GoSub dumptrash
  }
return
« Last Edit: August 17, 2009, 11:52:48 AM by Scripty »

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #25 on: August 17, 2009, 04:33:27 PM »
0
ok, so I only want it to do 2 things. 

When it fishes, it says "you pull out fish, pearl, boots, etc..."  So i want it to run that over and over until fish aren't biting.

if it ever says "fish aren't biting here"  that's when I will move to next rune.  I am fishing from shore, so it will never say anything else. like sea serpents kraken or chest...  I dont think.

what this did make me think about though, is if an NPC or smoething came into screen at that precise moment when it checks journal...  I guess it would keep fishing? and loop back down to not biting anyhow.  Right???



OOOOoooo.....  I think I know what you mean now.

 I thought that the if statement after journal2 would do this.

check journal for "biting here"

if true, then would return me to mainloop.

which is this:
Code: [Select]
mainloop:

Repeat
  For %Runeon 9 13
     {
      gosub clickRunebookLocation %MyRunebook %Runeon M #TRUE
      FindItem kdf_vmf_xhf     ; This seems lacking in details where is the rod at your hand backpack floor ?
      gosub Fish
     }
Until #False ; Set a script ending condition here..

Halt

Goes to next rune and continues fishing.

It DOES work how I had it above.  And I will investigate adding that line to see what it does.


BTW Twinkle McNugget...  I don't use brackets anywhere, except places where I copied snips from other scripts.  What are their purpose?

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #26 on: August 17, 2009, 04:44:18 PM »
0
And I have yet to figure out what Endless is saying  about the 2 "commented-out" pieces of that mainloop section.

"this seems lacking..."   It always uses the fishing rod when I press play.

"script ending condition here" I don't know what that means.  I have looked all over and have found nothing about the "Until" command or whatever it is.


I have one more tidbit to complete with this script, one or 2 that will require some MASSIVE process of elimination, then I will post the full thing.  Its a mess... lol  But it's wierd that it works because I know it isn't written right.
« Last Edit: August 17, 2009, 04:47:51 PM by seeriusly »

Scrripty

  • Guest
Re: My first Script, looking to pick your brains.
« Reply #27 on: August 17, 2009, 05:01:19 PM »
0
Brackets just enclose if statements that are larger than one line.  

Code: [Select]
if !seeriously = #bittenbyscriptbug
    set !seeriously = #kookoo
return

In this instance you don't need brackets.  The above example would check if seeriously is bitten by script bug, and if he WAS it would set his variable to #kookoo.  If it's FALSE it would just skip the set part and execute the return.  But if you made it longer...:

Code: [Select]
if !seeriously = #bittenbyscriptbug
{
    if !seeriously = #needsmentalhelp
    {  
        set !he'slooney
        yada yada yada
        yada yada yada
    }
}
return

So with more than one line needing to be included in the if statement you'd need to enclose it in brackets...  I'm sure there's other rules but I only really know of this one...  Unless you're doing some form of a math problem and you're using () there's rules for those too...

I like to use this as a horrible example of using if's:  It made my brain hurt when I first did it, but it's a great way to learn how to use brackets and helped me to learn how they work really well. :)  Basically it checks if the Use Lightning Strike menu button is checked, if it IS it checks if the MANA CHECK menu item is checked, if it's NOT, it defaults to just using ls, and if it IS it defaults to only using ls when your mana is above a certain point AND it checks to see which dropdown menu item is active on a 3 item list... haha  it looks so funny...  There's probly a WAY better way to do this, but when I first did it, I just wrote it in the only way I knew how... :)

Code: [Select]
 sub ls
    menu get 13 ;Lightning Strike;Primary:Secondary
    if #menures = #true
    {
      menu get 14 ; WS Mana Check
      if #menures = #true
      {
        menu get specials
        if #menures = 1
        {
          if #mana > ( #maxmana * !LSManaPercentage ) / 10
          {
            gosub lsSpecial
          }
          return
        }
        menu get specials
        if #menures = 2
        {
          if #mana > ( #maxmana * !LSManaPercentage ) / 10 && #mana >= !PrimaryMana
          {
            gosub execPrimary
          }
          return
        }
        menu get specials
        if #menures = 3
        {
          if #mana > ( #maxmana * !LSManaPercentage ) / 10 && #mana >= !SecondaryMana
          {
            gosub execSecondary
          }
        }
        return
      }
      menu get specials
      if #menures = 1
      {
        gosub lsSpecial
        return
      }
      menu get specials
      if #menures = 2
      {
        if #mana >= !PrimaryMana
        {
          gosub execPrimary
        }
        return
      }
      menu get specials
      if #menures = 3
      {
        if #mana >= !SecondaryMana
        {
            gosub execSecondary
        }
      }
     }
    }
  return

And I have yet to figure out what Endless is saying  about the 2 "commented-out" pieces of that mainloop section.

"this seems lacking..."   It always uses the fishing rod when I press play.

"script ending condition here" I don't know what that means.  I have looked all over and have found nothing about the "Until" command or whatever it is.


I have one more tidbit to complete with this script, one or 2 that will require some MASSIVE process of elimination, then I will post the full thing.  Its a mess... lol  But it's wierd that it works because I know it isn't written right.
« Last Edit: August 17, 2009, 05:35:53 PM by Scripty »

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #28 on: August 17, 2009, 05:40:44 PM »
0
Lookup "Repeat"  .. it will explain "Until"   (
Repeat
   <this code>
   <and this code>
   <and more code>
Until < Condition -- if condition is #true goto next line otherwise go back to the line rigth after the Repeat statment>

~~~~~~~~~~~~~~~~~~~`

FindItem kdf_vmf_xhf     ; This seems lacking in details where is the rod at your hand backpack floor ?

The pole just happens to be in your backpack so this is working... but say i run past you guy and drop a pole on the floor the script will find it and try to use that one ???

Better to do more specific
 FindItem kdf_vmf_xhf   C_ , #Backpackid ; Look for pole in a container (C_ ) in this case your backpack (#Backpackid)
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline seeriuslyTopic starter

  • Full Member
  • ***
  • Posts: 219
  • Activity:
    0%
  • Reputation Power: 6
  • seeriusly has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: My first Script, looking to pick your brains.
« Reply #29 on: August 17, 2009, 06:21:54 PM »
0
holy crap! that's a lot of brackets...  *trys to follow them*    You called ME Looney?!?!?!  hahaha  :-\
I think I got the jist of it.  Thankyou for that.  Need to start a thread with JUST variables and commands etc..  Like a thread named "IF" statement.  And one called "use of brackets"...  Might be resourceful for noobs like me ^^

And one called "Return / Until".  I know, I know...  Us noobs gotta do our research if we want the fruits of scripting.

I gotcha now Endless, on both instances you covered.  Thankyou!  I'd keep giving you karma, but you both would have more than TM by now just on this thread... LOL   Thanks for putting up with me though.

So... from what I gather.  my mainloop:
Code: [Select]
mainloop:

Repeat
  For %Runeon 9 13
     {
      gosub clickRunebookLocation %MyRunebook %Runeon M #TRUE
      FindItem kdf_vmf_xhf     ; This seems lacking in details where is the rod at your hand backpack floor ?
      gosub Fish
     }
Until #False

If I set this to Until #true,  the return at the bottom of my sub fish would take me to whatever code that is on the next line after Until #true??

Tags: