FriendInviteTarget() 공개 정적인 메소드

public static FriendInviteTarget ( character c ) : byte[]
c character
리턴 byte[]
예제 #1
0
파일: Friends.cs 프로젝트: uvbs/DarkEmu
 /////////////////////////////////////////////////////////////////////////////////
 // Add new friend
 /////////////////////////////////////////////////////////////////////////////////
 void FriendAdd()
 {
     try
     {
         PacketReader reader     = new PacketReader(PacketInformation.buffer);
         short        namelenght = reader.Int16();
         string       name       = reader.String(namelenght);
         reader.Close();
         if (name == Character.Information.Name)
         {
             return;
         }
         Systems sys = GetPlayerName(name);
         if (sys != null)
         {
             sys.client.Send(Packet.FriendInviteTarget(sys.Character));
         }
         else
         {
             //Packet cannot find user
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("Friend Add error {0}", ex);
         Systems.Debugger.Write(ex);
     }
 }