Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.ExDuelUpdateUserInfo


        temp.cancelActiveTrade();
        temp.setIsInDuel(_duelId);
        temp.setTeam(1);
        //temp.broadcastStatusUpdate();
        temp.broadcastUserInfo();
        broadcastToTeam2(new ExDuelUpdateUserInfo(temp));
      }
      for(L2PcInstance temp : _playerB.getParty().getPartyMembers())
      {
        temp.cancelActiveTrade();
        temp.setIsInDuel(_duelId);
        temp.setTeam(2);
        //temp.broadcastStatusUpdate();
        temp.broadcastUserInfo();
        broadcastToTeam1(new ExDuelUpdateUserInfo(temp));
      }

      // Send duel Start packets
      ExDuelReady ready = new ExDuelReady(1);
      ExDuelStart start = new ExDuelStart(1);

      broadcastToTeam1(ready);
      broadcastToTeam2(ready);
      broadcastToTeam1(start);
      broadcastToTeam2(start);

      ready = null;
      start = null;
    }
    else
    {
      // set isInDuel() state
      _playerA.setIsInDuel(_duelId);
      _playerA.setTeam(1);
      _playerB.setIsInDuel(_duelId);
      _playerB.setTeam(2);

      // Send duel Start packets
      ExDuelReady ready = new ExDuelReady(0);
      ExDuelStart start = new ExDuelStart(0);

      broadcastToTeam1(ready);
      broadcastToTeam2(ready);
      broadcastToTeam1(start);
      broadcastToTeam2(start);

      broadcastToTeam1(new ExDuelUpdateUserInfo(_playerB));
      broadcastToTeam2(new ExDuelUpdateUserInfo(_playerA));
      //_playerA.broadcastStatusUpdate();
      //_playerB.broadcastStatusUpdate();
      _playerA.broadcastUserInfo();
      _playerB.broadcastUserInfo();
View Full Code Here


        }
      }
    } 
    if(isInDuel())
    {
      ExDuelUpdateUserInfo update = new ExDuelUpdateUserInfo(this);
      DuelManager.getInstance().broadcastToOppositTeam(this, update);
      update = null;
    }
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ExDuelUpdateUserInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.