Simple Question About Books

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
Post Reply
mogulwraith
UOX3 Newbie
Posts: 13
Joined: Sat Mar 12, 2011 5:44 am
Has thanked: 0
Been thanked: 0

Simple Question About Books

Post by mogulwraith »

My computer crashed while working with the shard. I had almost everything backed up and moved the shard to another computer but everything in my backpack is gone and more importantly some books I wrote and put on some shelves.

I can see all the bok files are still there, is there anyway to clone them as books?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Hello, sorry for the extremely slow reply - have not found the time to sit down and try this out until now.

It is possible to salvage the books, yes. Basically, the contents of any book in UOX3 is saved as a .bok file with the serial of the book-item as the name.

Example:
(book-item found in one of the .wsc files)

Code: Select all

[ITEM]
Serial=0x4000000c
ID=0xfef
Colour=0x0
Direction=0x0
SpawnerID=0xffffffff
OwnerID=0xffffffff
Name=book
(...snip)
This book has the serial 0x4000000c, and will automagically contain the text from any .bok file which has the name 4000000c.bok. Now, it's not very convenient to look through the .wsc files to find the serials for the books, so instead you can use the 'ISTATS command ingame, which if you used it on the book in this example would yield the result 0xc000000c. Replace 0xc with 0x4 and you have the serial which is the basis for the .bok filename. Once you've renamed the .bok files to match the serials of the empty books, you should be able to instantly read the books in-game (no need to restart UOX3/reload anything).

To summarize, what you need to do to salvage your books is:
1) Spawn new empty books in the game
2) Do 'ISTATS on the empty books to get their serial
3) Replace 0xc in the serial with 0x4
4) Rename the .bok files so they are named after the serials of the empty books ingame (0x4000000c becomes 4000000c.bok)
5) Clone the books ingame, place out the clones in book-shelves again. :)
-= Ho Eyo He Hum =-
Post Reply