Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 06-10-2005, 05:23 PM   #1 (permalink)
Forum Expert
 
Savaal's Avatar
 
Join Date: Apr 2004
Location: A hole in the wall...
Age: 19
Posts: 1,075
Default IP Range

How do you BAN someones IP Range and if so would i be losing a great deal of players?
Savaal is offline   Reply With Quote
Old 06-10-2005, 05:49 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Savaal
How do you BAN someones IP Range and if so would i be losing a great deal of players?
Through the Admin gump, depends on the range.
Phantom is offline   Reply With Quote
Old 06-10-2005, 06:25 PM   #3 (permalink)
Forum Expert
 
Savaal's Avatar
 
Join Date: Apr 2004
Location: A hole in the wall...
Age: 19
Posts: 1,075
Default

Well, can someone really help me with this? i wanna add a command that bans players from using "[Chat" command i want my system custom i want it to be like the [Ban command a gump will pop up and lets yo uselect the duration but i want it to be like "[BanChat" how would i do this? BECAUSE THIS GUY WONT STOP so yeah :/.... heres my chat script...

Code:
		}



		[Usage( "Chat <text>" )]
		[Aliases( "chat" )]
		[Description( "Broadcasts a message to everyone online." )]
		public static void PlayerMessage_OnCommand( CommandEventArgs e )
		{
			if ( CanChat( e.Mobile ) )
				BroadcastMessage( AccessLevel.Player, 0x842, String.Format( "{0} : {1} ", e.Mobile.Name, e.ArgString  ) );
			else
				e.Mobile.SendMessage( "You must wait some time before chating again" );
		}

		private static ArrayList ChatTimers = new ArrayList();
		private static ArrayList ChatMobiles = new ArrayList();
		public static int ChatDelay = 3; // seconds

		private static bool CanChat( Mobile m )
		{
			if ( ChatMobiles.Contains( m ) )
			{
				if ( (DateTime)ChatTimers[ ChatMobiles.IndexOf( m ) ] + TimeSpan.FromSeconds( ChatDelay ) < DateTime.Now )
					ChatTimers[ ChatMobiles.IndexOf( m ) ] = DateTime.Now;
				else
					return false;
			}
			else
			{
				ChatMobiles.Add( m );
				ChamTimers.Add( DateTime.Now );
			}
			return true;
		}
i know this is a request of some sort but i just really need this done to get rid of this guy....
Savaal is offline   Reply With Quote
Old 06-11-2005, 05:33 AM   #4 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Don't request scripts, its against the rules, you should know that by now.

Anyways add a bool property to your PlayerMobile, and check the value of that.
Phantom 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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5