Author Topic: Bod Book Lister  (Read 6576 times)

0 Members and 1 Guest are viewing this topic.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Bod Book Lister
« on: January 26, 2021, 09:24:06 PM »
0
Is there a script to list all bods in a book into a .txt file? I am a noob when it comes to this so hoping someone can help me find one or if someone has one I could use.
Thanks.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #1 on: January 27, 2021, 04:14:19 AM »
0
There is a script that is close which could add quantity, quality and do what you need. It is attached in this post:
http://www.scriptuo.com/index.php?topic=15975.msg124167#msg124167

What it does now is make a list of the item. So the other fields need to be added.

Large bods often run the text together so have problems listing because of how the text is displayed and wrapped coming from OSI. You would have to accept it as is or figure your own solution. You or some kind soul may be willing to help adjust it for you’re needs. I created that but do not have the time now to revise it. Anyone is welcome to se it as a base for another script.

There may be a finished tool somewhere kicking around but I do not know...

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #2 on: January 27, 2021, 04:41:59 PM »
0
Ill be honest. I have no idea how to insert fields or utilize these additional inserts or programs. Just looking for a point and click if you know what I mean.

Thanks.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #3 on: January 27, 2021, 05:06:04 PM »
0
I can post an update to include quantity and quality.
It would take a bit of testing to determine how to identify large bods. I certainly do not have the bods to test that personally.
If you would like that moderate effort I could add those, but first run it as is and say whether that matches what you are looking for.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #4 on: January 27, 2021, 05:39:09 PM »
0
Guess I need step by step instructions. I copy paste script and hit run.
Where does the kalocr come in? Where do I copy that to. Like I said, I am a noob when it comes to this. All I want is to target a book and it lists the bods in that book into a text file?
Does this do that? I really appreciate the help on this. Thank you.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #5 on: January 27, 2021, 09:09:38 PM »
0
kalocr.txt is saved to the same folder (subdirectory) where your EasyUO.EXE (EUO.EXE?) is.
You do not need to open the kalocr file and you do not run it directly. The other script calls it (so it needs to be in the directory I mentioned...)

You would open the bod lister script in easyuo. run it. it asks you to target the book. you can't really do much while the script is running. Don't go off surfing on the web... just let the script run for a short time to process the book. It will look like the screen flashes with a black box a few times. That is the process where it writes to the file.

It is even more simple than I thought.

If you want quality and quantity... it needs stuff added. I did not remember what I wrote. I just knew it reads bod items and writes to a file - which a greate part of matching what you requested.
It would not be hard to use the KalOCR routines that do smith and tailor bods. Expanding it to do the other newer bods will not be ready for a while  yet.

So, how do you run this?
1) save the files in the same directory as your Easyuo program
2) login as your character near your bod books. The books can be on a vendor, in a container, in your backpack... doesn't matter where.
3) open the BOD_lister.txt
4) Optionally change the name of the filename to create to hold the bod listing. The default is called TinkBOD.txt. It appends information to this file if it exists each time you run it. When I was doing this for a bunch of skills, I just kept the file open in my text editor and reloaded it after each run, then added a new line to say the next skill I was testing in the next bod book.
5) run the BOD_lister.txt

You now have a text file with the basic item name to craft on from the bod. it doesn't work clean for large bods because of the OSI text that overlaps the name of long items with the quality of the item. But that is problem with the bod book itself and not this script.

My suggestion is to run it as is... see if that is something like what you want. If it is then it may be worth adding the quality/quantity information if that is required by you. If this is nothing like what you want... you tried and evaluated and nothing other than a couple posts worth of time has been wasted.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #6 on: January 28, 2021, 10:13:37 PM »
0
Appreciate the step by step. I tried what you said and after I targeted book, UO Crashed ( Not responding) and spinning blue wheel of death. Not sure why it didnt work:( I tried multiple times.
Thanks.

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #7 on: January 28, 2021, 10:57:58 PM »
0
double check that kalocr.txt is in the same directory with your euo.exe
restart your euo and all uo clients

"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #8 on: January 30, 2021, 10:48:47 AM »
0
Well this is what I got that was listed in the TINKbod.txt file??? I thought it listed out the bods in book? Did I do something wrong here?

$platemail arms$helmet$platemail legs$hammer pick$chainmail coif$chainmail leggings$chainmail tunic$broadsword$short spear$N/A$platemail gorget$platemail gloves$plate helm$platemail tunic$buckler$maul$katana$$$$

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #9 on: January 30, 2021, 12:29:12 PM »
0
How would you like the data formatted? Type out an example of what you would like to see from a BOD.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #10 on: January 30, 2021, 01:23:31 PM »
0
I would like it to list it as it looks in the book.



Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #11 on: January 31, 2021, 11:29:50 AM »
0
I updated Kal's bod book lister. His format was more like what you would receive from an event property on a BOD when not in a book. It is currently only written for Blacksmithy and Tailoring BODs.

Small BODs would be simple to change the format to something a little more readable.
Large BODs share information and have a list of how many items are on the BOD.

EUO is not very good at processing and formatting text. So while Kal's script does a nice job of extracting the data, EUO is not really good at breaking it back apart to format over several lines.

If it were me, I would use a text processing tool to reformat the output into what I wanted. While it can be chained in order with EUO, it would require you to install another tool on your computer. If you are up to that - great! If you want to look elsewhere, or give it a stab yourself, I can post the code. Here is an example of the current output for a small and a large BOD:
Code: easyuo
  1. a bulk order deed$blessed$Small bulk order$all items must be made with Shadow Iron ingots.$normal$amount to make: 20$platemail gorget: 0$price: 0$  
  2. a bulk order deed$blessed$Large bulk order$all items must be made with Bronze ingots.$normal$amount to make: 20$chainmail coif: 0$chainmail leggings: 0$chainmail tunic: 0$price: 0$

I would love for it to look like this, but I can't think of a simple way requiring a little bit of effort by me to make it happen in EUO alone:
Code: [Select]
Small Shadow normal amount: 20 price: 0
platemail gorget: 0
Large Bronze normal amount: 20 price: 0
chainmail coif: 0
chainmail leggings: 0
chainmail tunic: 0

It can be done with a routine to break apart the string into tokens, using the $ as a delimiter for the information.
Use the str functions to grab all the items between "amount to make:" and "price" - to give the items on the bod.
print the first line
then loop to print each of the items

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #12 on: January 31, 2021, 07:34:25 PM »
0
I would love for it to look just his. I want to list out my thousands of bods into excel sheets so I can filter out. I need to know what type I have total in each book. Just like this would be perfect:

Small Shadow normal amount: 20 price: 0
platemail gorget: 0
Large Bronze normal amount: 20 price: 0
chainmail coif: 0
chainmail leggings: 0
chainmail tunic: 0

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 487
  • Activity:
    0.2%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Bod Book Lister
« Reply #13 on: January 31, 2021, 07:59:59 PM »
0
If you are looking to pull it into a spreadsheet, then you could simply use the original script and parse the fields at each $ character.

Gaderian
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline powTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • pow has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Bod Book Lister
« Reply #14 on: January 31, 2021, 08:01:04 PM »
0
Yes, but that doesnt provide the entire bod name, type, quality or amount to make.
Thats what Im looking for. Not sure if I am explaining correctly.

Tags: