Exemple #1
0
 public void UpdateMemberInfo(MapClient client)
 {
     if (!this.Members.Contains(client))
     {
         return;
     }
     Packets.Server.PartyMemberInfo p1 = new SagaMap.Packets.Server.PartyMemberInfo();
     p1.SetIndex(1);
     p1.SetActorID(client.Char.id);
     p1.SetActorInfo(client.Char);
     foreach (MapClient c in this.Members)
     {
         c.netIO.SendPacket(p1, c.SessionID);
     }
 }
Exemple #2
0
 private void SendNewMemberInfoToOldMember(MapClient client)
 {
     Packets.Server.PartyNewMember p = new SagaMap.Packets.Server.PartyNewMember();
     p.SetIndex(1);
     p.SetActorID(client.Char.id);
     p.SetUnknown(1);
     p.SetName(client.Char.name);
     Packets.Server.PartyMemberInfo p1 = new SagaMap.Packets.Server.PartyMemberInfo();
     p1.SetIndex(1);
     p1.SetActorID(client.Char.id);
     p1.SetActorInfo(client.Char);
     foreach (MapClient c in this.Members)
     {
         c.netIO.SendPacket(p, c.SessionID);
         c.netIO.SendPacket(p1, c.SessionID);
     }
 }