|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
|
Lokai's XML Bible System
UPDATES: 9/26/2008
9/4/2006
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
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 09-26-2008 at 07:40 AM. Reason: Fixing attachments. |
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
|
I am looking forward tp this script, I still have about 90 minutes of daylight and I plan to tend the roses and clean the tool shed. I have downloaded this script and I shall tell you what I thnk of it after I have installed this.
__________________
45 and retired, Life is good, mostly :D |
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
|
I decided that as my espress was brewing, Id give it a shot. I cam across this errror:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Core: Optimizing for 2 processors Scripts: Compiling C# scripts...failed (2 errors, 0 warnings) Errors: + Customs/XML Bible System/Scripts/Custom/Bible System/BibleGump.cs: CS0246: Line 15: The type or namespace name 'CG' could not be found (are you missing a using directive or an assembly reference?) + Customs/XML Bible System/Scripts/Custom/Bible System/PreacherGump.cs: CS0246: Line 15: The type or namespace name 'CG' could not be found (are you missing a using directive or an assembly reference?) Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again. The error seems to be right here: Code:
namespace Server.Custom
{
public class BibleGump : CG
{
private int m_Book;
__________________
45 and retired, Life is good, mostly :D |
|
|
|
|
|
#4 (permalink) | |
|
Forum Expert
|
Quote:
Give me a sec. **EDIT** OK, added CustomGump.zip above. Get that to make my Gumps work. Thanks.
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 07-20-2006 at 07:26 PM. |
|
|
|
|
|
|
#8 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
|
I like it....and the fact people will hate me for the way I use it!
![]()
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#12 (permalink) | |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
|
Quote:
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
|
#13 (permalink) |
|
Forum Expert
|
Just added above:
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. |
|
|
|
|
|
#14 (permalink) | |
|
Forum Novice
|
Lokai, I've been eager to put this on my test shard and it is awesome! I can't wait to play with it some more!
![]() Quote:
__________________
"That He would leave His place on high and come for sinful man to die. You count it strange, so once did I, before I knew my Savior" ~ Aaron Shust
|
|
|
|
|
|
|
#16 (permalink) |
|
Forum Novice
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
|
Can I just say... (sorry if this is digging up old threads...) that I'm HIGHLY impressed with this mod!
Being a youth pastor for nearly four years, a lot of the players that play on our shard are kids and young adults that have been in our youth group for the past four years. I played UO back in the OSI days (got into it right when T2A came out) for about 3 1/2 years... and a lot of my youth didn't even know what UO was. After talking about some of the old funny stories of the UO days, they wanted to try it out and we happened to find RunUO. So, I spent a great deal of time setting up the shard and we've had a blast ever since. I'm very impressed with this script... I had gotten it just for novelty sakes... because I figured most of the players on our shard would find it neat and humorous.. but I was quickly taken back by what all you can do with the Bible book! The concordance is awesome. Not that I really expect anyone to sit down and read the Bible IN UO... But still... I think it just a very well done script, probably one of the better ones that I have seen, in terms of execution and usability.GREAT JOB! |
|
|
|
|
|
#17 (permalink) | |
|
Forum Expert
|
Quote:
I was very pleased with the way the Concordance turned out. I am not sure how many looks this got, but I hope it will get more since you were so kind to 'resurrect' it. |
|
|
|
|
|
|
#18 (permalink) |
|
Forum Expert
|
Yes, thank for the An Corp on this thread. I had totally forgotten about this package and now I can download it for safekeeping for when I get the urge to open up another "I feel like creating a world" shard.
![]()
__________________
In some cases stupid makes you win-Radwen |
|
|
|
|
|
#19 (permalink) |
|
Newbie
Join Date: Sep 2006
Age: 25
Posts: 35
|
i think Tru and i are on the same page
..but i wont say anything else...it belongs in another forumreally cool and original idea!! ![]() Nadious, you could hold a bible study on your shard ![]() Last edited by CosmoSpira; 07-26-2007 at 10:45 PM. Reason: forgot something |
|
|
|
|
|
#20 (permalink) |
|
Forum Novice
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
|
Hehehe... It is kind of neat, though. I placed a wandering preacher right by the Brit bank, with a music stand which is holding the Bible on it. (You know.. preachers have to go out and street preach sometimes.
) My players this is is just hilarious that when bad karma players go by, that the preacher starts to quote scriptures. They go by often just to see him do it. ![]() But still... it is kind of neat to see players asking if they can get a Bible. So, I made them free (charge for God's word? LOL) on the vendor stone. I was doing some world clean up and noticed that a few of them have them locked down in their houses. Maybe they are doing a little afternoon reading while they work skills. I DID have Xantho's Jail script installed (removed in when we upgrade to the SVN). Should have started an 'mandatory Bible program' for people that kept getting sent to jail. HAHAHAHA! Tell them they couldn't come out till they were 'reformed.' What would have been even funnier... if there was a way to place rock hammers inside of the Bibles.ROFL! Last edited by nadious; 07-27-2007 at 10:02 AM. |
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
|
you got some cool ideas there... worth working on them!
![]()
__________________
;)My C# Bookshelf (carpented by Soultaker);) BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
|
|
|
|
|
|
#22 (permalink) | |
|
Forum Expert
|
Quote:
There is. Modify the OnDoubleClick() method of the Bible. Add something like this: Code:
if (from.Region == Region.Jail)
GiveHammer(from);
Code:
public void GiveHammer(Mobile from)
{
foreach (Item i in from.Items)
if (i is RockHammer)
return;
RockHammer hammer = new RockHammer();
from.DropItem(hammer);
}
|
|
|
|
|
|
|
#23 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
|
I think it would be more affective if you also spawned a preacher to do some preaching while said criminal was doing his rocks.
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#24 (permalink) |
|
Forum Novice
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
|
Hahhaha. That's awesome. Definitely one of the most creative scripts out there.
I have my preacher quote 2 Chronicles 7:14 (I think that's right... off the top of my head there...) when my 'bad' players run by: If my people, who are call by my name, shall humble themselves, and pray, and seek my face, and turn from their wicked ways; then will I hear from heaven, and will forgive their sin, and will heal their land. They are always like... 'What did that guy just say?' |
|
|
|
|
|
#25 (permalink) |
|
Forum Novice
Join Date: Jan 2006
Posts: 221
|
This is Awesome !!!! The Lords Works thru others and I Believe he is doing it thru you. Very Awesome Script !
God Bless bro and Thank You.
__________________
You Can Make a Good Living working for someone else, you can make a fortune working for yourself. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|