Ejemplo n.º 1
0
 public static void DoPositions(UOAMPacketReader reader)
 {
     try
     {
         int num = reader.ReadInt32();
         if (num != 0)
         {
             if (reader.ReadInt32() != 1)
             {
                 m_Log = true;
             }
             if (reader.ReadInt32() != num)
             {
                 m_Log = true;
             }
             for (int i = 0; i < num; i++)
             {
                 string name = reader.ReadString(0x4f);
                 int    num3 = reader.ReadByte();
                 int    x    = reader.ReadInt32();
                 int    y    = reader.ReadInt32();
                 int    num6 = reader.ReadInt32();
                 if (name != m_Username)
                 {
                     GRadar.AddTag(x, y, name);
                 }
             }
         }
     }
     catch
     {
         Disconnect();
     }
 }
Ejemplo n.º 2
0
 public static void DoChat(UOAMPacketReader reader)
 {
     try
     {
         int num = reader.ReadInt32();
         for (int i = 0; i < num; i++)
         {
             if (reader.ReadInt32() == 0)
             {
                 return;
             }
             int length = reader.ReadInt32();
             if (reader.ReadInt32() != 0)
             {
                 m_Log = true;
             }
             if (reader.ReadInt32() != length)
             {
                 m_Log = true;
             }
             string str = reader.ReadString(length);
             reader.Align(4);
             length = reader.ReadInt32();
             int num3 = reader.ReadInt32();
             if (reader.ReadInt32() != length)
             {
                 m_Log = true;
             }
             string str2 = reader.ReadString(length);
             if ((str.Length > 0) && (str2.Length > 0))
             {
                 Engine.AddTextMessage(string.Format("{0}: {1}", str, str2), Engine.DefaultFont, Hues.Load(0x59));
             }
         }
     }
     catch
     {
         Disconnect();
     }
 }
Ejemplo n.º 3
0
 public static void DoPositions(UOAMPacketReader reader)
 {
     try
     {
         int num = reader.ReadInt32();
         if (num != 0)
         {
             if (reader.ReadInt32() != 1)
             {
                 m_Log = true;
             }
             if (reader.ReadInt32() != num)
             {
                 m_Log = true;
             }
             for (int i = 0; i < num; i++)
             {
                 string name = reader.ReadString(0x4f);
                 int num3 = reader.ReadByte();
                 int x = reader.ReadInt32();
                 int y = reader.ReadInt32();
                 int num6 = reader.ReadInt32();
                 if (name != m_Username)
                 {
                     GRadar.AddTag(x, y, name);
                 }
             }
         }
     }
     catch
     {
         Disconnect();
     }
 }
Ejemplo n.º 4
0
 public static void DoChat(UOAMPacketReader reader)
 {
     try
     {
         int num = reader.ReadInt32();
         for (int i = 0; i < num; i++)
         {
             if (reader.ReadInt32() == 0)
             {
                 return;
             }
             int length = reader.ReadInt32();
             if (reader.ReadInt32() != 0)
             {
                 m_Log = true;
             }
             if (reader.ReadInt32() != length)
             {
                 m_Log = true;
             }
             string str = reader.ReadString(length);
             reader.Align(4);
             length = reader.ReadInt32();
             int num3 = reader.ReadInt32();
             if (reader.ReadInt32() != length)
             {
                 m_Log = true;
             }
             string str2 = reader.ReadString(length);
             if ((str.Length > 0) && (str2.Length > 0))
             {
                 Engine.AddTextMessage(string.Format("{0}: {1}", str, str2), Engine.DefaultFont, Hues.Load(0x59));
             }
         }
     }
     catch
     {
         Disconnect();
     }
 }