예제 #1
0
 public override void run()
 {
     try
     {
         Account player = this._client._player;
         if (player == null)
         {
             return;
         }
         Match match = player._match;
         if (match != null && player.matchSlot == match._leader)
         {
             match.formação = this.formacao;
             using (CLAN_WAR_MATCH_UPTIME_PAK warMatchUptimePak = new CLAN_WAR_MATCH_UPTIME_PAK(0U, this.formacao))
                 match.SendPacketToPlayers((SendPacket)warMatchUptimePak);
         }
         else
         {
             this._client.SendPacket((SendPacket) new CLAN_WAR_MATCH_UPTIME_PAK(2147483648U, 0));
         }
     }
     catch (Exception ex)
     {
         Logger.info(ex.ToString());
     }
 }
예제 #2
0
 public override void run()
 {
     try
     {
         Account p = _client._player;
         if (p == null)
         {
             return;
         }
         Match mt = p._match;
         if (mt != null && p.matchSlot == mt._leader)
         {
             mt.formação = formacao;
             using (CLAN_WAR_MATCH_UPTIME_PAK packet = new CLAN_WAR_MATCH_UPTIME_PAK(0, formacao))
                 mt.SendPacketToPlayers(packet);
         }
         else
         {
             _client.SendPacket(new CLAN_WAR_MATCH_UPTIME_PAK(0x80000000));
         }
     }
     catch (Exception ex)
     {
         SaveLog.fatal(ex.ToString());
         Printf.b_danger("[CLAN_WAR_UPTIME_REC.run] Erro fatal!");
     }
 }