ScriptUO

Scripting Resources & Utilities => OpenEUO Scripts => OEUO => OEUO Snippets => Topic started by: TrailMyx on September 19, 2015, 12:22:49 PM

Title: (Unfinished) Advanced CLAw for OEUO
Post by: TrailMyx on September 19, 2015, 12:22:49 PM
Just releasing this for posterity. 
Title: Re: (Unfinished) Advanced CLAw for OEUO
Post by: manwinc on September 19, 2015, 12:39:07 PM
Oeuo Still exists?
Title: Re: (Unfinished) Advanced CLAw for OEUO
Post by: TrailMyx on September 19, 2015, 02:12:31 PM
Oeuo Still exists?

Heh, yeh.  I remember the time when I was super-excited about it.  I still have my timing analysis of this execution vs. EUO and it was quite shocking how much faster the OEUO stuff was.  Honestly, from what I'm finding OEUO is way faster than Stealth (.NET).  (sorry Crome... :p )

But the UI integration was a trainwreck..

Here's a conversation I had with Cerveza regarding my initial findings:

---------------------------------------------------------
(Originally posted on October 02, 2010, 10:34:08 PM)

Here's an even more impressive test.  I have single expression evaluation working so things like:

Magery > 10

Are evaluated in this example (113 pieces of jewelry):

(16 active rules)

Code: [Select]
FINDITEM time: 5.597000 seconds for 112 items
Hit Chance Increase match!
Strength Bonus match!
Hit Chance Increase match!
Dexterity Bonus match!
Magery match!
Magery match!
Luck match!
Luck match!
Dexterity Bonus match!
Luck match!
Magery match!
Hit Chance Increase match!
Intelligence Bonus match!
Luck match!
Lower Reagent Cost match!
Luck match!
Luck match!
Strength Bonus match!
Luck match!
Container eval time: 5.710000 seconds for 112 items
Rules executed = 2912
done looting

So the script executed 2912 rules in 113 milliseconds.  That means each rule takes 38.8 microseconds.  Going back to the CLAw, @9-15 milliseconds/rule, that means this script is 250-390 times faster.  This would take the old CLAw 26.2-43.7 seconds instead of 113 milliseconds.

Ah, math.  Annoying because people will still bitch about that 5.597 seconds it takes OEUO to do the finditem.  The event property doesn't add much overhead at all; that's all FINDITEM.

Will probably be able to really get some interesting looting profiles with OEUO!