Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 06-10-2005, 05:30 PM   #26 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Version 1.4 has been posted - go to the top to see what has changed.
 
Old 06-13-2005, 05:39 AM   #27 (permalink)
 
Join Date: Jun 2005
Location: Nebraska
Age: 31
Posts: 181
Default

I noticed that the filter stops regular speech from being seen if they are jailed for it..... I wondered if you could make that happen with the chat filter as well...? When they say something in chat and get jailed for it it still shows up instead of being filtered out....

Perhaps even an auto-squelch for global chat if they reach 300 stones or something so that they have to get staff to unsquelch them. That would save alot of time so you dont have to manually squelch grief players.

Just a suggestion...


By the way this is probably THE most useful script I have gotten for my shard next to the chat system itself. Thank you SO much.
Krystyl_Rose is offline  
Old 06-13-2005, 05:51 AM   #28 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

I will look into that.
 
Old 06-15-2005, 06:33 PM   #29 (permalink)
 
Join Date: May 2005
Age: 27
Posts: 2
Default

There is a bug in JailCommand.cs. If a gm or seer removes his backpack he cant be jailed because a System.NullReferenceException will occur.
DeathWing is offline  
Old 06-15-2005, 07:01 PM   #30 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by DeathWing
There is a bug in JailCommand.cs. If a gm or seer removes his backpack he cant be jailed because a System.NullReferenceException will occur.

Uhm your not supposed to be able to remove your backpack... so technically that "bug" should never occur.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 06-16-2005, 07:53 AM   #31 (permalink)
 
Join Date: May 2005
Age: 27
Posts: 2
Default

Gms and seers are able to remove their backpack. I know this isnt a big thing but it happend in our shard.
DeathWing is offline  
Old 06-16-2005, 06:25 PM   #32 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

around line 216 you have this:
Code:
			ArrayList finalitems = new ArrayList( backpack.Items );
			foreach ( Item item in finalitems )
			{
				if ( item is JailRock )
					item.Delete();
				else if ( item.Movable )	// Non movable pack items must remain (i.e. skill balls)
					bag.DropItem( item );			}
Why delete jailrock from their pack when jailing? There should be no way they would have it since it is not constructable.
ssalter is offline  
Old 06-16-2005, 06:30 PM   #33 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Default

because they were mining morethan they needed and taking it out with them and selling it for a high profit on da economy(there was a way to get it out of jail so now it is set to delete all jailrock upon completion)
Thundar is offline  
Old 06-16-2005, 07:09 PM   #34 (permalink)
Forum Expert
 
Join Date: Nov 2003
Posts: 561
Default

Quote:
Originally Posted by Thundar
because they were mining morethan they needed and taking it out with them and selling it for a high profit on da economy(there was a way to get it out of jail so now it is set to delete all jailrock upon completion)
Yes, I understand that, that is the way it should be. But, the code in question occurs when a player is jailed. *shrug* Doesn't matter that much, just another thing for the script to do while jailing.



A couple other things I modified:

Just a cosmetic in jailhammer.cs:

Code:
		public override void OnSingleClick ( Mobile from )
		{
			LabelTo( from, "You have to mine {0} pieces of jail rock.", m_Rock);
		}

		public override void AddNameProperty( ObjectPropertyList list )
		{
				list.Add( "You have to mine " + m_Rock + " pieces of jail rock!");
		}
ssalter is offline  
Old 06-16-2005, 07:14 PM   #35 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Default

that would be cool i just added a res gate to the location and i also used the standard jail for my "jail" area and just altered the mine from rock to stone and the regions are alrdy set so they cannot get out and stuff
Thundar is offline  
Old 06-17-2005, 01:47 AM   #36 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by ssalter
Yes, I understand that, that is the way it should be. But, the code in question occurs when a player is jailed. *shrug* Doesn't matter that much, just another thing for the script to do while jailing.
The deletion on entrance is to stop those who already have jail rock outside from bringing it in to those inside (the only place it has value).
 
Old 06-30-2005, 06:19 PM   #37 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Default

Hmm,... it seems that the slavedriver disapear, when he jailed me... right? How can I bring him back?
hudel is offline  
Old 07-01-2005, 03:06 AM   #38 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by hudel
Hmm,... it seems that the slavedriver disapear, when he jailed me... right? How can I bring him back?
I assume you mean he walked off and now you cannot find him? Nothing in this script would make him disappear. To find him - write a small program to loop through all of the mobs in the world and if it is JailSlaveDriver move him to a given location. I hope this helps.

On second thought, did you create a JailSlaveDriver? He has nothing to do with jailing you and must be created by an admin when you place your JailTeleporter.
 
Old 07-12-2005, 12:54 PM   #39 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Wink minor prob

Just to let u know that i use this system and your safe rez script on my shard and i noticed that when u die and are still a ghost and say a cuss word u are taken to jail and all is good so far but when u rez and then get unjailed or exit the jail a death shroud appears in your bag an is unmovable (only a GM can remove them) not a big deal just a lil annoying....just wanted u to know is all
Thundar is offline  
Old 07-12-2005, 04:05 PM   #40 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Thanks for the report Thundar. Hopefully we will get some bad weather soon which will give me time to fix this.
 
Old 07-13-2005, 06:14 PM   #41 (permalink)
Forum Novice
 
Turmoil's Avatar
 
Join Date: May 2005
Location: Montreal
Age: 29
Posts: 136
Send a message via MSN to Turmoil
Default

Quote:
Originally Posted by Xanthos
Get the latest release. I added some config variables and instruction in the comment next to the variable to help make mining different locations easier for everyone. Basically you use the command
Code:
[get name
and target a tile to get the name to set the variable to. Worked well for me - let me know if it gives you any grief
Just put in the jail system in last night (changed the location and added more to the foul language list to add in some in french). The jail command works well and also with test player, typing anything from the list will jail you. Also that guard and freedom teleporter works and the the hammer is equiped and can't be removed until release with player item in the bank..So far so good.

I can't mine the rock from the mountain walls to get jail rock and followed your directions and tried with the "cave floor" using your "/get name" command and edited the code where it was indicated in one of the files...I tired every combination like;
"cave floor", "cavefloor, "CaveFloor", "Cave Floor" etc...I seem that I can't mine jail rock every way I try it. I get to correct messge when I use the hammer (Like the message changed to adjust that I should mine cave floor) but nothing ever happens...

Any ideas?...thanks in advance...great system btw
Turmoil is offline  
Old 07-14-2005, 03:01 AM   #42 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Turmoil - let me make sure I understand what is happening. You used the [get name command and it reported that the floor you selected was "cave floor"? And then once you change the constant in the code to "cave floor" you cannot mine from the mountain walls? Is this correct? If so this is what I would expect. Target whatever tile type you will be mining and then that is the only type of tile you can get ore from after you change the constant in the code.
 
Old 07-14-2005, 07:21 AM   #43 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Default

Quote:
Originally Posted by Turmoil
Just put in the jail system in last night (changed the location and added more to the foul language list to add in some in french). The jail command works well and also with test player, typing anything from the list will jail you. Also that guard and freedom teleporter works and the the hammer is equiped and can't be removed until release with player item in the bank..So far so good.

I can't mine the rock from the mountain walls to get jail rock and followed your directions and tried with the "cave floor" using your "/get name" command and edited the code where it was indicated in one of the files...I tired every combination like;
"cave floor", "cavefloor, "CaveFloor", "Cave Floor" etc...I seem that I can't mine jail rock every way I try it. I get to correct messge when I use the hammer (Like the message changed to adjust that I should mine cave floor) but nothing ever happens...

Any ideas?...thanks in advance...great system btw

this is the spot u have to changethe part in red to what ever it is u get from the [ get name command - that is all u should change for it to start mining that tile ):

Code:
// Cnfigurable options
		public static AccessLevel kJailImmuneLevel = AccessLevel.GameMaster;
		public static int kRockAmount = 250;
		public static string kWhatToMine = "stone";	// Change this to mine your jail tiles. Find tile name with admin command [get name 
		public static int kHammerDifficulty = 65;	// precent chance of getting no jail rock on a mining attempt 
		public static Point3D JailLocation = new Point3D( 5278, 1164, 0 );
		public static Point3D FreeLocation = new Point3D( 1430, 1697, 0 );
		public static Map JailMap = Map.Trammel;
		public static Map FreeMap = Map.Trammel;


also note that what ever this is set to that is the only type of tile u could mine from then on. Hope that helps u


also this is in JailCommand.cs and as u can see i use the normal tram jail cells and make them mine from there so that way i dont have to mess with any region controls and worry about them using the help menu and all that good stuff.
Thundar is offline  
Old 07-14-2005, 10:23 PM   #44 (permalink)
Forum Newbie
 
Join Date: Apr 2005
Age: 47
Posts: 97
Default

this script seems to work well, but how do i change the jailed location?
spikeSOK is offline  
Old 07-15-2005, 01:08 AM   #45 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by spikeSOK
this script seems to work well, but how do i change the jailed location?
Place the jail teleporter in your jail and edit its properties to change the basic configuration of the jail system such as locations etc.
 
Old 07-18-2005, 11:24 PM   #46 (permalink)
Newbie
 
Join Date: Nov 2003
Posts: 61
Default

I dont know why, but I installed the system, setup a jail area inside of an unused mountainous area, and set the jail coordinates

****

Code:
#endregion AuthorHeader
using System;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Targeting;
using System.Collections;

namespace Xanthos.SpeechCop
{
	public class Jail
	{
		// Cnfigurable options
		public static AccessLevel kJailImmuneLevel = AccessLevel.Administrator;
		public static int kRockAmount = 100;
		public static string kWhatToMine = "rock";	// Change this to mine your jail tiles. Find tile name with admin command [get name 
		public static int kHammerDifficulty = 65;	// precent chance of getting no jail rock on a mining attempt 
		public static Point3D JailLocation = new Point3D( 1715, 1064, 0 );
		public static Point3D FreeLocation = new Point3D( 3770, 1308, 0 );
		public static Map JailMap = Map.Trammel;
		public static Map FreeMap = Map.Felucca;

		public static string kJailRockName = "Jail Rock";	// This should not be changed

		private static ArrayList m_BadWords = new ArrayList();

		public static void Initialize()
****




However, whenever I [jail someone, they end up at coords 1594, 3300, 0 in Trammel.

The trammel part I want, but the actual location is FUBAR. Anyone have any understanding why it's going there??

Also, when I tested it, the prisoner leaving jail goes to 1430, 1696, 0 in Trammel??? Help?
Any help would be greatly appreciated.
Grashopr is offline  
Old 07-19-2005, 12:20 AM   #47 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Grashopr
I dont know why, but I installed the system, setup a jail area inside of an unused mountainous area, and set the jail coordinates

...

However, whenever I [jail someone, they end up at coords 1594, 3300, 0 in Trammel.

The trammel part I want, but the actual location is FUBAR. Anyone have any understanding why it's going there??

Also, when I tested it, the prisoner leaving jail goes to 1430, 1696, 0 in Trammel??? Help?
Any help would be greatly appreciated.
I designed this system so that you can edit the props on the teleporter and it will override the values in the Jail class. I think you still have a jail teleporter at the old location. You have two options: remove it, recompile your JailCommand.cs and then the new locations will work. Alternatively you can move the teleporter to the new location and then get properties on the teleporter to set the locations etc.

I have changed the installation instructions on the first post to indicate that sources need not be modified as once can use the teleporter to configure the jail settings.

Let me know if this post does not resolve your issue.
 
Old 07-19-2005, 12:27 AM   #48 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Please note that the installation instructions have changed. Most installations will no longer need to edit the source files to set up this system.
 
Old 07-24-2005, 03:09 AM   #49 (permalink)
 
Join Date: Jun 2005
Age: 20
Posts: 15
Default

Ok, when players are jailed due to cussing they can get out if they use young player haven teleport (if they are young) and the stuck menu any other time. This is a little annoying. Any fix on this?
GriffinSandars is offline  
Old 07-24-2005, 10:38 PM   #50 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Default

Quote:
Originally Posted by GriffinSandars
Ok, when players are jailed due to cussing they can get out if they use young player haven teleport (if they are young) and the stuck menu any other time. This is a little annoying. Any fix on this?

if u dont use the normal jail area as your target location you will have to set up region controls to block that there is a custom region creator out there, it may be in the archive by now...that should help you out
Thundar is offline  
 

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