Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to publish them under the GPL licensing terms. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 01-02-2007, 10:31 AM   #1 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 23
Posts: 2,911
Default [RunUO 2.0 RC1] Journey Books

A book that will write in itself and a paired book (called its twin). So whatever is written in one will overwrite what is written in the other. Got this idea from the Sword of Truth series, sadly its impossible to update the book in real time to watch the other person write, but oh well.

Example:
Open Book A -> Type "Hello, Im mordero." -> Close Book A
Open Book B -> Now Contains "Hello, Im mordero." -> Type "Why, hello" ->Close Book B
Open Book A -> Now Contains "Hello, Im mordero. Why, hello"

To install:
Just drag this into your custom script folder AND add
Code:
set { m_Pages = Pages; }
to public BookPageInfo[] Pages in the BaseBook class in BaseBook.cs, so it will look like this:
Code:
public BookPageInfo[] Pages
{
get { return m_Pages; }
//edited
set { m_Pages = value; }
}
If I ever figure out a way to update a book without this edit, Ill fix this, but I spend a couple hours trying and couldnt come up with anything.


To add ingame:
[add JourneyBook <-creates one Journey Book, its twin will have to be set manually
[add JourneyBookSetDeed <-creates a deed that will create a Journey Book set containing two books that are paired.

Editable Properties:
  • Twin - its paired JourneyBook that it will write to
This can be changed by a [props in game. If the book doesnt have a mate, it will tell the player.

Just like with my Transfer Chests, I did what testing I could, but its been limited since its just me. Also if you change anything in the code, DO NOT change anything dealing with Initialization, or within the #region FromBaseBook tags in the OnContentChange method, since this overrides the normal handling of book editing and could cause your books to stop working if changed. If you have any questions/bugs/concerns, just post.

I cant think of reason why this wouldnt work with 1.0 (at least from the Generics point of view), but I didnt test it with it.

Hope you like it

Update: Grrr, a problem registering the packet handler when the server reloads , fixed it though
Attached Files
File Type: cs JourneyBook.cs (6.0 KB, 112 views)

Last edited by mordero; 01-04-2007 at 03:51 PM.
mordero is offline   Reply With Quote
Old 01-02-2007, 11:13 AM   #2 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 47
Posts: 4,754
Default

That's a pretty neat idea!
HellRazor is offline   Reply With Quote
Old 01-03-2007, 12:00 AM   #3 (permalink)
Lurker
 
Join Date: Apr 2006
Posts: 1
Default

Very cool idea! Sword of Truth is my very favorite series! A great way to leave messages for friends!

Thanks for submitting this.
kejamimi is offline   Reply With Quote
Old 01-03-2007, 12:25 PM   #4 (permalink)
Forum Novice
 
Nott32's Avatar
 
Join Date: Feb 2006
Location: In front of my computer...
Age: 18
Posts: 563
Send a message via MSN to Nott32 Send a message via Yahoo to Nott32
Default

Great Idea im trying it now :-)
__________________
Everytime a puppy gets hit by a car from me smoking I take another drag, point, and laugh.
Nott32 is offline   Reply With Quote
Old 06-11-2007, 02:35 PM   #5 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,209
Send a message via Yahoo to Lord_Greywolf
Default

finally had some players get a pair of thses in game

and after the next restart, they both said twin was null

they wee made using the deed, and when 1st made do have the twins marked correctly
and it looks like the script is serialized correctly

so i am lost as to how they could get set to null

any clue?
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 06-11-2007, 03:07 PM   #6 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Cool, original (UO) Idea ++Karma
Tru is offline   Reply With Quote
Old 06-11-2007, 05:37 PM   #7 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

I came up with a pair of books that are linked and do not require base file edits. If you are interested I will post them here.
Lokai is offline   Reply With Quote
Old 06-11-2007, 09:02 PM   #8 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Quote:
Originally Posted by Lokai View Post
I came up with a pair of books that are linked and do not require base file edits. If you are interested I will post them here.
I'd be interested in seeing it...
Tru is offline   Reply With Quote
Old 06-11-2007, 10:19 PM   #9 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Tru View Post
I'd be interested in seeing it...
No problem. I just posted it:

Linked Books, Linked Bags, oh my!

It was sufficiently different that it warranted a new post. Also, I couldn't resist adding my bag of linked bags too.
Lokai is offline   Reply With Quote
Old 06-15-2007, 02:17 AM   #10 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,209
Send a message via Yahoo to Lord_Greywolf
Default

I am still having the problem that every restart that the books do not stay linked to each other

and ideas on the fix for this?
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5