Exemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     Shown += (s, e) => GUIHelpers.Transitions.ShowForm(this, 1, 0.1, 10);
     GUIHelpers.DragControl dc = new GUIHelpers.DragControl(this);
     dc.Add(pnlHeader);
     btnExit.Click += (s, e) => Process.GetCurrentProcess().Kill();
     SetHandlers();
     SetDefaults();
     btnImage.Click += (s, e) =>
     {
         for (int i = 0; i < 6; i++)
         {
             char[] arr = new char[6] {
                 '#', '#', '#', '#', '#', '#'
             };
             arr[i] = '@';
             C_CHAT packet = new C_CHAT();
             packet.Message    = $"<FONT>{new string(arr)}</FONT>";
             packet.TextOffset = 10;
             packet.Channel    = Tera.Core.Game.ChatChannel.Global;
             PacketController.Send(packet);
         }
     };
 }
Exemplo n.º 2
0
 private static bool Handle_CChat(GameClient client, PacketDirection direction, C_CHAT packet)
 {
     packet.Message = "<FONT>Hello, World*</FONT>";
     return(true);
 }