Alright i've been trying to do this for a little bit but am not doing very well, here is what I got.
And here is a test command I made:
But the message still comes out normal. Can you tell me what I'm doing wrong? Thank you.
Code:
public static void SendMSG(string Name, string Colors, string Message, ushort ChatType, uint Mesh) { try { foreach (DictionaryEntry DE in H_Chars) { Character C = (Character)DE.Value; C.MyClient.AddSend(Packets.ChatMessage(C.MyClient.MessageID, Name, "ALL", Message, ChatType, Mesh)); } } catch { } }
Code:
static class Colors { public const uint Black = 0x00000000, White = 0x00FFFFFF, Red = 0x00FF0000, Blue = 0x0000FF00, Green = 0x000000FF, Yellow = 0x00FFFF00, Pink = 0x00FF00FF, Teal = 0x0000FFFF; }
Code:
if (Cmd[0] == "/testmsg") { Game.World.SendMSG("GM", Colors.Red, "Test Test Test Test Test Test Test Test", 2011, 0); }