Package com.l2jfrozen.gameserver.model.entity

Examples of com.l2jfrozen.gameserver.model.entity.Duel$ScheduleDuelTask


      }
    }

    engagedInPvP = null;

    Duel duel = new Duel(playerA, playerB, partyDuel, getNextDuelId());
    _duels.add(duel);

    duel = null;
  }
View Full Code Here


  public void doSurrender(L2PcInstance player)
  {
    if(player == null || !player.isInDuel())
      return;
    Duel duel = getDuel(player.getDuelId());
    duel.doSurrender(player);
    duel = null;
  }
View Full Code Here

   */
  public void onPlayerDefeat(L2PcInstance player)
  {
    if(player == null || !player.isInDuel())
      return;
    Duel duel = getDuel(player.getDuelId());
    if(duel != null)
    {
      duel.onPlayerDefeat(player);
    }
    duel = null;
  }
View Full Code Here

   */
  public void onBuff(L2PcInstance player, L2Effect buff)
  {
    if(player == null || !player.isInDuel() || buff == null)
      return;
    Duel duel = getDuel(player.getDuelId());
    if(duel != null)
    {
      duel.onBuff(player, buff);
    }
    duel = null;
  }
View Full Code Here

   */
  public void onRemoveFromParty(L2PcInstance player)
  {
    if(player == null || !player.isInDuel())
      return;
    Duel duel = getDuel(player.getDuelId());
    if(duel != null)
    {
      duel.onRemoveFromParty(player);
    }
    duel = null;
  }
View Full Code Here

   */
  public void broadcastToOppositTeam(L2PcInstance player, L2GameServerPacket packet)
  {
    if(player == null || !player.isInDuel())
      return;
    Duel duel = getDuel(player.getDuelId());

    if(duel == null)
      return;
    if(duel.getPlayerA() == null || duel.getPlayerB() == null)
      return;

    if(duel.getPlayerA() == player)
    {
      duel.broadcastToTeam2(packet);
    }
    else if(duel.getPlayerB() == player)
    {
      duel.broadcastToTeam1(packet);
    }
    else if(duel.isPartyDuel())
    {
      if(duel.getPlayerA().getParty() != null && duel.getPlayerA().getParty().getPartyMembers().contains(player))
      {
        duel.broadcastToTeam2(packet);
      }
      else if(duel.getPlayerB().getParty() != null && duel.getPlayerB().getParty().getPartyMembers().contains(player))
      {
        duel.broadcastToTeam1(packet);
      }
    }
    duel = null;
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.entity.Duel$ScheduleDuelTask

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.