Official ScriptUO EasyUO Scripts > Combat/Healing/Looting

TrailMyx's Advanced CLAw FULL - The Ultimate Autolooter - Public Release!

(1/252) > >>

TrailMyx:

--- Code: ---;=================================================================
; Script Name: TrailMyx's Advanced CLAw (Complete Looting Assistant)
; Author: TrailMyx
; Version: 0.756
; Shard OSI / FS: OSI / FS OK
; Revision Date: 9/29/2007
; Purpose: Simply the Fastest and Best autolooter in the UOniverse!
; Globals:
; Special Thanks:
;   Cerveza the UO master!
; Beta testers:  Bookwyrm, MissyMoose, Gimlet, Cake2, Hoby.  Thanks!
; Bug testers: Khameleon
;=================================================================

--- End code ---



Features:


* Variable rules entry for item intensities, skill intensities, bonuses, #FINDTYPES, or text searches
* Loot from ground or containers
* Automatic looting of corpses, or by keypress
* Targeted looting mode
* Running history of looter performance
* History tab tells what was looted AND WHY i.e. Luck >=90
* Stats tab gives detailed timing analysis of looting function. 
* Expandable windows for Rules and Active sections
* Adjustable font size
* User selectable logging to the History tab using the "Log?" checkboxes
* Minimize/Maximize looter window
* Pause/Unpause script buttons
* Save/Load setup function
* Ability to save last refreshed window as BBCode to be posted on forums like SUO
* Minimize/Maximize looter window
* Items looted (looted current/looted historical/evaluated historical)
* Gold looted (looted current/looted historical)
* Pre-programmed specific items (see Specific items: pulldown)
* Pre-programmed slayer weapons
Detailed Stats:

* Time online
* Gold/Hr
* Average time between loots
* Rule count and rules Active
* Active rules that are Complex (not available in the LITE version)
* Active rules that are Omit (not available in the LITE version)
* Rules/Container (RPC), Rules/Second(RPS) and Rule Execution Time (RET)
In order to add rules that you can apply to looting, you must first add these rules to the [Rule Entry] Left Pane.  You do this by following the above picture and numbers:

1) Select the attribute/intensity/etc as well as the logic (<,>,=,<=,>=,<>) and the value of the intensity.
2) Select OK, this moves the "rule" to the [Rule Entry] Pane
3) Select a rule you want to put in the [Active Rules]
4) Press "Add" and the selected rule will be added to your [Active Rules] list
5) The [Active Rules] list will be applied to every item found in a corpse/container.

ML Items:
Dragon Flame, Serpent Fang, Tiger Claw badges$Blight$Scourage$Putrefaction$Taint$Corruption$Eye of Travesty$Diseased Bark$Dread Horn Mane$Mucclent$Decay$Yellow, Blue key$Torso, Legs, Head, Spine

About intensities:

The CLAw searches for intensities by looking for numbers that start or end a line within a property value.  So intensities like:

+10 Fencing
and
Fire Damage 100%

These can be searched for intensities >, >=, = , < or <=.  However for things like:

Mage Weapon -26 Skill

Since the intensity is embedded in the line, you cannot look for a specific intensity.  This is to speed up parsing of each individual line.

What's the interface all about?
This script is a bunch of subroutines that will allow you to integrate the CLAw looting into your own scripts.  If you'd like to see an example of how this works, download the Heartwood quester with CLAw support.

TrailMyx:
Questions/Answers/Useful Tips:

Using the Logic interface - a quick tutorial

In order to form a complex rule, you have to have the individual rules already in your Rules Entry list.  Once they are there, you do the following:

Example FC1 && FCR3

1) Enter FC1 as a rule
2) Enter FCR3 as a rule
3) Press the "Rule" key
4) Select the first rule from the Rules Entry (looting will pause - note the rule entry buttons change..)
5) Select "FC1" rule from the Rules Entry list and press the OK button (note that AND, OR, and NOT appear)
6) Press the AND button
7) Select "FCR3" rule from the Rules Entry list and press the OK button.
...note... watch the rule being formed in the Rule: textbox
8 ) When you are done with the rule, press DONE.
9) Now you have a rule [Faster Casting >=1 AND Faster cast Recovery >=3]
10) If rule is to your liking, then press the ADD to add it to your active list.

Things to note:
1) Complex rules are surrounded by brackets [ ]  (script does this automatically)
2) Yes, you may have multiple complex rules chained together.  i.e. [FC1 && FCR3] && [ NOT ring]

It does take a bit of practice to make the logic correct.  It's a bit funky at first, but it's a necessary evil to be sure the user enters a rule that makes sense to the script AND the way it's entered automatically tokenizes the rule, so I don't have to parse it every time and this adds to the speed of looting.  Imagine how long looting would take if you have to parse a logical string each time...  yeesh.

If you want to see a mind-bending piece of coding, take a look at recursive parser that runs the rule evaluation for complex rules.  lol.  I never want to debug that again!
--------------------------------------
Q: The CLAw isn't saving my setup
A:
make sure the files it saves are being saved to the same directory as your EUOX.exe file.  Just be sure to remove the "c:\" from the saved files.

For example the "pointer" file that directs the CLAw to your looting saved will be named:

(shard)_(char name)_aclawlite.txt

The file contents will be like this:

--- Code: easyuo ---set %setupfile (filename).txt  
This points to your looter setup file "(filename).txt".  Note there is no "c:\"

Both these must be located in the same directory as where you ran "EUOX.exe"

--------------------------------------
Q: This script doesn't seem to be looting things on my loot list or is otherwise behaving strangely
A:

In order to start diagnosing any issue, the first place to start is to only run this script without any other script running.  More importantly, if you are using Razor, Steam or UOA, please stop using those while you determine if there's is a problem with the script itself.  Those external programs play havoc with how EasyUO communicates with the client, so limit EasyUO to their exposure while you debug.

Attached is the original release of the CLAw here at SUO back in 2008 Version 0.756 for a historical view of the evolution of this script.

Note this script was released for around a year before at UOCoders, so it's been around for a while now.  ;)

rana70:
Version 0.756

Hi,

isi possible that there is a sligt glitch with the small "p" / "u" button in the upper right corner ?

I pressed it .. the big PAUSE Button below became UNPAUSE and I never could
unpause the script. Pressing any of the two buttons just brings up Pause...
in the status line an the buttons still stay "u" and "unpause"

btw. I add the Butchers Warcleaver HFR_ to the daggertyps and
if you don't mind I would move the set %root_directory xxx to the
usersetup area at the beginning of the script
 
thx for all your work

TrailMyx:
Thanks for that.  There is something wrong with the pause button in the LITE version, but seems to work fine in the FULL version. 

Oh, lol, I fixed that already.  I have another version I never released.  heh.  Oops.  But I'll add your Butcher's War Cleaver suggestion.

TrailMyx:
For now, just goto line 448 and remove:


--- Code: ---  set %script_pause #FALSE

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version