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-26-2005, 09:25 PM   #1 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: Laredo, Texas
Age: 19
Posts: 757
Send a message via ICQ to Marcus247 Send a message via AIM to Marcus247
Default Command Fix Help

Where do I add this peice of code so I can use the defualt "[" command perfix?

Code:
	public override void DoSpeech( string text, int[] keywords, MessageType type, int hue ) 
	{ 
		if ( (int)type == 0x0F ) // If the message is of type GM 
		text = String.Format( "{0}{1}", Commands.CommandPrefix, text ); // then add the prefix to it 
		base.DoSpeech( text, keywords, type, hue ); // Process the same way as always 
	}
__________________
-->Signature Here<--
Marcus247 is offline   Reply With Quote
Old 06-26-2005, 09:37 PM   #2 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

WTF Not hooded??? HLEP PLZZ
Ohms_Law is offline   Reply With Quote
Old 06-26-2005, 09:43 PM   #3 (permalink)
Forum Expert
 
Join Date: Jun 2003
Location: Laredo, Texas
Age: 19
Posts: 757
Send a message via ICQ to Marcus247 Send a message via AIM to Marcus247
Default

I don't want to change my script, I want to override this.
__________________
-->Signature Here<--
Marcus247 is offline   Reply With Quote
Old 06-26-2005, 09:48 PM   #4 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

well, the GM: prompt is done in the client so I'm not sure how much luck you'll have by editing the server.

however, theres something in the Core forums about this. you'll need to edit Mobile.cs if I remember correctly.
Ohms_Law is offline   Reply With Quote
Old 06-26-2005, 09:59 PM   #5 (permalink)
The noob formerly known as Jakob
 
Serp's Avatar
 
Join Date: Jan 2005
Posts: 316
Default

Quote:
Originally Posted by Marcus247
Where do I add this peice of code so I can use the defualt "[" command perfix?

Code:
	public override void DoSpeech( string text, int[] keywords, MessageType type, int hue ) 
	{ 
		if ( (int)type == 0x0F ) // If the message is of type GM 
		text = String.Format( "{0}{1}", Commands.CommandPrefix, text ); // then add the prefix to it 
		base.DoSpeech( text, keywords, type, hue ); // Process the same way as always 
	}
Crazy UO World
You need a core mod for it though so you won't get help in the forums after applying it.
Serp 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