ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Item Evaluation => Topic started by: TrailMyx on June 09, 2008, 12:33:36 PM

Title: Miffy's Item Finder
Post by: TrailMyx on June 09, 2008, 12:33:36 PM
Code: [Select]
;============================================
; Script Name: Miffy's Item Finder v96
; Author: Miffy
; Version: 0.96
; Client Tested with: 5.0.1h 60
; EUO version tested with: 1.5 69
; Shard OSI / FS:  FS (Alexandria) / OSI OK
; Revision Date:  14-Feb-07
; Public Release: 15-Dec-06
; Global variables:  none
; Purpose:
;   Use this script to search for a named item in:
;   1) A targeted container
;   2) All surrounding containers you have access to within 2 spaces.
;   3) Once you find them in a container, you can "keep" the item by having it moved into your pack. (drops on your paperdoll)
;   4) Instead of keeping the indivual items interactively, you can automatically collect every item found matching your criterion.
;   5) Use on a targeted vender; allowing purchasing of located items (thus allowing your to hunt though
;      those dreaded multi-bagged venders more easily for the specific item(s) you want.
;      (press next to continue once you buy)
;   6) After the completion of a search, the total number of items found matching your search criterion wil be displayed.
;   7) Search all vendors surrounding character to a specified radius.  Vendor shopping does not need to be a pain in the butt amy longer!
;   8) Summary of items found can be saved in HTML format to a user-specified filename.
;   9) File save shows a progress bytecount.  Files are saved in 2Kbyte chunks, so large files may take a while.
;
;   What makes this script so nice is that it will also the search all
; sub-containers within each main container. It will even search containers within sub-containers to any level.  (as close to recursion as EasyUO will get)
;
;  Additional features:
;    . Search for item intensities GREATER, LESS, or EQUAL to a specified value
;    . Search for up to 3 separate terms and intensities (and checkbox)
;    . Remembers the history of your last successful search criterion.  You
;      can scroll through the results and "Buy?" or "Keep" the items
;      you want.
;
; Menu designed with Menu Designer.
; v9 - release version
; v91 - fixed bug where search would hang if a number was one of the main search fields.  Now can search for things like powerscrolls of 110, 115, etc.
; v92 - fixed bug in item dragging when collecting items from containers and placing them in your main pack.
; v93 - made object drag now an exevent, no longer works with previous version of easyuo
; v94 - Added "Scan" feature that allows the user to search though
;       a vendors' inventory first before making a selection. Press the
;       "Next" or "Prev" buttons to sort through the summary.  Pressing "Buy" will
;       attempt to purchase the presently selected item.
; v95 - internal release adding GREATER-EQ and LESS-EQ
; v96 - . Multi-vendor searching with radius control, search through vendors or containers
;         when "Vendors?" is selected, container search is omitted.
;       . Remember container of object so it can be brought to front of display during review
;       . "Report All" feature will report everything found, and summarize it if selected.
;       . HTML output of everything found in last search to user-defined filename
;       . Automatic lag adjustment for container opening.  Reset upon script startup
;       . Fixed bug in intensity searching.  Now works correctly.
;
;       Note:  Get summary?  will automatically de-select Automatic collect? feature since they
;              both scan uninterrupted.
;
; Thanks to:
; DosX - OSI testing and suggested "Get Summary?" feature of 0.94
;============================================
Title: Re: Miffy's Item Finder
Post by: Tidus on August 02, 2008, 06:48:05 PM
How can i make it so that it will search all my containers and write everything in it rather than searching for a specific item?


http://www.scriptuo.com/index.php?topic=24.0
Title: Re: Miffy's Item Finder
Post by: TrailMyx on August 02, 2008, 07:27:11 PM
Just be sure to have "Report All", "Search Surrounding", "Search sub-containers" and "Get Summary" checked.
Title: Re: Miffy's Item Finder
Post by: Tidus on December 18, 2008, 08:26:24 PM
I have made a version to support XML.  If you guys want to try it here it is.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on December 18, 2008, 08:33:21 PM
heh, I was going to recommend that you modify my HTML generator code, but you beat me to the punch!  Good job man.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on December 18, 2008, 08:39:21 PM
I looks like there is some added functionality in there too.  What are you doing with the %string1-%string15?
Title: Re: Miffy's Item Finder
Post by: Tidus on December 18, 2008, 08:44:26 PM
going to try to get it to the nitty gritty of attatching certain strings to have certain names instead of just <Stat>
Title: Re: Miffy's Item Finder
Post by: Tidus on December 18, 2008, 08:47:10 PM
going to take a bit of a break on it though.  Converting it and then making sure everything it does makes it valid is hard.  I do find a small problem. Since it only does so much first it will stop in the middle of a Stat sometimes so you just need dreamweaver to catch where they are and then just make them whole again and it works great.  Also use Dreamweaver so you can auto format the code so it adds in the breaks after each code.
Title: Re: Miffy's Item Finder
Post by: Tidus on December 18, 2008, 08:57:37 PM
Here is an example of what comes up after i fix the <Stat>(s) separation problem.

http://epoetrycorner.com/test1.xml  (http://epoetrycorner.com/test1.xml)

i'm going to fix it up so you can see what can be done with XML soon.
Title: Re: Miffy's Item Finder
Post by: Tidus on December 24, 2008, 02:09:50 PM
Does Miffy support this script anymore?  If not i'll take it over with support and make it my adoptive child.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on December 24, 2008, 02:55:50 PM
Miffy is me.  :)  Or at least my feminine scripting side.  heh
Title: Re: Miffy's Item Finder
Post by: Khameleon on December 25, 2008, 04:57:14 AM
I always new there was something different with that guy....
Title: Re: Miffy's Item Finder
Post by: Tidus on December 25, 2008, 11:59:08 AM
that is a little scary ;) :o
Title: Re: Miffy's Item Finder
Post by: Wilk on February 06, 2009, 03:31:46 PM
Still my favorite script of all time!
Title: Re: Miffy's Item Finder
Post by: TrailMyx on February 06, 2009, 05:44:22 PM
Still my favorite script of all time!

You know, I still use this script more than probably any other script I've written.  Actually it's through this script that I met Cerveza.

Title: Re: Miffy's Item Finder
Post by: Cerveza on February 06, 2009, 09:17:02 PM
Yep, seems like only yesterday.....  :D
Title: Re: Miffy's Item Finder
Post by: Cerveza on February 20, 2009, 05:50:05 AM
How hard would it be to change this around a bit for organizing items in a home?

Like if I have a pile of stuff in one chest, and some in another, have this find all piles of stuff and combine them together?
Title: Re: Miffy's Item Finder
Post by: TrailMyx on February 20, 2009, 10:04:54 AM
Pretty hard really.  That fights against the mechanics of how you collect things.  Right now you can collect the items and put them in you pack.  There's no facility to have a destination pack other than you #BACKPACK.  It would get kinda annoying to have to "Target source container" and "Target destination container".

It would be easier to just write a new script than it would be to try and bend this one I think.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on May 05, 2009, 10:16:21 AM
Ok, I finally had some time to fix a couple issues with this script.  I've also added a container targeting feature, so if you want to combine particular items, you can target a destination container.  Take a look at v99.

P.S.  I finally ran the syntax checker on it.  oopsie.  I shoulda done that a while ago.
Title: Re: Miffy's Item Finder
Post by: Cerveza on May 05, 2009, 10:58:31 AM
Wait a minute.... an option to put found items into a targetted container??

That sounds familiar..... like something someone suggested... like over a YEAR ago  :P

Cool that you could incorporate that.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on May 05, 2009, 11:00:52 AM
Heh, well I've had it in my personal version for about that long.  I was just stingy.... :p (probably right after you recommended it....)
Title: Re: Miffy's Item Finder
Post by: Cerveza on June 23, 2009, 07:16:17 PM
Ok, v99 is broke.

Did a search for something in my secures. I used "mana > 20" to find a mana leech bow. I found a few, then I did a search for "mana > 30" on my pack to find which were above 30. NO HITS. I look and see that there are bows above 30, so why no hits?

I change it to the same search that got the bows into my pack "mana > 20" and target my backpack and NO HITS. It's not searching backpacks at all.

No matter what search criteria I put in, nothing is found in my backpack. I even did the "space" thing that shows everything and got "found 0" on my backpack. And it's not opening up sub-containers in my pack.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on June 23, 2009, 08:34:30 PM
Ok, ignore all my other posts (I deleted them anyhow).  The script is doing exactly what it's programmed to do.  If you are trying to evaluate the source and destination container, it will fail.  From this code:

Code: [Select]
  finditem * C_ , !search_container
    if ( #FINDKIND = -1 ) || ( !search_container = %mypaperdoll ) || ( !search_container = %destination ) ; || ( !search_container = #BACKPACKID )
      goto continue_search_skip1 ; (skips)

Will cause the container to not be evaluated.  You might try changing the destination to something else, but I never intended the script to search the destination just for safeguarding purposes to avoid getting into a drag-loop.

So it's not broke, it's working exactly the way I intended it.  :)

But I'm glad you fully tested my safeguard.  heh.
Title: Re: Miffy's Item Finder
Post by: Cerveza on June 24, 2009, 03:12:26 AM
Well... it's ignoring everything in your backpack, which is technically your destination, even when nothing is dragged to your backpack. Even when you target your backpack because you want to search it.

So it's impossible to search for items in your backpack? Which isn't that big of a deal, but it would be nice to know.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on June 24, 2009, 06:45:09 AM
Ya, those are the kinds of checks I started putting in when issues like "Stripping Cerveza" pops up.  If you were messing with the display and clicked your paperdoll or backpack when it does container sampling, you run the risk of looting what you already looted/purchased/wear.  That was definitely added as a precaution.  It's not a matter of ignoring everything in your backpack, it's not even evaluating anything in your backpack (destination).  Probably this was added due to feedback/testing early on.

Like I said, you might try changing your destination to perhaps a pack in your backpack and see if you can evaluate your main level of the backpack.  At least 99 give you that option.
Title: Re: Miffy's Item Finder
Post by: Cerveza on June 24, 2009, 06:50:49 AM
No problems at all. I'll just make a destination (much cooler anyways) within my backpack.

I just kept trying by backpack over and over and I KNEW there was matching criteria in it... Didn't know it was making me nekkid....
Title: Re: Miffy's Item Finder
Post by: Khameleon on June 29, 2009, 03:44:54 PM
I've been trying to play with this coming up short..
I'm searching through a bag with like 100 bows in it.. just looking for Swing_Speed_Increase >= 20, comming up with 0 Results. then I refined the search Swing_Speed_Increase N/A came up with 0 results... now I know I there has to be at least 80 bows with Swing Speed increase as a property.. not sure what I'm doing wrong.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on June 29, 2009, 03:46:17 PM
That uses finditem ignore, so if you found them once, you won't find them again.  You'll have to refine your search ahead of time.

You might search were the ignore should reset and put that in.

Also, you need the spaces and not the underscores.  That might be your problem.
Title: Re: Miffy's Item Finder
Post by: Khameleon on June 29, 2009, 03:56:29 PM
lol, I dunno it just started working all of a sudden....
Title: Re: Miffy's Item Finder
Post by: Tidus on July 03, 2009, 09:52:20 AM
Does this mean i need to update my XML version to your version?  LOL...  i don't remember even how i did the XML anymore...LMAO
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 03, 2009, 09:57:04 AM
heh, might be easier to DIFF the two versions and make the little additions that I did to your copy.  ;)
Title: Re: Miffy's Item Finder
Post by: UOMaddog on July 04, 2009, 11:45:38 AM
I recently started on an item sorting script that would have a container to sort and then you can select mods and sort it into separate containers based on the mod. It's very basic at this time, but I already wrote some subs for it. I have tons of armor that I've burned in bags, but none of it is sorted. So I picked a mod like LRC and had it sort a bag of arms into 4 different containers, the first container was LRC items, the second was MR/LMC (excluding those that were already put into the LRC container). So basically an hierarchy of mod sorting. It's nowhere near complete yet, but it is in the works. Any input would be welcome, so I'll probably start a new thread with it! You can take a look at the menu below.


Drop this code in a new EUO window and you can kinda see what I was doing:

Code: [Select]
set %version 0.1
gosub MaddogItemSorterMenu
halt

sub PropertyList
menu Combo Add %1 Lower Reagent Cost
menu Combo Add %1 Lower Mana Cost
menu Combo Add %1 Mana Regen
menu Combo Add %1 Hit Point Regen
menu Combo Add %1 Stamina Regen
menu Combo Add %1 Mana Increase
menu Combo Add %1 Hit Point Increase
menu Combo Add %1 Stamina Increase
menu Combo Add %1 Reflect Physical Damage
menu Combo Select %1 %2
return
;--------- EasyUO Menu Designer Code Begin ---------
sub MaddogItemSorterMenu
menu Clear
menu Window Title Maddog Item Sorter v , %version
menu Window Color Black
menu Window Size 330 355
menu Font Transparent #true
menu Font Name MS Sans Serif
menu Font Style
menu Font Color Gray
menu Font BGColor Black
menu Font Align Left
menu Font Size 8
menu Text Heading 5 1 #1.Please select a specific bag to sort.$#2.Select any/all properties to sort.$#3.Target any/all bags that are needed.$**NOTE: Items are sorted by priority starting with Property 1!!!
  menu Font Color Lime
menu Combo Create Property1 85 85 180
gosub PropertyList Property1 1
menu Combo Create Property2 85 115 180
gosub PropertyList Property2 2
menu Combo Create Property3 85 145 180
gosub PropertyList Property3 3
menu Combo Create Property4 85 175 180
gosub PropertyList Property4 4
menu Combo Create Property5 85 205 180
gosub PropertyList Property5 5
menu Edit Custom1 85 235 180 Type Custom Property Here...
menu Edit Custom2 85 265 180 Type Custom Property Here...
menu Edit Custom3 85 295 180 Type Custom Property Here...
menu Font Color Blue
menu Button SortBag  85 55 180 25 Sort Specific Bag
menu Check EUOCheckBox1 5 85 75 25 #false Property 1:
menu Check EUOCheckBox2 5 115 75 25 #false Property 2:
menu Check EUOCheckBox3 5 145 75 25 #false Property 3:
menu Check EUOCheckBox4 5 175 75 25 #false Property 4:
menu Check EUOCheckBox5 5 205 75 25 #false Property 5:
menu Check EUOCheckBox6 5 235 75 25 #false Property 6:
menu Check EUOCheckBox7 5 265 75 25 #false Property 7:
menu Check EUOCheckBox8 5 295 75 25 #false Property 8:
menu Font Color Yellow
menu Button Container1 275 85 50 25 Target
menu Button Container2 275 115 50 25 Target
menu Button Container3 275 145 50 25 Target
menu Button Container4 275 175 50 25 Target
menu Button Container5 275 205 50 25 Target
menu Button Container6 275 235 50 25 Target
menu Button Container7 275 265 50 25 Target
menu Button Container8 275 295 50 25 Target
menu Font Color Red
menu Button StartButton 10 325 95 25 START
menu Button ResetButton 115 325 95 25 RESET
menu Button ExitButton 220 325 95 25 EXIT
menu Show 100 100
return
;--------- EasyUO Menu Designer Code End ---------



Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 04, 2009, 11:57:48 AM
That's too cool!  I love item evaluation scirpts!!  You should make that thread so we can discuss it.  I'm sure people have some unique input about this.

BTW:  Miffy's Item Finder kinda does this already.  There's 3 levels of attributes you can look for and also have a source/target container.  Also this does recursive chest traversal, so it will dig down into chests within bags within boxes to hunt through and entire containers content.  Also it will hunt through all containers within REACHABLE range.  This means it won't try to hunt through containers on your 2nd or 3rd floor, or containers that don't belong to you.
Title: Re: Miffy's Item Finder
Post by: Superslayer on July 04, 2009, 12:28:39 PM
These item eval's and sorter script are going to be great for raveling/unraveling. imagine loads of boxes with all the mods easily sorted and measured, just waiting to be plucked for unraveling.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 04, 2009, 12:34:13 PM
Oh, I loaded your UI and I see your thoughts now.  That'd be useful!
Title: Re: Miffy's Item Finder
Post by: UOMaddog on July 05, 2009, 08:53:07 PM
If I get some time, I'll make a few modifications I've already thought of and start a thread...just too busy with work lately!
Title: Re: Miffy's Item Finder
Post by: tandj99 on August 16, 2009, 04:20:16 PM
i love that menu that will be awesome when you get the rest of it done.
Title: Re: Miffy's Item Finder
Post by: Cerveza on September 10, 2009, 06:48:55 AM
I'd still like Miffy to include TOTAL RESISTS in the display, or make it available as a search criteria.

Just a little peeve is, when I click to Take and Item, I'd like to see the display automatically move to the next item on the list.

I'd like to see a button for "Trash" to throw away items into a selectable container. So I can "Keep" items into my secure and "Trash" them into the trash barrel.

I'd like a lot.... I'm a needy person.... I want it all.... I'm a tard today.
Title: Re: Miffy's Item Finder
Post by: cgeorgemo on September 10, 2009, 07:07:09 AM
This is pretty much what I was wanting to see in CLAw. I had no idea that this script was around.


*****goes of nosing around into the library for a closer look.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on September 10, 2009, 10:39:23 AM
One of my back-burnered projects is to move the CLAw evaluation engine over to this.  Some day.
Title: Re: Miffy's Item Finder
Post by: Bookwyrm on September 12, 2009, 04:26:54 AM
Miffy is me.  :)  Or at least my feminine scripting side.  heh

Actually it's through this script that I met Cerveza.

Ya know... Taking these two posts together without all the proper context.... :o
Title: Re: Miffy's Item Finder
Post by: cgeorgemo on September 12, 2009, 06:20:12 AM
Context?......we don't need no stinking CONTEXT....
Title: Re: Miffy's Item Finder
Post by: TrailMyx on September 12, 2009, 02:59:25 PM
Ya, there's a lot of context lost in this one.  Lol.  Plus if you throw in the hamster, that can really lead to some bad mental images.
Title: Re: Miffy's Item Finder
Post by: Bookwyrm on September 12, 2009, 10:46:43 PM
See?! This is where I miss all the wonderful little smileys we used to have over at UOCoders... :'(
Title: Re: Miffy's Item Finder
Post by: Wilk on September 14, 2009, 08:04:56 AM
:( I miss my Miffy finder badly! I think I use her at least 1/2 a dozen times a times for the last year.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on September 14, 2009, 08:06:11 AM
Hopefully they'll get EUO patched up soon so you can use it again!
Title: Re: Miffy's Item Finder
Post by: Scrripty on September 14, 2009, 10:59:02 AM
Drop this code in a new EUO window and you can kinda see what I was doing:

Code: [Select]
set %version 0.1
gosub MaddogItemSorterMenu

This looks great.  I have been thinking along those lines too... I'd LOVE to see this and the Claw's advanced loot rules combined... :)  I think TM should write some subs to make using the claw ruleset nice and easy for us newbs!!!  I want to add advanced rules to my dexer too.  I've been looking into ways to do that.  Say have dropdowns, and you can "build a casting sub" with advanced rules... waits... basically change the functions of the spells and when and how they cast using advanced "rules" like TM uses... be an interesting project for sure. :)  I'm a firm believer in giving power to the user.  The more things to tweak and play with the more fun it is.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on September 14, 2009, 12:29:23 PM
Check out the CLAw post.  I have a whole bunch of subs already written to utilize it.  ;)
Title: Re: Miffy's Item Finder
Post by: owenvoice on October 25, 2009, 11:24:37 AM
Ah nice! I've been looking for this script for a while ever since my HD crashed. This is one of my favorite scripts of all time, makes crafting on test center easy ; D
Title: Re: Miffy's Item Finder
Post by: Wilk on October 25, 2009, 11:27:21 AM
My favorite script gettin' more love!
Title: Re: Miffy's Item Finder
Post by: owenvoice on October 25, 2009, 11:44:27 AM
Oh, by the way how do I download it? I don't see a link : (
Title: Re: Miffy's Item Finder
Post by: Toptwo on October 25, 2009, 12:09:06 PM
well, you might start by following the site rules (give them a read) then posting up a propper intro.
Title: Re: Miffy's Item Finder
Post by: Oracle on November 05, 2010, 02:19:44 PM
TM,

If I want to search for multiple names at once, in the Search For box do I put a comma or semi-colon in there?

Such as henry, ghost, cruella, salty, etc?  OR henry; ghost; cruella; salty?

Also I am not sure if it is my resolution or not, as my menu seems to be squished together and I can't read all that is written.  This happens on other items that have a menu as well and could use some helpto fix it.  I will attach an example below.

Title: Re: Miffy's Item Finder
Post by: TrailMyx on November 05, 2010, 08:44:31 PM
Nope, it doesn't allow for multiple searches or "OR" logic.  Only "AND" logic of up to three different search criterion.

As far as menu squishing, it works fine on my end.  You seem to be having some windows issues...

You should check your windows settings, and change yourself over to using "small fonts". 
Title: Re: Miffy's Item Finder
Post by: Cerveza on July 16, 2011, 03:00:01 AM
Searching for Durability doesn't work, returns nothing when I select any value to search for. Searching for N/A finds everything but searching for > 0 finds nothing.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 16, 2011, 06:40:00 AM
Durability won't work since the number you are looking for is inside the string (i.e. Durability 69 / 72).  The item finder (and the CLAw for that matter) parse the string from right to left to find the value.  I don't further parse the string looking in the center for stuff because that's huge overhead that would be applied to every search because I'm then applying specific logic for just one piece of text.  Same reason why mage weapon stuff doesn't work.  

If you are looking for something like Durability 72 / 72, that still wont work because again it's left to right, and the script is looking for the division between the last number and the string.  So the string that it's picking up is "Durability 72 /".  

You can't change the logic by putting in "look for first space" because that'll break lots of things like "Faster casting" and "Physical Damage", etc.

Also remember there are 2 types of durability.  There's the percentage durability (attribute) and the actual durability (condition).    

With all that said, I just tried it and it does work.  It's catching the first durability or durability 100%.  It won't scan for the actual durability if the attribute durability is in there.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 16, 2011, 08:11:47 AM
Try version .992.  I'm parsing a bit differently.  Also, negative values should work (i.e. faster casting -1).  Because the parsing is so different now, you might want to keep a look out for different find behaviour.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 16, 2011, 10:29:45 PM
I actually scripted for you today, Cerveza.  I kinda miss that.  It's been about a year now.   My last work at all for EUO was the NGFS and that was march of last year.  Yikes, should I roll over and continue to hibernate?
Title: Re: Miffy's Item Finder
Post by: Cerveza on July 16, 2011, 10:37:11 PM
LOL it's time, for a RETURN!
Title: Re: Miffy's Item Finder
Post by: Masscre on July 19, 2011, 06:08:37 AM
Return we say !!
Title: Re: Miffy's Item Finder
Post by: Tommy Boy on February 13, 2012, 12:12:21 PM
Cool, this is one of my favorite scripts of all time.  Before searchuo.com this was a must for shopping vendors.

I see it has  a couple updates too.  My version is older. 

Thanks TM for your awesome work.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on February 13, 2012, 04:29:38 PM
Heh, mine too.  It's a rare case when I write a script that I actually use very much.  But this one I generally kept open CONSTANTLY while I played.  There are still a few hiccups when commas are found in a price for an item.  Not sure what's up with that because it catches other commas.  But I used it the other day - kinda forgot how useful it is.

Anyhow, glad you find it useful still.  It's amazing the ways people find to use this script.  Always blown away by people and their inventive nature.

Perhaps one day I'll finish the CLAw rules adaption to this script...
Title: Re: Miffy's Item Finder
Post by: NObama on February 13, 2012, 05:02:04 PM
Just another plug for good ol' Miffy.  Used this again today.  Heck, I use it every time I play, pretty much.

I don't know who that guy is, but he ought to start a scripting website to host his genius for the masses.
Title: Re: Miffy's Item Finder
Post by: onlyindreams on February 13, 2012, 05:12:58 PM
Just another plug for good ol' Miffy.  Used this again today.  Heck, I use it every time I play, pretty much.

I don't know who that guy is, but he ought to start a scripting website to host his genius for the masses.

Could you imagine the awesomeness it would entail??? I don't know if the scripting world could handle it...
Title: Re: Miffy's Item Finder
Post by: NObama on February 13, 2012, 05:53:20 PM
Just another plug for good ol' Miffy.  Used this again today.  Heck, I use it every time I play, pretty much.

I don't know who that guy is, but he ought to start a scripting website to host his genius for the masses.

Could you imagine the awesomeness it would entail??? I don't know if the scripting world could handle it...

I can't tell if you're responding to my post, or if my subconscious is saying these same words in response to your sig.  Bzzzz.  Errrr.  Cannot compute.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 10, 2012, 08:28:30 PM
So if I was to revamp this script, what would you like to see?
Title: Re: Miffy's Item Finder
Post by: Tommy Boy on July 10, 2012, 11:48:55 PM
So if I was to revamp this script, what would you like to see?

Boy, that's hard to say.  Revamp it how?  It's already one of my most favorite scripts of all time.

I never have a problem finding what I'm looking for no matter how many items I have to search through.  I just load this up, set it and start clicking on containers.

It's especially a huge help when containers are/were organized in the Enhanced Client because those same containers are just a complete mess in the classic client.  Finding anything is easy with this script.
Title: Re: Miffy's Item Finder
Post by: Cerveza on July 11, 2012, 07:16:21 AM
So if I was to revamp this script, what would you like to see?

Destination Container. Can't remember if that's already in LOL.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on July 11, 2012, 09:23:41 AM
Ya, I believe I added that already.

As for what other features, I dunno.  It's really the question, "What else should this thing do?"
Title: Re: Miffy's Item Finder
Post by: Wilk on August 19, 2012, 02:53:00 PM
Miffy's (my favorite script of all time) has been buggy for about a month now. I've tried the latest version and the previous one. Often if I have multiple bags inside a secure bag, it will not open the bags inside the secure bag. I need to search those bags individually half the time lately. If I use search surrounding, I don't seem to have the problem. Just when I search a one bag that has multiple bags inside it.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on August 19, 2012, 06:13:55 PM
Do you know what may have changed in the game?  Since this script hasn't changed in a long time.  Are you searching a targeted container?
Title: Re: Miffy's Item Finder
Post by: Tidus on August 24, 2012, 04:46:06 PM
What is sad... i don't remember how i re-wrote your script to do XML... I don't remember how to CODE :( :( :(
Title: Re: Miffy's Item Finder
Post by: Chops on May 11, 2013, 04:12:19 AM
This script is out of this world, I am just sorry I didnt find it sooner, maybe I would be wearing glasses if I did :)
Cheers
Title: Re: Miffy's Item Finder
Post by: TrailMyx on May 11, 2013, 08:45:01 AM
This script is out of this world, I am just sorry I didnt find it sooner, maybe I would be wearing glasses if I did :)
Cheers

I kinda forget all this script does.  Pound for pound this script is the most useful in my arsenal.  Glad you like it!
Title: Re: Miffy's Item Finder
Post by: Chops on May 12, 2013, 01:46:45 AM
Oops, I meant, maybe I wouldn't! be wearing glasses.
Title: Re: Miffy's Item Finder
Post by: Chopette on November 01, 2013, 05:29:32 AM
Wish I had discovered this ages ago--what a terrific time saver! 
Title: Re: Miffy's Item Finder
Post by: Masscre on November 01, 2013, 10:57:34 AM
Maybe this one would be a great script to convert to Stealth. I keep hearing you want to convert to Stelath TM :)
Title: Re: Miffy's Item Finder
Post by: TrailMyx on November 01, 2013, 12:46:02 PM
Very true!  Not as ambitious as the CLAw.  Plus Stealth recurses containers automatically.
Title: Re: Miffy's Item Finder
Post by: Nalco on November 17, 2013, 02:20:46 AM
Just moved castles and needed to find something.

Seriously, this script is awesome!

Thank you.

You saved me hours of time.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on November 17, 2013, 08:28:49 AM
glad it helped!
Title: Re: Miffy's Item Finder
Post by: Grandewd on August 29, 2014, 03:14:19 PM
Beautifully implemented, TM... Love the lightning-quick write to html.
 ;)
Title: Re: Miffy's Item Finder
Post by: TrailMyx on August 29, 2014, 03:56:48 PM
I love when things drip in sarcasm.  ;)

Miffy's would do really well implemented in OEUO.  Might actually function pretty well since the UI usage is pretty light.  I've purged all knowledge of Lua from my brain though.  Filling that empty area with Archery knowledge (the real kind and not the UO kind)  heh
Title: Re: Miffy's Item Finder
Post by: Bookwyrm on August 29, 2014, 05:09:47 PM
I just giggle every time I read "Miffy" ;)
Title: Re: Miffy's Item Finder
Post by: Grandewd on August 29, 2014, 07:08:30 PM
I love when things drip in sarcasm.  ;) .....
Absolutely not.  I was being completely serious about the html write.  Bap - done!
Title: Re: Miffy's Item Finder
Post by: Grandewd on September 25, 2014, 08:30:23 PM
Have I told you how much I love this thing?  So damn fast...  I gotta take it apart and see how you got that speed.  My finditem/event property's can't get anywhere near the speed of this thing...
Thanks for sharing it!   ;)
Title: Re: Miffy's Item Finder
Post by: TrailMyx on September 26, 2014, 07:29:06 AM
This was the one script I used more than most others.  When I had a keep filled with crap, it was nice to be able to organize it or to find something I lost.  My fav for sure as well!

Really it's fast only because it's not that complicated.  The CLAw is so complicated to be able to be so universal, so it's slower than some people would like.  But the same basic ideas are at play.
Title: Re: Miffy's Item Finder
Post by: Detox on July 30, 2015, 10:34:48 AM
Is it my impression or the script is no longer available?
Title: Re: Miffy's Item Finder
Post by: Tidus on July 30, 2015, 12:58:11 PM
Is it my impression or the script is no longer available?


The magical fairy will make it appear in the first post once you do an introduction and are no longer restricted.. Until that point, the fairy doesn't come. Much like santa clause. We check the list twice.
Title: Re: Miffy's Item Finder
Post by: Crisis on July 31, 2015, 06:28:20 AM
lols
Title: Re: Miffy's Item Finder
Post by: Detox on November 01, 2015, 03:19:10 PM
I have a question!

I am trying to use this script on few boxes with 125 Commodity Deeds inside, using all options, including report all... The script Does find all 125 Deeds but after I save the file on c:\temp and open, only show about 25 deeds and not all 125.

I tried several times with the same result, Am I doing something wrong? or maybe the script "read" to fast all the items and dont save them all?

Cheers
Title: Re: Miffy's Item Finder
Post by: TrailMyx on November 01, 2015, 09:36:31 PM
It's more likely there's a formatting character that breaks the line of the save.  File writing in EUO is terrible.  Probably not alot you can do about it.
Title: Re: Miffy's Item Finder
Post by: gimlet on April 23, 2017, 08:51:54 AM
Oh No the unthinkable has happened!

Miffy's Item Finder is broken!

Went to search for a chiv ring greater than or equal to 15 and the buttons dont work to pick the greater than or equal to!

Damn new versions of easyuo!
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:01:02 AM
This is what's going to kill EasyUO for me.  If I have to re-write every script I've authored because of some unnecessary core changes or some other hairbrained nonsense, I might just be done.
Title: Re: Miffy's Item Finder
Post by: The Ghost on April 23, 2017, 09:08:26 AM
90% of the build have been abandon by the author.   It easy to mod them when the patch arrive. but fixing all the menu will be a pain.     Hope it an easy fix.    I will have and test 320. 
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:09:08 AM
90% of the build have been abandon by the author.   It easy to mod them when the patch arrive. but fixing all the menu will be a pain.     Hope it an easy fix.    I will have and test 320.

Until the core is changed again on a whim.
Title: Re: Miffy's Item Finder
Post by: gimlet on April 23, 2017, 09:11:36 AM
Luckily I have the last TM version (of EUO) that still works fine!
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:23:02 AM
Luckily I have the last TM version (of EUO) that still works fine!

Same here.... ;)
Title: Re: Miffy's Item Finder
Post by: The Ghost on April 23, 2017, 09:25:43 AM
Luckily I have the last TM version (of EUO) that still works fine!

Same here.... ;)

The good and trusty 310-1
Title: Re: Miffy's Item Finder
Post by: BobOzarius on April 23, 2017, 09:39:45 AM
Version 320 works just fine with everything. Download the latest version.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:40:14 AM
I did try the item finder with version 320 and it doesn't work certainly.  I do remember Cheffe posting something about creating a control that already exists would cause issues.  The old version of EasyUO didn't really care if you did this, but with this new version it does make a difference.  I made the change and will post version 0.993
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:41:22 AM
Version 320 works just fine with everything. Download the latest version.

There are still issues it would seem.  Existing controls that you don't delete first won't be re-created.  I just tested vs. my internal version of 310-1 and Cheffe's 320.  Cheffe did mention this, but it would be nice if he'd make a check in the EasyUO code and delete; otherwise that'll break existing scripts (like this one).
Title: Re: Miffy's Item Finder
Post by: BobOzarius on April 23, 2017, 09:41:36 AM
Ah, yes that will do it for sure. I bet there are a lot of scripts in the library that will break because of that.
Title: Re: Miffy's Item Finder
Post by: The Ghost on April 23, 2017, 09:42:47 AM
TM,  To help other, ( not to only point at me) can you post what you change. in the menu  Thx 
Title: Re: Miffy's Item Finder
Post by: BobOzarius on April 23, 2017, 09:43:10 AM
It shouldn't be any issue at all to fix scripts with that issue though... that's a very simple fix.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:45:26 AM
TM,  To help other, ( not to only point at me) can you post what you change. in the menu  Thx

Sure.  In the script, I check to see if "the same" button was pressed. 

Code: easyuo
  1.   if #MENUBUTTON = EUOButton6
  2.   {
  3.     set #MENUBUTTON 0
  4.     if %include_button1 = N/A
  5.     {
  6.       set %include_button1 GREATER
  7.       menu Button EUOButton6 188 4 29 21 >
  8.       goto skip_EUOButton6
  9.     }
  10.     if %include_button1 = GREATER
  11.     {
  12.       set %include_button1 GREATEREQ
  13.       menu Button EUOButton6 188 4 29 21 >=
  14.       goto skip_EUOButton6
  15.     }
  16.     if %include_button1 = GREATEREQ
  17. ...
  18.  

So to fix, just delete the menu item first:

Code: easyuo
  1.   if #MENUBUTTON = EUOButton6
  2.   {
  3.     set #MENUBUTTON 0
  4.     menu delete EUOButton6   ; <-- added this line
  5.     if %include_button1 = N/A
  6.     {
  7.       set %include_button1 GREATER
  8.       menu Button EUOButton6 188 4 29 21 >
  9.       goto skip_EUOButton6
  10.     }
  11.     if %include_button1 = GREATER
  12.     {
  13.       set %include_button1 GREATEREQ
  14.       menu Button EUOButton6 188 4 29 21 >=
  15.       goto skip_EUOButton6
  16.     }
  17.     if %include_button1 = GREATEREQ
  18. ...
  19.  
Title: Re: Miffy's Item Finder
Post by: BobOzarius on April 23, 2017, 09:47:24 AM
I always thought deleting a control before you created another of the same name was just good house cleaning.  ;)
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:48:14 AM
It shouldn't be any issue at all to fix scripts with that issue though... that's a very simple fix.

True, and for many that's possible.  But most scripters are long long gone and don't support their scripts.  Most people try a script, it doesn't work and they give up.  So in order to help support scripts still in the wild, it would be nice to help them survive.  In all honestly, in the long run it's not really the tool that's the most important but what people do with it.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:49:48 AM
I always thought deleting a control before you created another of the same name was just good house cleaning.  ;)

Heh, well EasyUO didn't care before it did..
Title: Re: Miffy's Item Finder
Post by: The Ghost on April 23, 2017, 09:51:08 AM
Glad that I had a good teacher and build my menu right.   

Code: [Select]
sub PauseSupport
   menu delete EUOButton3
   set #menubutton #false
  menu Font Size 8
  menu Font Style
  menu Font Color Window
menu Font BGColor Red
menu Button EUOButton3 180 19 43 21 Resume
repeat
    until #menubutton <> #false
    if #menubutton = EUOButton3
       gosub ResumeSupport
return
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 09:53:40 AM
Glad that I had a good teacher and build my menu right.   

Code: [Select]
sub PauseSupport
   menu delete EUOButton3
   set #menubutton #false
  menu Font Size 8
  menu Font Style
  menu Font Color Window
menu Font BGColor Red
menu Button EUOButton3 180 19 43 21 Resume
repeat
    until #menubutton <> #false
    if #menubutton = EUOButton3
       gosub ResumeSupport
return

Yeh, like BobO points out, that's good practice.  If you use a modern OO language, it won't let you do that unless you delete it first.  I always thought it was kinda silly that EasyUO allowed for it.  If you don't know what you're doing, that might cause some odd behavior for your menus.
Title: Re: Miffy's Item Finder
Post by: The Ghost on April 23, 2017, 09:57:52 AM
My first menu , I had the problem. and  I wasn't able to figure it out why it was bugging.  Took MWinc 2 hrs to notice that I forget to delete the button before I create another.   None was looking at the menu :) 
Title: Re: Miffy's Item Finder
Post by: TrailMyx on April 23, 2017, 10:00:23 AM
My first menu , I had the problem. and  I wasn't able to figure it out why it was bugging.  Took MWinc 2 hrs to notice that I forget to delete the button before I create another.   None was looking at the menu :)

No doubt this will happen to others as well.  I just made the request at EasyUO and hopefully Cheffe can look into it.
Title: Re: Miffy's Item Finder
Post by: pixijayne on October 28, 2017, 12:28:21 PM
TM  .....

I'm having a small problem ...

With the N/A  EQUAL  GREATER  LESS  options in the 3 boxes  ....

I can't get them to change as I want them to.

I can get the top one to change from  N/A to  >  and thats it ....
Title: Re: Miffy's Item Finder
Post by: TrailMyx on October 28, 2017, 03:44:13 PM
TM  .....

I'm having a small problem ...

With the N/A  EQUAL  GREATER  LESS  options in the 3 boxes  ....

I can't get them to change as I want them to.

I can get the top one to change from  N/A to  >  and thats it ....

You need to make this mod here:

http://www.scriptuo.com/index.php?topic=24.msg116929#msg116929
Title: Re: Miffy's Item Finder
Post by: pixijayne on October 28, 2017, 03:47:22 PM
Groovy  ...

That was one of the places I was poking my unwanted keystrokes   ...

Thanks TM !!!!
Title: Re: Miffy's Item Finder
Post by: TrailMyx on October 29, 2017, 07:58:26 AM
Note you need to make that change with the 2 other buttons just down the script.  Exactly the same code and change except the buttons are 7 and 8.
Title: Re: Miffy's Item Finder
Post by: Gaderian on May 26, 2020, 12:30:24 PM
I thought I used this often, but it wouldn't work for me last night. I was still running the 992 version. Even the 993 version doesn't have all 3 of the buttons corrected.

Here is how to correct it without a delete at all. I say that because I have had delete and recreate of the same button fail in menus. The buttons become unresponsive.
Code: easyuo
  1.   if #MENUBUTTON = EUOButton6
  2.   {
  3.     set #MENUBUTTON 0
  4.     if %include_button1 = N/A
  5.     {
  6.       set %include_button1 GREATER
  7.       menu setprop EUOButton6 text >
  8.       goto skip_EUOButton6
  9.     }
  10.     if %include_button1 = GREATER
  11.     {
  12.       set %include_button1 GREATEREQ
  13.       menu setprop EUOButton6 text >=
  14.       goto skip_EUOButton6
  15.     }
  16.     if %include_button1 = GREATEREQ
  17.     {
  18.       set %include_button1 LESS
  19.       menu setprop EUOButton6 text <
  20.       goto skip_EUOButton6
  21.     }
  22.     if %include_button1 = LESS
  23.     {
  24.       set %include_button1 LESSEQ
  25.       menu setprop EUOButton6 text <=
  26.       goto skip_EUOButton6
  27.     }
  28.     if %include_button1 = LESSEQ
  29.     {
  30.       set %include_button1 EQUAL
  31.       menu setprop EUOButton6 text =
  32.       goto skip_EUOButton6
  33.     }
  34.     if %include_button1 = EQUAL
  35.     {
  36.       set %include_button1 N/A
  37.       menu setprop EUOButton6 text N/A
  38.       goto skip_EUOButton6
  39.     }
  40.   }
  41.   skip_EUOButton6:
  42.   if #MENUBUTTON = EUOButton7
  43.   {
  44.     set #MENUBUTTON 0
  45.     if %include_button2 = N/A
  46.     {
  47.       set %include_button2 GREATER
  48.       menu setprop EUOButton7 text >
  49.       goto skip_EUOButton7
  50.     }
  51.     if %include_button2 = GREATER
  52.     {
  53.       set %include_button2 GREATEREQ
  54.       menu setprop EUOButton7 text >=
  55.       goto skip_EUOButton7
  56.     }
  57.     if %include_button2 = GREATEREQ
  58.     {
  59.       set %include_button2 LESS
  60.       menu setprop EUOButton7 text <
  61.       goto skip_EUOButton7
  62.     }
  63.     if %include_button2 = LESS
  64.     {
  65.       set %include_button2 LESSEQ
  66.       menu setprop EUOButton7 text <=
  67.       goto skip_EUOButton7
  68.     }
  69.     if %include_button2 = LESSEQ
  70.     {
  71.       set %include_button2 EQUAL
  72.       menu setprop EUOButton7 text =
  73.       goto skip_EUOButton7
  74.     }
  75.     if %include_button2 = EQUAL
  76.     {
  77.       set %include_button2 N/A
  78.       menu setprop EUOButton7 text N/A
  79.       goto skip_EUOButton7
  80.     }
  81.   }
  82.   skip_EUOButton7:
  83.   if #MENUBUTTON = EUOButton8
  84.   {
  85.     set #MENUBUTTON 0
  86.     if %include_button3 = N/A
  87.     {
  88.       set %include_button3 GREATER
  89.       menu setprop EUOButton8 text >
  90.       goto skip_EUOButton8
  91.     }
  92.     if %include_button3 = GREATER
  93.     {
  94.       set %include_button3 GREATEREQ
  95.       menu setprop EUOButton8 text >=
  96.       goto skip_EUOButton8
  97.     }
  98.     if %include_button3 = GREATEREQ
  99.     {
  100.       set %include_button3 LESS
  101.       menu setprop EUOButton8 text <
  102.       goto skip_EUOButton8
  103.     }
  104.     if %include_button3 = LESS
  105.     {
  106.       set %include_button3 LESSEQ
  107.       menu setprop EUOButton8 text <=
  108.       goto skip_EUOButton8
  109.     }
  110.     if %include_button3 = LESSEQ
  111.     {
  112.       set %include_button3 EQUAL
  113.       menu setprop EUOButton8 text =
  114.       goto skip_EUOButton8
  115.     }
  116.     if %include_button3 = EQUAL
  117.     {
  118.       set %include_button3 N/A
  119.       menu setprop EUOButton8 text N/A
  120.       goto skip_EUOButton8
  121.     }
  122.   }
  123.   skip_EUOButton8:
  124. goto item_finder_loop1

Gaderian
Title: Re: Miffy's Item Finder
Post by: gimlet on May 26, 2020, 03:23:46 PM
nice I'll give it a try after alterations since this is one of two scripts I use the most.
Title: Re: Miffy's Item Finder
Post by: TrailMyx on May 29, 2020, 07:24:35 PM
Thanks, Gaderian.  One of these days I need to play with the props that Cheffe added.  I suppose it's better than exploiting a bug in his code that was there since the early 00s.  lol
Title: Re: Miffy's Item Finder
Post by: nosparechange on December 05, 2020, 10:09:32 AM
How do I get the link to the text files?
Title: Re: Miffy's Item Finder
Post by: TrackStar on August 30, 2021, 03:38:04 AM
Going to give this a shot today after I apply the changes above.