ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: KilroyIsDead on May 23, 2009, 11:14:40 AM

Title: trouble with a renegade script
Post by: KilroyIsDead on May 23, 2009, 11:14:40 AM
I'm struggling with this script.  It's a basic rune book lumberjacking script.  I am using TM_AdvJournal and a few home spun libraries.

Every once in a while the script seems to go into the weeds, while it will recover I loose valuable jacking time.  When I can see that it's off track I'll hit the pause button and it's a in like a setup routine that one has one entry point and stepping over the code it's just blowing through every line. By that I mean it passes through the true and false cases of an if statement.

you'll have to set three variables at the top of the script.  Hopefully the setup will do the rest.

set !SetupFilePath C:\UO\Scripts\SetupFiles
set !PGScriptPath C:\UO\Scripts\PGUtils
set %SwingDelay 11

you'll need to put the 4 files in the jpg in the directory indicated by the PGScriptPath

The main script is
PG.LumberJackingByTheBook.suo


Title: Re: trouble with a renegade script
Post by: TrailMyx on May 23, 2009, 11:24:55 AM
Do you have an understanding of about where the code is going wonky?  Was it trying to recall, chop, drag, etc?  Or does it go strange at different places?
Title: Re: trouble with a renegade script
Post by: TrailMyx on May 23, 2009, 11:39:36 AM
There's one failure while chopping that can halt that process.  If you add "you_can't_use" to the list, this might help break out of an unsuccessful chopping experience.  My beetlejacker would get stuck sometimes because of strange choppable tiles until I added this one.

I can't really test this since my main account is in doom at the moment.
Title: Re: trouble with a renegade script
Post by: KilroyIsDead on May 23, 2009, 11:43:31 AM
ack is the journal case sensitive I think I have You_can't.  I'll verify that.

As to when it goes wonky, it's not a 100% failure so i can see it complete a whole rune book without issue, then I walk away (mometarily ;) and it seems to go off track.
Title: Re: trouble with a renegade script
Post by: TrailMyx on May 23, 2009, 11:51:14 AM
Definitely not case-sensitive.  Strings have no magnitude either so you can't do >, < logic either.
Title: Re: trouble with a renegade script
Post by: KilroyIsDead on May 24, 2009, 07:28:58 AM
Art to encumbered.  Fat kids never get the love.

I must have blown by a weight check
Title: Re: trouble with a renegade script
Post by: TrailMyx on May 24, 2009, 07:39:45 AM
Ah ha!  Secret binge eating will get you every time!  :)