Lokai
Knight
Lokai's XML Bible System
Lokai's XML Bible System
UPDATES:
9/26/2008
If you downloaded the old system, you know it was very slow and buggy.
This version is much more stable, and infinitely faster. Also, this should be "Drag and Drop" compliant. No changes needed to existing scripts.
What is this?
The system includes the following:
Bible.cs -
The entire text of the Bible is read into static memory, and is available by Verse or Passage.
BibleGump.cs -
The Bible Gump allows you to read the text, change which Book, Chapter or Verses you are reading. It is 'somewhat' intelligent in how it understands which Book you are trying to read.
BibleReader.cs -
Contains the hashcode that stores the data from XML, and also has the routines which allow you to retrieve the data from multiple sources with varying inputs.
WanderingPreacher.cs -
Is set up and configured like a cross between a Bible and a WanderingHealer. He will not resurrect, but will heal Young players by annointing them with oil. He will sometimes quote passages to you, if he believes you need to hear it. He also responds to verbal requests as follows:
- "verse" - he will recite his 'Verse of the day'. (Book, Chapter, Verse.)
- "passage" - he will recite his entire Passage (Book, Chapter, First Verse - Last Verse.)
- "topic" - he will recite a passage based on his favorite Topic (which can be configured by the GM.)
- "topic" + keyword (eg. "angels") - he will recite a passage based on the Topic provided, if it exists.
PreacherGump.cs -
Similar to the BibleGump, it allows you to set up the Preacher's default scripture passage. The 'First Verse' is also the 'Verse of the day'.
TopicReader.cs -
Provides the brains and methods allowing the system to retrieve a random verse based on a given topic.
ConfigurePreacher.cs -
Allows GMs to launch the PreacherGump by selecting the context menu entry labeled "configure" when single-clicking the Preacher.
RecitalTimer.cs -
Sets up the delay between verses when the Preacher has multiple verses to read.
bible.xml -
This is the entire bible in XML format. It should be in your Data\Books directory.
How to Install?
Simply extract the Zip to your RunUO directory. I have included the Data and Scripts folder structure so that it should place them in the correct locations.
**EDIT** Just added. CustomGump.cs -
Needed to make the Gumps work, since they are based on my CG.
Download CustomGump.zip above.
Is this compatible with RunUO 1.0?
No. The changes made to this system were crafted specifically for 2.0.
I hope everyone is as blessed by this as I was by creating it.
Lokai
Lokai's XML Bible System
UPDATES:
9/26/2008
- Removed old attachment due to corruption: XML Bible System.zip (1.26 MB, 382 views)
- Added new attachments:
- XML Bible System.zip - contains all files with folders to add system to your Server
- Lokai XML Bible System.zip - contains just the .cs source files
- bible.zip - contains just the XML bible
- Refined the Topic Gump to make it faster, and to allow you to cycle through all Topics without having to reset the list of Topics.
- Added Custom Gump to the release, which is required for some Gumps.
- To get the new release, remove older version first, then download the attachment, and extract files to your RunUO folder.
- Patch added which adds Chapter Index and Topical Concordance to the Bible Gump. VERY COOL. If you like this system you will love this addition. To get it, extract the files from the Patch above and overwrite your existing files. Also includes several new files.
If you downloaded the old system, you know it was very slow and buggy.
This version is much more stable, and infinitely faster. Also, this should be "Drag and Drop" compliant. No changes needed to existing scripts.
What is this?
The system includes the following:
Bible.cs -
The entire text of the Bible is read into static memory, and is available by Verse or Passage.
BibleGump.cs -
The Bible Gump allows you to read the text, change which Book, Chapter or Verses you are reading. It is 'somewhat' intelligent in how it understands which Book you are trying to read.
BibleReader.cs -
Contains the hashcode that stores the data from XML, and also has the routines which allow you to retrieve the data from multiple sources with varying inputs.
WanderingPreacher.cs -
Is set up and configured like a cross between a Bible and a WanderingHealer. He will not resurrect, but will heal Young players by annointing them with oil. He will sometimes quote passages to you, if he believes you need to hear it. He also responds to verbal requests as follows:
- "verse" - he will recite his 'Verse of the day'. (Book, Chapter, Verse.)
- "passage" - he will recite his entire Passage (Book, Chapter, First Verse - Last Verse.)
- "topic" - he will recite a passage based on his favorite Topic (which can be configured by the GM.)
- "topic" + keyword (eg. "angels") - he will recite a passage based on the Topic provided, if it exists.
PreacherGump.cs -
Similar to the BibleGump, it allows you to set up the Preacher's default scripture passage. The 'First Verse' is also the 'Verse of the day'.
TopicReader.cs -
Provides the brains and methods allowing the system to retrieve a random verse based on a given topic.
ConfigurePreacher.cs -
Allows GMs to launch the PreacherGump by selecting the context menu entry labeled "configure" when single-clicking the Preacher.
RecitalTimer.cs -
Sets up the delay between verses when the Preacher has multiple verses to read.
bible.xml -
This is the entire bible in XML format. It should be in your Data\Books directory.
How to Install?
Simply extract the Zip to your RunUO directory. I have included the Data and Scripts folder structure so that it should place them in the correct locations.
**EDIT** Just added. CustomGump.cs -
Needed to make the Gumps work, since they are based on my CG.
Download CustomGump.zip above.
Is this compatible with RunUO 1.0?
No. The changes made to this system were crafted specifically for 2.0.
I hope everyone is as blessed by this as I was by creating it.
Lokai