ScriptUO

Official ScriptUO EasyUO Scripts => Site Scripter Libraries => UOMaddogs' Script Library => Topic started by: UOMaddog on December 21, 2012, 08:56:44 AM

Title: Maddog's Automator
Post by: UOMaddog on December 21, 2012, 08:56:44 AM
PURPOSE:
To train automate those mundane details of PvM and PvP that we all forget!

INSTRUCTIONS:
1. Make sure that this script and EN's ScanBuffBar.txt file are both in the same folder as your EUO executable!!! (see link below)
2. New targeting system MUST BE ENABLED IF you want to use Bandages or Spawner
3. Open this script and hit play
4. If you've never used it before on your current character, you will get a brief message with instructions, otherwise any settings you have saved will be restored
5. Select which actions/buffs/etc you would like automated
6. You can pause, save, and exit by pressing the buttons on the bottom
7. Enjoy PvP and PvM!

VERSION HISTORY:
Version 1.0
- First public release

Please Note:
- Nothing will be done if you are hidden and/or stealthing
- Bandages use the new targeting system
- Necro Debuffs = Blood Oath, Corpse Skin, Evil Omen, Strangle, Mind Rot
- Myst Debuffs = Sleep, Spell Plague
- "Spawner" is a little sub that I use that Selects Nearest Hostile and Attacks Selected Target (new targeting system must be enabled)
- Gift of Life will simply put a message about your characters head to remind you that your GoL has expired and needs to be recast

Please see the 2nd post for known bugs and issues!

Many thanks to EN for his amazing ScanBuffBar script! Please download it here: http://www.scriptuo.com/index.php?topic=1508.0 (http://www.scriptuo.com/index.php?topic=1508.0)
Title: Re: Maddog's Automator
Post by: UOMaddog on December 21, 2012, 08:57:07 AM
Known Bugs & Issues

- Consecrate Weapon does not seem to be detected on the buffbar (so it is spammed by the script). Not sure if it's an issue with the buffbar scanner or a typo in my script. If anyone can test it, that'd be great!

- Eating an apple due to Necro and Myst debuffs has not been tested (but I'm pretty sure I wrote it correctly). I didn't have a necro on an account where I could test it out (working it up now), so if anyone would like to test and confirm functionality, that would be appreciated!

- Strength and Agility potions have not yet been added to the buffbar scanner (unless I missed something) so they do not function currently.
Title: Re: Maddog's Automator
Post by: Canuker on December 21, 2012, 11:42:28 AM
I'll look forward to giving this a run when I get home from the office, thanks for sharing:)
Title: Re: Maddog's Automator
Post by: UOMaddog on December 21, 2012, 03:14:28 PM
Thanks! I appreciate it! I'm going to post in EN's buffbar scanner thread to figure out the strength/agility part.
Title: Re: Maddog's Automator
Post by: Canuker on December 21, 2012, 03:27:41 PM
Well I've got it and just pulled the latest buff bar scanner.  I'll rock it out tonight during a spawn and comment when I test everything that I can.  The window looks great and could fit a few more options like evade/divine/primary or secondary weapon skills but I have yet to actually play with it so I can't comment.  All in all I am very excited to give it a run when the wife lets me play fully...Thanks again for sharing.
Title: Re: Maddog's Automator
Post by: Endless Night on December 21, 2012, 06:32:07 PM
Maddog,  pots = magery buffs (good catch), consecrateweapon buff is working see my other post for what i thing is up.

nice script .. ive been running it. very nice.
Title: Re: Maddog's Automator
Post by: UOMaddog on December 21, 2012, 06:55:57 PM
I saw your other post, and I'll dig back into it when I get back from Christmas "vacation" with the fam. I'll update everything and post a new version after that! Thanks!
Title: Re: Maddog's Automator
Post by: Endless Night on December 23, 2012, 11:08:32 AM
The spamming consercate weapon issue i think was becuase you had icons on the buff bar that were not yet recognized... so it wasnt reading the full bar as i through it had reached the end already...

Added a couple more icons that you can automate...  honor and perfection.
Title: Re: Maddog's Automator
Post by: Canuker on December 23, 2012, 01:14:38 PM
I ran it last night for a short bit.  For some reason it kept looping EOO though I am not sure why.  

Edit: I will delete the file I pulled here last night and see if that updates it. I'll reply tonight when I have done such.
Title: Re: Maddog's Automator
Post by: UOMaddog on December 23, 2012, 04:09:22 PM
@Canuker: Make sure you have the latest version of the ScanBuffBar script (I need to update the main post with a link to EN's script)

@EN: Forgive my ignorance, but what can I automate with honor and perfection? Isn't there a bushido move that relates to one or both of those? (Can you tell I almost always play a mage??)
Title: Re: Maddog's Automator
Post by: Endless Night on December 23, 2012, 04:16:39 PM
@Canuker: Make sure you have the latest version of the ScanBuffBar script (I need to update the main post with a link to EN's script)

@EN: Forgive my ignorance, but what can I automate with honor and perfection? Isn't there a bushido move that relates to one or both of those? (Can you tell I almost always play a mage??)

WEll you can honor your target and you will if bushidos 50+ eventually gain perfection. That honor is not a bushido thing thow its a virtue.  http://www.uoguide.com/Honor

Thiers a few bushido moves actaully,  one that works with honor above... honorableexecution but thiers also  Confidence, Evasion, CounterAttack, LightningStrike, MomentumStrike.  I guess it depends on your template if you have bushido you might use those or not.
Title: Re: Maddog's Automator
Post by: UOMaddog on December 23, 2012, 06:09:18 PM
Do all those have icons now that you can use to toggle them instead of comparing pixels?
Title: Re: Maddog's Automator
Post by: Endless Night on December 23, 2012, 06:53:40 PM
Do all those have icons now that you can use to toggle them instead of comparing pixels?

Yes all those i mentioned in prior post have an icon.  HonerableExecution only shows as an icon after you target a enemy.  Ie if you cast it prior to combat it wont show up until you hit the first target.
Title: Re: Maddog's Automator
Post by: manwinc on December 23, 2012, 07:40:31 PM
Ooo.....
Title: Re: Maddog's Automator
Post by: UOMaddog on January 11, 2013, 08:41:46 PM
OK...so I have a new version (working much better) ready to release...however I have one issue! I added lightning strike and momentum strike and rearranged the menu. But I have the script check if the user has any saved values and loads them. Not a big deal, however if the user HAS saved values with v1.0, they're missing values for LS and MS now. So the script tries to load up the values and the menu doesn't display a checkbox for LS or MS since my two variables do not have values in the registry. Anyone have any ideas for check if a registry-stored value is present?
Title: Re: Maddog's Automator
Post by: UoLugnutz on January 12, 2013, 05:12:45 AM
- "Spawner" is a little sub that I use that Selects Nearest Hostile and Attacks Selected Target (new targeting system must be enabled)

Just reading up on the script and seen you mentioned the above under notes but do not see it anywhere? Curiosity had me wanting to take a look at it  :)
Title: Re: Maddog's Automator
Post by: Endless Night on January 12, 2013, 08:11:25 AM
OK...so I have a new version (working much better) ready to release...however I have one issue! I added lightning strike and momentum strike and rearranged the menu. But I have the script check if the user has any saved values and loads them. Not a big deal, however if the user HAS saved values with v1.0, they're missing values for LS and MS now. So the script tries to load up the values and the menu doesn't display a checkbox for LS or MS since my two variables do not have values in the registry. Anyone have any ideas for check if a registry-stored value is present?

check if its N/A   .. of course doing probably also also creates it if it didnt exist but at least you will know if it had a value or not
Title: Re: Maddog's Automator
Post by: UOMaddog on January 12, 2013, 12:18:30 PM
check if its N/A   .. of course doing probably also also creates it if it didnt exist but at least you will know if it had a value or not

I didn't realize it actually "returned" N/A if it didn't exist! I'll add that in and then I should be able to release it for public consumption! I should probably put that check on all the fields just to be safe. Thanks again EN! This script would be useless without you! (in more ways than one)
Title: Re: Maddog's Automator
Post by: UOMaddog on January 12, 2013, 12:19:53 PM
- "Spawner" is a little sub that I use that Selects Nearest Hostile and Attacks Selected Target (new targeting system must be enabled)

Just reading up on the script and seen you mentioned the above under notes but do not see it anywhere? Curiosity had me wanting to take a look at it  :)


If you check the box for "Spawner" when you're running the script, it will find the nearest hostile creature/character and then attack them (as if you double clicked on them in War mode). You can look at the code or I can post the snippet for you if you'd like!
Title: Re: Maddog's Automator
Post by: Endless Night on January 12, 2013, 01:01:42 PM
check if its N/A   .. of course doing probably also also creates it if it didnt exist but at least you will know if it had a value or not

I didn't realize it actually "returned" N/A if it didn't exist! I'll add that in and then I should be able to release it for public consumption! I should probably put that check on all the fields just to be safe. Thanks again EN! This script would be useless without you! (in more ways than one)


I didnt check it .. you might want to make sure it works as advertised.
Title: Re: Maddog's Automator
Post by: roadrunner on May 02, 2013, 03:05:15 PM
Maddog, again, many many thanks for an awesome job on the script!! i've only tested it briefly in my own house using dual clients and a necro casting blood oath on my sampire but the script worked and used an apple to cleanse it off :)
i wish i knew how to remedy the saved info problem so users can see the new option boxes when added. i just downloaded and ran this script but i'm not seeing any bushido check boxes so maybe i didn't DL the newest version?
Title: Re: Maddog's Automator
Post by: UOMaddog on May 03, 2013, 07:47:03 AM
I haven't uploaded the newest version yet. I was waiting on some answers regarding the buffbar scanner. It appears many users were having issues when there were more than 4 icons in the buff bar (or perhaps CERTAIN icons, though I don't know which). Haven't had the time to have an in-depth discussion with EN about it to figure out if it's a logic issue in my script or a buffbar issue.
Title: Re: Maddog's Automator
Post by: roadrunner on May 04, 2013, 07:04:30 AM
i did run this in doom after my little in-home test, but my sampire was only using apples. he didn't (that i noticed) try to cast remove curse. i'll give it another go & try to give you some better feedback.
i forgot to mention, on the doom run i only used it for 1 round. DF blood oath'd me, i died, frustration set in, i logged. :P
Title: Re: Maddog's Automator
Post by: ahjian on October 29, 2015, 04:21:06 AM
Tried running with curse weapon option ticked but my char just keep casting Curse weap again and again.

I have scanbuffbar, EUO and Maddog's automator in the same folder.

Using ver 40b of scanbuffbar.

Title: Re: Maddog's Automator
Post by: Endless Night on October 30, 2015, 09:30:35 AM
Tried running with curse weapon option ticked but my char just keep casting Curse weap again and again.

I have scanbuffbar, EUO and Maddog's automator in the same folder.

Using ver 40b of scanbuffbar.

This is probably an issue with the scanbuffbar...  Their are a boat load of new icons.  I will be releasing a new version soon ... sorry have been kinda slack.... please bear with me.