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 make them public domain. 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 06-13-2008, 08:42 AM   #1 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default [2.0] Jailing System

Jailing System

Updates:
  1. July 19, 2008 -
    1. Added a new setting (StripPlayer in Settings.cs) to strip players when they are jailed.
  2. July 11, 2008 -
    1. Fixed a crash related with the Jail Admin Gump (thanks un4g1v3n).
    2. Fixed a crash related with the Jail command (thanks jhs59).
  3. June 19, 2008 -
    1. Removed jailing for players speech.
    2. Misc. changes in the core
    3. Updated the Read Me
  4. June 17, 2008 -
    1. Fixed a bug that caused duplicate entries of a players mount when it is stabled.
    2. Fixed a bug that caused jailed players who logged off to keep being detected for trying to leave jail.
    3. Fixed a bug that caused the server to crash when you saved really fast.
    4. Fixed a bug that caused jailed players not to load properly.
    5. Added the settings for the default [jail commands values.
    6. Added a jail admin gump to allow staff with the access level required to release players (see Settings.cs) to view and manage players who are currently jailed. Players who names appear in green are currently online and players in red are currently offline.
    7. Added command [jailadmin to view the admin gump.
    8. Players are now dismounted from ethereal mounts when they are jailed.
    9. When using the [jail command and no parameters are specified, the default values are used.
    10. When the time left for a player to be released from jail is less than a minute, it now displays to the user how many seconds they have left.
    11. Modified the jail info gump to allow staff members to use the [jailinfo command and target a jailed player, and getting their jail info and letting them modify
    12. Misc. tweaks and changes of messages and what not.
  5. June 14, 2008 -
    1. Fixed a bug that caused the server to crash after a jailed player has been deleted.
    2. The list of jailed players is now saved after the world save, instead of every tick of the jail timer. This allows the tick timer to be lowered without the consequence of stressing your server too much.
    3. Jailed players that escape from jail somehow will automatically be teleported back to jail.
    4. Default values of TimerTick has been lowered from 30 seconds to 5. This creates less margin error.
  6. June 13, 2008 -
    1. Fixed a bug that caused players to not be released automatically.
    2. Added more functionality to the [jail command - you can now specify 0 and it will take them to a random small jail cell.
    3. Added [jailinfo command.
    4. Added JailInfoGump.
    5. Staff no longer get jailed for swearing.

Commands:
  1. [jail <cell> <days> <hours> <minutes> <reason> - Jails a targeted player for a set amount of time, and it gives them a reason as to why they were jailed, as well as notifying them who the jailer was. If <cell> is 0 it takes them to a random small jail cell.
  2. [release - Releases a targeted player from jail.
  3. [jailinfo - Allows a jailed player to view information about their jail sentence. If a staff member uses this command and has the access level required to release players (see Settings.cs) it sends them a target. When they target a jailed player it brings up a gump that allows them to edit the jailed players sentence.
  4. [jailadmin - Brings up a gump that allows you to view and manage all of the jailed players. Staff members must have the access level required to release players (see Settings.cs)

Features:
  1. Timed jailing - places players in jail automatically for a set amount of time. Players must also be online to serve their jail sentence*.
  2. Automatic squelching, item stripping, pet stabling, and teleporting - when a player is jailed, they are automatically squelched*, stripped of all their items*, dismounted from their mount, and all of their pets are stabled.
  3. Releases players back to where they were prior to being jailed - when a player is released from jail, they are teleported back to the location they were prior to being sent to jail. They are also hidden*, and given a recall scroll*.
  4. Easy management - a gump that lets the staff members view and manage the jailed players on their shard.
* This feature only works if it is enabled in the settings file.

Installation:
  1. See "Read Me.htm" in the download package for the installation guide.

Enjoy.
Attached Files
File Type: rar Jailing System.rar (8.9 KB, 68 views)
__________________


Last edited by Kitchen_; 07-19-2008 at 06:34 PM.
Kitchen_ is offline   Reply With Quote
Old 06-13-2008, 01:02 PM   #2 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 26
Posts: 118
Default

I love it simple and easy to use.. would it be to much trouble to add a why the player could see how long he has left? and a set limit to be warned about bad words? add {cell} if is set to 0 it will pick a random smallcel? gust some thoughts. Love it Great job...

Last edited by EvilGrin369; 06-13-2008 at 01:04 PM.
EvilGrin369 is offline   Reply With Quote
Old 06-13-2008, 06:19 PM   #3 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by EvilGrin369 View Post
I love it simple and easy to use.. would it be to much trouble to add a why the player could see how long he has left? and a set limit to be warned about bad words? add {cell} if is set to 0 it will pick a random smallcel? gust some thoughts. Love it Great job...
I plan to add a gump that the player could access by either command or speech (something like 'What have I done') which will show how long he has left and why he was jailed and by who. The random cell will also be in the next release.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-13-2008, 06:33 PM   #4 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,546
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Not neccessarily a simple script, but in-game it's efficient and straightforward. Very nice.
__________________

Now open - uo15.net - The best in Publish 15 emulation
Suil Ban is offline   Reply With Quote
Old 06-13-2008, 06:33 PM   #5 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 26
Posts: 118
Default

Great Script only thing i did notice is that when the time is up it doesnt release, i have to do it manul with the [release.
EvilGrin369 is offline   Reply With Quote
Old 06-13-2008, 09:08 PM   #6 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Update:
  1. Fixed a bug that caused players to not be released automatically.
  2. Added more functionality to the [jail command - you can now specify 0 and it will take them to a random small jail cell.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-14-2008, 12:16 AM   #7 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Update:
  1. Added [jailinfo command.
  2. Added JailInfoGump.
  3. Staff no longer get jailed for swearing.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-14-2008, 12:46 AM   #8 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 26
Posts: 118
Default

Great job.. best so far.
EvilGrin369 is offline   Reply With Quote
Old 06-14-2008, 02:08 AM   #9 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 48
Posts: 73
Default using stuck

Players can release themselves using the "stuck" menu.
Unicorn1259 is offline   Reply With Quote
Old 06-14-2008, 02:09 AM   #10 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by Unicorn1259 View Post
Players can release themselves using the "stuck" menu.
Ah, thanks fixing now and will post it in a few minutes.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-14-2008, 02:18 AM   #11 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 48
Posts: 73
Default Thanks

Thanks. Cant wait for you to get the staff gump done. I will surely be adding this then. GREAT WORK!
Unicorn1259 is offline   Reply With Quote
Old 06-14-2008, 05:31 AM   #12 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by Unicorn1259 View Post
Players can release themselves using the "stuck" menu.
When I tried using the stuck menu it gives me the message "You'll need a better escape plan than that!" Do you have a modified stuck menu? Regardless, I added a solution for players the manage to get out of jail.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-14-2008, 05:31 AM   #13 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Update:
  1. Fixed a bug that caused the server to crash after a jailed player has been deleted.
  2. The list of jailed players is now saved after the world save, instead of every tick of the jail timer. This allows the tick timer to be lowered without the consequence of stressing your server too much.
  3. Jailed players that escape from jail somehow will automatically be teleported back to jail.
  4. Default values of TimerTick has been lowered from 30 seconds to 5. This creates less margin error.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-17-2008, 10:44 AM   #14 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Update:
  1. Fixed a bug that caused duplicate entries of a players mount when it is stabled.
  2. Fixed a bug that caused jailed players who logged off to keep being detected for trying to leave jail.
  3. Fixed a bug that caused the server to crash when you saved really fast.
  4. Fixed a bug that caused jailed players not to load properly.
  5. Added the settings for the default [jail commands values.
  6. Added a jail admin gump to allow staff with the access level required to release players (see Settings.cs) to view and manage players who are currently jailed. Players who names appear in green are currently online and players in red are currently offline.
  7. Added command [jailadmin to view the admin gump.
  8. Players are now dismounted from ethereal mounts when they are jailed.
  9. When using the [jail command and no parameters are specified, the default values are used.
  10. When the time left for a player to be released from jail is less than a minute, it now displays to the user how many seconds they have left.
  11. Modified the jail info gump to allow staff members to use the [jailinfo command and target a jailed player, and getting their jail info and letting them modify
  12. Misc. tweaks and changes of messages and what not.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-17-2008, 10:46 AM   #15 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,546
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Very good work, Kitchen.
__________________

Now open - uo15.net - The best in Publish 15 emulation
Suil Ban is offline   Reply With Quote
Old 06-18-2008, 05:34 AM   #16 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 904
Default

Cool!
But one thing! If player carrying something necessary(PS,Arty,gold) and he maybe killed i think he will be say "BadWords" and it's mean he not lose items. Better get in Jail 5 min and don't lose stuff. Not most usefull thing.
Maybe will be better for bad words give Squelch.

Last edited by ABTOP; 06-18-2008 at 05:36 AM.
ABTOP is offline   Reply With Quote
Old 06-18-2008, 07:45 AM   #17 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by ABTOP View Post
Cool!
But one thing! If player carrying something necessary(PS,Arty,gold) and he maybe killed i think he will be say "BadWords" and it's mean he not lose items. Better get in Jail 5 min and don't lose stuff. Not most usefull thing.
Maybe will be better for bad words give Squelch.
That's actually a really good catch. I could either remove the swearing filter all together or make it so it optionally kill the user before sending them to jail then resurrects them once they are in jail.

I would need some feedback/input on this first!

EDIT: Actually, I could add a combat check, and if the user is in combat with lets say 60% health or below, it slays them first.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-18-2008, 05:07 PM   #18 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 904
Default

Yes it will be better if kill player. But i can run for player and still don't attack him he noticed this and begin say BadWords and he in jail and he isnt combatant
ABTOP is offline   Reply With Quote
Old 06-19-2008, 09:04 AM   #19 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by ABTOP View Post
Yes it will be better if kill player. But i can run for player and still don't attack him he noticed this and begin say BadWords and he in jail and he isnt combatant
I suggest you just disable the word filter for now.
__________________

Kitchen_ is offline   Reply With Quote
Old 06-19-2008, 01:34 PM   #20 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Update:
  1. Removed jailing for players speech.
  2. Misc. changes in the core
  3. Updated the Read Me
__________________

Kitchen_ is offline   Reply With Quote
Old 06-20-2008, 04:43 PM   #21 (permalink)
Lurker
 
Join Date: Jun 2008
Posts: 2
Unhappy

When I started the server, the console dispayed the following errors:

Scripts: Compiling C# scripts...failed (6 errors, 0 warnings)
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 27) Invalid token '<' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 40) Invalid token '>' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 55) Invalid token ';' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 79, column 20) Invalid token '<' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 79, column 33) Invalid token '>' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1520: (line 79, column 35) Class, struct, or interface method must have a return type

How can I fix this?
hagily is offline   Reply With Quote
Old 06-20-2008, 06:28 PM   #22 (permalink)
Forum Expert
 
Join Date: Jan 2008
Posts: 286
Default

Quote:
Originally Posted by hagily View Post
When I started the server, the console dispayed the following errors:

Scripts: Compiling C# scripts...failed (6 errors, 0 warnings)
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 27) Invalid token '<' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 40) Invalid token '>' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 26, column 55) Invalid token ';' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 79, column 20) Invalid token '<' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1519: (line 79, column 33) Invalid token '>' in class, struct, or interface member declaration
- Error: Scripts\Custom\Jailing\Core.cs: CS1520: (line 79, column 35) Class, struct, or interface method must have a return type

How can I fix this?
Are you running RunUO 1.0 or 2.0?
__________________

Kitchen_ is offline   Reply With Quote
Old 07-03-2008, 01:12 PM   #23 (permalink)
Forum Novice
 
Join Date: Feb 2006
Location: Wisconsin USA
Posts: 211
Default jail

how long is player muted
as admin how can i see whos is in jail
Boulder is offline   Reply With Quote
Old 07-03-2008, 09:50 PM   #24 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 48
Posts: 73
Default bad words

ok, this is gonna sound like a dumb question, but what file is the badwords listed in. I had no problem finding them the first time & now I guess my brain went dead, cause I cant seem to find them. lol a player said the "F" word & didnt get jailed. I appreciate your help & all your hard work.
Unicorn1259 is offline   Reply With Quote
Old 07-05-2008, 12:48 PM   #25 (permalink)
Lurker
 
Join Date: Aug 2006
Posts: 3
Default

-While looking at the jailadmingump some timers of jailed players run out and they get released,
pressing the jailinfo button of a player which was released in the time looking on the jailadmin gump crashes the server with this:

Code:
Exception:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at Server.Custom.Jailing.Gumps.JailAdminGump.OnResponse(NetState sender, RelayInfo info)
   at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
un4g1v3n is offline   Reply With Quote
Reply

Bookmarks

Tags
jail, jail system


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