ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Gemviper on November 20, 2014, 07:17:43 AM

Title: Vendor Search script, does one exist?
Post by: Gemviper on November 20, 2014, 07:17:43 AM
I monitor vendor search occasionally for specific items on my "wish list" but this is becoming tedious as my list grows and so a script is in order! I did find a lot of scripts designed to check vendors but none that actually perform searches on UO's vendor search gump, did I miss one if it exists?

3rd party sites like searchUO help in finding some items but not as well as vendor search could because searchuo is limited by the fact they don't monitor ALL vendors and don't update as quickly.

If you know of an actual vendor search script that I can feed a list of items I am looking for into I'd be grateful if you could point me to it. Thanks.
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on November 20, 2014, 07:58:37 AM
I monitor vendor search occasionally for specific items on my "wish list" but this is becoming tedious as my list grows and so a script is in order! I did find a lot of scripts designed to check vendors but none that actually perform searches on UO's vendor search gump, did I miss one if it exists?

3rd party sites like searchUO help in finding some items but not as well as vendor search could because searchuo is limited by the fact they don't monitor ALL vendors and don't update as quickly.

If you know of an actual vendor search script that I can feed a list of items I am looking for into I'd be grateful if you could point me to it. Thanks.
Doesnt SearchUO just use some Bots to check vendor belongings?

I havnt seen that gump but i prolly know it would be easyier to parse via Stealth then easyuo.

You may show me a screenshot and i may have an idea via stealth ;-)
Title: Re: Vendor Search script, does one exist?
Post by: Gemviper on November 20, 2014, 09:01:33 AM
Yes, I think searchuo just uses bots to go around looking into packs. It covers all of Luna as well as some vendors outside of Luna. I wouldn't be surprised if searchuo is omiting known rares however since they want to get/sell/collect those themselves. If you search atlantic's vendor search for "catskills" for example you see a bunch of catskills EM event items but searchuo does not show you these items.

Anyway, right now I've got a wishlist of items in notepad++ and am manually using UO's "vendor search" to check them each one by one. Items like a "secret chest" are rarely on a vendor so if one shows up I want to know as fast as possible. That chest is from an Asian shard event and so isn't common on Atlantic(it allows 500 items to be stored in it, not 125).

So there isn't a search script that works with the default UO "vendor search" feature? I really don't want to wander around from vendor to vendor with a script since the vendor search feature already has that info.

I don't have a screenshot, just an idea, a script to run through a list of items I am looking for to tell me if yes/no the item was found. Since I'm going to use it to search for rares a simple found yes/no is enough since there won't ever be a lot of them.
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on November 28, 2014, 07:45:07 PM
Ive been off for a while so how do you activate the "vender search"  ??
Title: Re: Vendor Search script, does one exist?
Post by: gimlet on November 28, 2014, 09:14:01 PM
context menu
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on November 29, 2014, 12:14:04 AM
If someone can lend me an account, i could try to check it with stealth and look if i find a simple way to parse it.

This also could be via Teamviewer and a Stealth client located at the owners place.
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on November 30, 2014, 01:39:03 AM
So i had a chance to check the Vendor Search out via Stealth. Thanks to a Contributor...

I must say the Broadsword Devs should be fired.

Gump Sniffer Information as Attachment...

Now comes the Data Analysis :
- All ResizePics are stupid.They used to DRAW the Whole Gump Background with single sized Pixels instead of using the Background Component. This a) Increase the amount of Data to handle for Client and b) is the worst way of designing a Gump.
- The Container Type for Stealth is $F3EC8. With this you can staticly decide if Gump is Open and attach to object.
- The ReplyID for Start a Search is 1
- The ReplyID for clear a Search is 2
- You can Access to all Fields of the Gump. You dont need to click ANY single Button to access to informations
- The ReplyID for Sort from Low to High is 234
- The ReplyID for Sort from High to Low is 235
- I hadnt looked but guessed the Enties are generic added. With 10 Minutes Math you could point out an object Type for all Content.
- The Offset for the First Search Selection is 1235. Based by the Generic Design you could parse the Text behind very easy.
- The Generic Type for the Queue Gump is $F3ECB. With this information you could "wait for results"
- The Generic Type for the Results Gump is $F3EC9. Based on the Design it should be very easy to read out the informtions. Against the SearchGump, the Resultgump is properly written(lol) You need to parse 1 Page then flip page and reparse next. Little bit time consuming but nothing to worry.
- Now comes the real fun : The Vendor Map is coded as TreasureMap. This can be easy parsed to waypoints via Stealth Events. Means if you write a Recall to a Moongate. a World Changer Code for changing moongate, you could walk via code to any spot and auto buy the item....

I guess a dataparsing of this Feature would take a good dev ~ 2-3 hours to get a stable version in stealth. Including the Map Parsing and all else you could solve this in 4-5 hours with testing maybe 8 hours of efforts...


For Runuo Devs who like to clone the Gump : Use AddBackground with the GumpID 30546 instead of drawing hundres of resizeable pictures..
Title: Re: Vendor Search script, does one exist?
Post by: TrailMyx on November 30, 2014, 10:42:20 AM
Holy Data Analysis Batman!

Actually that gump info is pretty useful.  The CLAw needs a bit of a refreshing on the attributes it looks for by default.  Thanks for it!
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on November 30, 2014, 11:03:31 AM
Holy Data Analysis Batman!

Actually that gump info is pretty useful.  The CLAw needs a bit of a refreshing on the attributes it looks for by default.  Thanks for it!

Sure thing..lol.
I currently writing a Delphi API Extension and i may write up a module for this stupid Query Gump to handle it. Who knows ;)
Title: Re: Vendor Search script, does one exist?
Post by: TrailMyx on November 30, 2014, 11:11:40 AM
I just started playing around with the gump stuff for the wrapper btw.  Progress is slow now that most of the low-hanging fruit is gobbled up.  :(
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on November 30, 2014, 12:25:07 PM
Title: Re: Vendor Search script, does one exist?
Post by: Gemviper on October 14, 2015, 08:29:07 PM
I know this thread is a year old but I started it then and I find myself needing it again, I loathe vendor searches as they are now. I'd really like to check a list of items to see if any are for sale but manually typing them out becomes a huge pain with 50+ items on the list.

I noticed that copy/paste from a text file works, which speeds it up just a little, but not much :)

Did a working script ever get posted to check vendor search against a list of "most wanted" items? Oh and yes I have used sites like SearchUO but find them to be problematic at times since they seem to only search luna and a lot of the time don't display Items at all that I know are on a vendor.
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on October 15, 2015, 05:22:22 AM
Although this would be immensely easier in stealth... it shouldn't be hard in EUO either

Psuedo code...

Code: [Select]
set PRice: low to high
define list of search phrases
For x=1 to total-search-phrases
    {
     paste in search phrase click submit
     wait x time of for gump to change (wait gumpsize 414_214 - result gump size 780_570 )
     if gump = initial search size
           nothing found
     if gump = result size  500_550
          ORC the first price position  
          If price less than desired price  get map
     }
display I found X items with lower price...



On review this is pathetically easy to write in EUO.    Glemviper  this would make an excellent script to learn how to script ... then you will have the power to make what you want... the community would help when you get stuck.... ...

  
Title: Re: Vendor Search script, does one exist?
Post by: 12TimesOver on October 15, 2015, 06:14:06 AM
Considering how messed up SearchUO has been lately you would definitely be onto something spectacular if you could eliminate the need for relying on them :D
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on October 15, 2015, 06:19:45 AM
I know this thread is a year old but I started it then and I find myself needing it again, I loathe vendor searches as they are now. I'd really like to check a list of items to see if any are for sale but manually typing them out becomes a huge pain with 50+ items on the list.

I noticed that copy/paste from a text file works, which speeds it up just a little, but not much :)

Did a working script ever get posted to check vendor search against a list of "most wanted" items? Oh and yes I have used sites like SearchUO but find them to be problematic at times since they seem to only search luna and a lot of the time don't display Items at all that I know are on a vendor.

If there is a particular interest on doing automated Searchs I could write something in c# with Stealth where you have a subform for queries and import\export them and then execute queries.
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on October 15, 2015, 07:30:10 AM
I know this thread is a year old but I started it then and I find myself needing it again, I loathe vendor searches as they are now. I'd really like to check a list of items to see if any are for sale but manually typing them out becomes a huge pain with 50+ items on the list.

I noticed that copy/paste from a text file works, which speeds it up just a little, but not much :)

Did a working script ever get posted to check vendor search against a list of "most wanted" items? Oh and yes I have used sites like SearchUO but find them to be problematic at times since they seem to only search luna and a lot of the time don't display Items at all that I know are on a vendor.

If there is a particular interest on doing automated Searchs I could write something in c# with Stealth where you have a subform for queries and import\export them and then execute queries.



See the new elite EUO script   ... that does this .. was pretty easy.. posting soon.    Everything done except reading the gump Price value.  Have to mod kalocr for that been long time forgotten how to .. opps
Title: Re: Vendor Search script, does one exist?
Post by: Gemviper on October 15, 2015, 02:43:24 PM
In thinking more about this: If a script is written that checks for all of the items on someone's "wish list" then too many people will have it running which hammers the game's vendor search system. I don't think a UO dev would have to work too hard to find people who look for "insert uber item here" every 5 minutes around the clock, ya know? And they would look, that system is resource intensive.

Perhaps a better idea: a manual list where you would have to manually click on previously entered items(no typing, yay), or as one of my favorite auction house addons did in WoW a history list of things you've searched for that allow one click re-search.(no typing, yay).

Or another way to go: A script that creates a targeting cursor so that when you click on an item in your pack it launches vendor search for that item. This would run into the problem that some words are too vague, even if they are part of an item name. UO throws an error when you use them so some parsing to get rid of them would be needed.

*NOTE*: That last method could employ a "last checked" date with the value it found then if you are not in your house or at a bank, such as when you are standing at someone's vendor or deep in a dungeon.

Which do you think would work best?
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on October 15, 2015, 03:59:32 PM
Well its written (elite posted) ...  and yes defiantly a script that could be open to abuse... but the search index is slow so your not likely to be checking every 5 mins.   Maybe once twice a day until you got what you wanted.

but is open for abuse... so that's why haven't general public released it  yet....    was a bit harder to write than expected as I ended up writing a partial  OCR function along with it (numbers only)... but that was the fun part...   :)

What list of items are you looking to search for ???


Edit well thought I posted in my elite section but actaully posted in general.. so enjoy... :)
Title: Re: Vendor Search script, does one exist?
Post by: Crome969 on October 16, 2015, 02:28:58 AM
I think the Query is slow because its a database Query on Subtables with filters.
Then the result need to be back parsed to Gump Code wich can take a while ;)
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on October 16, 2015, 04:03:43 AM
I think the Query is slow because its a database Query on Subtables with filters.
Then the result need to be back parsed to Gump Code wich can take a while ;)

Also depends on the shard .. I noticed searches on Atlantic shard are dramatically faster than the same search on pacific.
Title: Re: Vendor Search script, does one exist?
Post by: Gemviper on October 17, 2015, 12:14:27 AM
I can't post the list of items I would look for here because it's too long, pretty much every known rare, em item and things I collect.

Those things don't get posted on a vendor very often, to be honest I would probably use this to find some items that people post without knowing how much they can really get for them. I bought a 100% LRC suit last week for 100k for example. That might seem like a bit much until you realize he sold it in a "gift box" worth 500k :)

I'd come up with a list of items I actively deal with and use it to monitor the price of those and to find items available cheap. For those reasons I now expect NEVER to see such a script posted here because, as you say, it's probably in the elite section and nobody there will want me finding these things, lol.
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on October 17, 2015, 08:37:11 AM
I can't post the list of items I would look for here because it's too long, pretty much every known rare, em item and things I collect.

Those things don't get posted on a vendor very often, to be honest I would probably use this to find some items that people post without knowing how much they can really get for them. I bought a 100% LRC suit last week for 100k for example. That might seem like a bit much until you realize he sold it in a "gift box" worth 500k :)

I'd come up with a list of items I actively deal with and use it to monitor the price of those and to find items available cheap. For those reasons I now expect NEVER to see such a script posted here because, as you say, it's probably in the elite section and nobody there will want me finding these things, lol.

your right .. I had accidentally posted it public instead of elite and was going to leave it their; but you make a good argument and have moved it to elite now.... :)

but being as was your original idea.. I sent you a pm...
Title: Re: Vendor Search script, does one exist?
Post by: Gemviper on January 02, 2018, 08:46:08 AM
I've been watching a couple of my items get undercut repeatedly, within an hour, all morning so figured I'd come check on this. Has it been posted anywhere or is it still tucked away in the elite section?

Figured I'd ask before I write my own. I could write this in an afternoon at this point, I guess I've learned a lot since I first posted this thread  ::)
Title: Re: Vendor Search script, does one exist?
Post by: The Ghost on January 02, 2018, 01:15:01 PM
i look in the Elite section and most be blind because I don't see what EN talking.   

With the new vendor search, it easy to see of items, plus some ppl other seat their to look at their vendor.  I have no idea what the deal with vendor.   Put the prices that is right and wait for ppl to buy it.   

Second option is to write your own search
Title: Re: Vendor Search script, does one exist?
Post by: Crisis on January 02, 2018, 03:17:19 PM
You need to go to his script library and look in the private section.
Title: Re: Vendor Search script, does one exist?
Post by: Endless Night on January 16, 2018, 07:17:45 AM
http://www.scriptuo.com/index.php?topic=13421.0
Title: Re: Vendor Search script, does one exist?
Post by: zaan on August 18, 2019, 05:10:36 PM
OMG! @Endless Night
I've been looking for this script for months! I want to connect it to my discord server. Is there anyway I can get a copy? I'm fairly new to scripting, and it's daunting to think of recreating it. It would be super amazing to pricecheck from chat. If you're not willing to release it, maybe just the OCR bit? That's the most daunting part for me.   
Title: Re: Vendor Search script, does one exist?
Post by: Fabolous1 on January 17, 2020, 04:55:41 PM
I know this thread is a year old but I started it then and I find myself needing it again, I loathe vendor searches as they are now. I'd really like to check a list of items to see if any are for sale but manually typing them out becomes a huge pain with 50+ items on the list.

I noticed that copy/paste from a text file works, which speeds it up just a little, but not much :)

Did a working script ever get posted to check vendor search against a list of "most wanted" items? Oh and yes I have used sites like SearchUO but find them to be problematic at times since they seem to only search luna and a lot of the time don't display Items at all that I know are on a vendor.

I'm absolutely interested if you have done anything with this :)

It's been a very long time I have worked with c#, but I'm interested in extending this idea and making a web front for it, after consuming the data you get with a vendor search script
If there is a particular interest on doing automated Searchs I could write something in c# with Stealth where you have a subform for queries and import\export them and then execute queries.