コード例 #1
0
 public static byte[] SendGuildChangeMemberTitle(Guild g, GuildMember m, GuildMemberError e)
 {
     Packet p = new Packet(20);
     p.WriteByte((byte)e); // error proly
     if (e == GuildMemberError.Success)
     {
         p.WriteInt(g.ID);
         p.WriteInt(m.Character.CharacterId);
         p.WriteString(m.Title);
     }
     else
     {
         p.WriteInt(0);
         p.WriteInt(0);
         p.WriteString("");
     }
     return p.GetWrittenBuffer(PacketIds.SendGuildChangeMemberTitle);
 }
コード例 #2
0
 public static byte[] SendGuildChangeMemberRank(GuildMember m, GuildMemberError e)
 {
     Packet p = new Packet(20);
     p.WriteByte((byte)e);
     if (e == GuildMemberError.Success)
     {
         p.WriteInt(m.Character.CharacterId);
         p.WriteInt((int)m.Rank);
     }
     else
     {
         p.WriteInt(0);
         p.WriteInt(0);
     }
     return p.GetWrittenBuffer(PacketIds.SendGuildChangeMemberRank);
 }