Work-around to make RunUO accept commands from the GM: prompt
I don't want to call this "fix" as the GM: prompt might show up to be something else than a thing for us to enter commands with.
Core
Network/PacketHandlers.cs
Add the line in red to the MessageType enum:
Scripts
PlayerMobile.cs
Add the lines in red to the PlayerMobile class:
I don't want to call this "fix" as the GM: prompt might show up to be something else than a thing for us to enter commands with.
Core
Network/PacketHandlers.cs
Add the line in red to the MessageType enum:
Code:
public enum MessageType
{
Regular = 0x00,
System = 0x01,
Emote = 0x02,
Label = 0x06,
Focus = 0x07,
Whisper = 0x08,
Yell = 0x09,
Spell = 0x0A,
Encoded = 0xC0,
[COLOR=Red]GM = 0x0F,[/COLOR]
}
Scripts
PlayerMobile.cs
Add the lines in red to the PlayerMobile class:
Code:
public class PlayerMobile : Mobile
{
[COLOR=Red]public override void DoSpeech( string text, int[] keywords, MessageType type, int hue )
{
if ( type == MessageType.GM ) // 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
}[/COLOR]