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 07-20-2006, 02:44 PM   #1 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default Lokai's XML Bible System

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:
    1. XML Bible System.zip - contains all files with folders to add system to your Server
    2. Lokai XML Bible System.zip - contains just the .cs source files
    3. bible.zip - contains just the XML bible

9/4/2006
  • 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.
7/22/2006:
  • 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.
I originally released this system for RunUO 1.0 back a while, and decided to completely rewrite it for RunUO 2.0.

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
Attached Files
File Type: zip XML Bible System.zip (1.26 MB, 106 views)
File Type: zip Lokai XML Bible System.zip (34.7 KB, 71 views)
File Type: zip bible.zip (1.22 MB, 94 views)

Last edited by Lokai; 09-26-2008 at 07:40 AM. Reason: Fixing attachments.
Lokai is offline   Reply With Quote
Old 07-20-2006, 07:13 PM   #2 (permalink)
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 48
Posts: 199
Send a message via ICQ to Hanse the Insane
Talking Looking forward

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
Hanse the Insane is offline   Reply With Quote
Old 07-20-2006, 07:18 PM   #3 (permalink)
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 48
Posts: 199
Send a message via ICQ to Hanse the Insane
Default

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
Hanse the Insane is offline   Reply With Quote
Old 07-20-2006, 07:23 PM   #4 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
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 Hanse the Insane
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;
Sorry, CG is a custom Gump system I use. Forgot to include that.

Give me a sec.

**EDIT**

OK, added CustomGump.zip above. Get that to make my Gumps work.

Thanks.

Last edited by Lokai; 07-20-2006 at 07:26 PM.
Lokai is offline   Reply With Quote
Old 07-20-2006, 07:30 PM   #5 (permalink)
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 48
Posts: 199
Send a message via ICQ to Hanse the Insane
Default

Thank you for the swift response. I shall wait then before going back out
__________________
45 and retired, Life is good, mostly :D
Hanse the Insane is offline   Reply With Quote
Old 07-20-2006, 07:41 PM   #6 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

No problem.

I tried to 'break' my script, by giving it far out input and stuff, and it seems to be pretty robust, but I had forgot about that Gump part. hehe.
Lokai is offline   Reply With Quote
Old 07-20-2006, 07:50 PM   #7 (permalink)
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 48
Posts: 199
Send a message via ICQ to Hanse the Insane
Default

No issues now, its running and I shall explore it in depth after the roses are tended too. Thank you for a wounderful script
__________________
45 and retired, Life is good, mostly :D
Hanse the Insane is offline   Reply With Quote
Old 07-21-2006, 01:42 AM   #8 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
Default

I like it....and the fact people will hate me for the way I use it!
Tru is offline   Reply With Quote
Old 07-21-2006, 02:55 AM   #9 (permalink)
Forum Novice
 
Join Date: Jun 2006
Location: Lakw Worth, Fla
Age: 48
Posts: 199
Send a message via ICQ to Hanse the Insane
Default

okay, ill ask, how are you using it
__________________
45 and retired, Life is good, mostly :D
Hanse the Insane is offline   Reply With Quote
Old 07-21-2006, 04:55 AM   #10 (permalink)
Forum Novice
 
Join Date: May 2004
Location: Canada
Age: 36
Posts: 158
Default

I like this, tks for sharing it with us all
dragonlady is offline   Reply With Quote
Old 07-21-2006, 07:42 AM   #11 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
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
I like it....and the fact people will hate me for the way I use it!
It's OK.

It's not like God will punish those that misuse His Word or take his name in vain...wait, never mind.

Lokai is offline   Reply With Quote
Old 07-21-2006, 10:09 AM   #12 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
Default

Quote:
Originally Posted by Lokai
It's OK.

It's not like God will punish those that misuse His Word or take his name in vain...wait, never mind.

HAHAHAHAHAHAHAHAHA....I won't say more, In respect of everyone's/anyone's choice.
Tru is offline   Reply With Quote
Old 07-22-2006, 03:55 PM   #13 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

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.
Lokai is offline   Reply With Quote
Old 07-22-2006, 04:28 PM   #14 (permalink)
Forum Novice
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 33
Posts: 896
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

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:
You must spread some Reputation around before giving it to Lokai again.
__________________
"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
Rosey1 is offline   Reply With Quote
Old 09-04-2006, 12:52 PM   #15 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default New Update!

Just uploaded new updated version:
  • Custom Gump included.
  • Topic Gump is now MUCH faster, and lets you cycle through all Topics easily.
  • Please remove old versions completely before installing this. Thanks.
Lokai is offline   Reply With Quote
Old 07-26-2007, 10:49 AM   #16 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
Default

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!
nadious is offline   Reply With Quote
Old 07-26-2007, 11:47 AM   #17 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
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 nadious View Post
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!
Thank you.

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.
Lokai is offline   Reply With Quote
Old 07-26-2007, 01:01 PM   #18 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,954
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

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
Johabius is offline   Reply With Quote
Old 07-26-2007, 10:40 PM   #19 (permalink)
Newbie
 
CosmoSpira's Avatar
 
Join Date: Sep 2006
Age: 25
Posts: 35
Default

i think Tru and i are on the same page ..but i wont say anything else...it belongs in another forum


really 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
CosmoSpira is offline   Reply With Quote
Old 07-27-2007, 10:00 AM   #20 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
Default

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.
nadious is offline   Reply With Quote
Old 07-27-2007, 02:41 PM   #21 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 32
Posts: 1,038
Send a message via MSN to Liacs
Default

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!
Liacs is offline   Reply With Quote
Old 07-27-2007, 03:33 PM   #22 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,468
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 nadious View Post
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!

There is.

Modify the OnDoubleClick() method of the Bible.

Add something like this:

Code:
 
if (from.Region == Region.Jail)
     GiveHammer(from);
Then add this somewhere.

Code:
 
 
public void GiveHammer(Mobile from)
{
     foreach (Item i in from.Items)
          if (i is RockHammer)
               return;
 
     RockHammer hammer = new RockHammer();
     from.DropItem(hammer);
}
Lokai is offline   Reply With Quote
Old 07-27-2007, 04:09 PM   #23 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 40
Posts: 3,259
Default

I think it would be more affective if you also spawned a preacher to do some preaching while said criminal was doing his rocks.
Tru is offline   Reply With Quote
Old 07-27-2007, 04:14 PM   #24 (permalink)
Forum Novice
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 501
Default

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?'
nadious is offline   Reply With Quote
Old 09-03-2007, 01:48 AM   #25 (permalink)
Forum Novice
 
Hotshot's Avatar
 
Join Date: Jan 2006
Posts: 221
Default

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.
Hotshot 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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5