ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: ahjian on October 27, 2015, 04:47:59 AM

Title: Script that scans a container and export properties of items into a text file
Post by: ahjian on October 27, 2015, 04:47:59 AM
Hello,

I have large number of full containers with jewels and armors pieces.

I am looking for a script that could scan these containers and export the name and properties of each item inside the containers into a txt file which I can import into excel.

Is there such a script?
Title: Re: Script that scans a container and export properties of items into a text file
Post by: Endless Night on October 27, 2015, 07:45:04 AM
have you checked in the script library
Title: Re: Script that scans a container and export properties of items into a text file
Post by: Gemviper on October 27, 2015, 10:05:25 AM
There is a particular group of idoc hunters on Atlantic, whom are also gold and rare sellers for real cash, that are using something like this to inventory entire houses while they search for idocs. They don't see into the chests but they do spot every valuable item in all public houses and record it to file.

When a house goes idoc they pull up the file and know if an item is in the house they might want, and get a good idea of the caliber of loot likely to be inside. I learned about this from an ex-player who temporarily returned for the expansion. According to him they were searching all vendors and recording contents to file anyway so this wasn't a big jump for them.

I'd be weary of writing any "record everything to excel" type scripts, the game requires people who want to play for it to survive and the more successful these people are the fewer others want to play. I know this is off topic a little but "all items to excel" is a bad idea, unless used like it is in most scripts where it just scans a few chests actually in use.

Sorry if I misunderstood the goal for your script.
Title: Re: Script that scans a container and export properties of items into a text file
Post by: ahjian on October 29, 2015, 01:07:22 AM
I have searched the script library, I could not find the right script.

I have a huge stash of legendary jewels and armor pieces that I would like to catalog and eventually put them up for sale on UO trader hall.

I can do it manually but its too much work so I am looking at script to do this.
Title: Re: Script that scans a container and export properties of items into a text file
Post by: Crome969 on October 29, 2015, 03:00:52 AM
Theoreticly its very easy (even in easyuo) :

- Ignore Reset
- Try to Find Items in Container and redo until no result
- if Result get property and store to variable
- Replace "$" with ";" in variable property for csv format
- do cmd action store the property
- Ignore Last Find


without knowing the syntax anymore or anything i would say you need as following :

- http://wiki.easyuo.com/index.php?title=IgnoreItem
- http://wiki.easyuo.com/index.php?title=Repeat..until
- http://wiki.easyuo.com/index.php?title=FindItem
- http://wiki.easyuo.com/index.php?title=Event_Property
- http://wiki.easyuo.com/index.php?title=Str_%28command%29
- http://wiki.easyuo.com/index.php?title=Execute



PS :
On stealth  this would be 5-7 Lines of code....
Title: Re: Script that scans a container and export properties of items into a text file
Post by: Endless Night on October 29, 2015, 07:20:47 AM
Just because of the way you create files in EUO   this would defiantly better done in either stealth or OpenEUO.

As Crome uo lined .. not hard ..  search for contains in reachable distance,  open them all,  search for containers in containers,  open them all.. repeat until nothing left to open.   Search for everything in Containors "c_"  itterate through results get property of each output ONE line at a time to file.

Very slow..  use openeuo or stealth.. if you have alot of containers...

If you are just trying to find an item use TMs item finder script.. that searches containers for matching items...