Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SystemMessage2


        _player.teleToLocation(Rnd.get(waitLocs));
        _player.doRevive();
      }
      else
      {
        _player.sendPacket(new SystemMessage2(SystemMsg.RESURRECTION_WILL_TAKE_PLACE_IN_THE_WAITING_ROOM_AFTER_S1_SECONDS).addInteger(_seconds));
        _ressurectTask = ThreadPoolManager.getInstance().schedule(this, 1000L);
      }
    }
View Full Code Here


        List<DuelSnapshotObject> lossers = getObjects(_winner.revert().name());
       
        DuelSnapshotObject winner = CollectionUtils.safeGet(winners, 0);
        if (winner != null)
        {
          sendPacket(new SystemMessage2(SystemMsg.C1S_PARTY_HAS_WON_THE_DUEL).addName(winners.get(0).getPlayer()));
         
          for (DuelSnapshotObject d : lossers)
          {
            d.getPlayer().broadcastPacket(new SocialAction(d.getPlayer().getObjectId(), SocialAction.BOW));
          }
View Full Code Here

    Request request = new Request(Request.L2RequestType.DUEL, player, target).setTimeout(10000L);
    request.set("duelType", 1);
    player.setRequest(request);
    target.setRequest(request);
   
    player.sendPacket(new SystemMessage2(SystemMsg.C1S_PARTY_HAS_BEEN_CHALLENGED_TO_A_DUEL).addName(target));
    target.sendPacket(new SystemMessage2(SystemMsg.C1S_PARTY_HAS_CHALLENGED_YOUR_PARTY_TO_A_DUEL).addName(player), new ExDuelAskStart(player.getName(), 1));
  }
View Full Code Here

      tie();
    }
    _team1.saveNobleData();
    _team2.saveNobleData();
    broadcastRelation();
    broadcastPacket(new SystemMessage2(SystemMsg.YOU_WILL_BE_MOVED_BACK_TO_TOWN_IN_S1_SECONDS).addInteger(20), true, true);
  }
View Full Code Here

          }
        }
      }
    }
    broadcastPacket(packet, true, false);
    broadcastPacket(new SystemMessage2(SystemMsg.CONGRATULATIONS_C1_YOU_WIN_THE_MATCH).addString(winnerTeam.getName()), false, true);
    Log.add("Olympiad Result: " + winnerTeam.getName() + " vs " + looseTeam.getName() + " ... (" + (int) winnerTeam.getDamage() + " vs " + (int) looseTeam.getDamage() + ") " + winnerTeam.getName() + " win " + pointDiff + " points", "olympiad");
  }
View Full Code Here

      getResidence().changeOwner(null);
      addObject(ATTACKERS, new SiegeClanObject(ATTACKERS, _oldOwner, 0));
    }
    if (getObjects(ATTACKERS).size() == 0)
    {
      broadcastInZone2(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_HAS_BEEN_CANCELED_DUE_TO_LACK_OF_INTEREST).addResidenceName(getResidence()));
      reCalcNextTime(false);
      return;
    }
    SiegeClanDAO.getInstance().delete(getResidence());
    updateParticles(true, ATTACKERS);
    broadcastTo(new SystemMessage2(SystemMsg.THE_SIEGE_TO_CONQUER_S1_HAS_BEGUN).addResidenceName(getResidence()), ATTACKERS);
    super.startEvent();
  }
View Full Code Here

    Clan newOwner = getResidence().getOwner();
    if (newOwner != null)
    {
      newOwner.broadcastToOnlineMembers(PlaySound.SIEGE_VICTORY);
      newOwner.incReputation(1700, false, toString());
      broadcastTo(new SystemMessage2(SystemMsg.S1_CLAN_HAS_DEFEATED_S2).addString(newOwner.getName()).addResidenceName(getResidence()), ATTACKERS);
      broadcastTo(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_IS_FINISHED).addResidenceName(getResidence()), ATTACKERS);
    }
    else
    {
      broadcastTo(new SystemMessage2(SystemMsg.THE_SIEGE_OF_S1_HAS_ENDED_IN_A_DRAW).addResidenceName(getResidence()), ATTACKERS);
    }
    updateParticles(false, ATTACKERS);
    removeObjects(ATTACKERS);
    super.stopEvent(step);
    _oldOwner = null;
View Full Code Here

  @Override
  public void setRegistrationOver(boolean b)
  {
    if (b)
    {
      broadcastTo(new SystemMessage2(SystemMsg.THE_DEADLINE_TO_REGISTER_FOR_THE_SIEGE_OF_S1_HAS_PASSED).addResidenceName(getResidence()), ATTACKERS);
    }
    super.setRegistrationOver(b);
  }
View Full Code Here

   */
  @Override
  public void startEvent()
  {
    _oldOwner = getResidence().getOwner();
    broadcastInZone(new SystemMessage2(SystemMsg.THE_SIEGE_TO_CONQUER_S1_HAS_BEGUN).addResidenceName(getResidence()));
    super.startEvent();
  }
View Full Code Here

  {
    owner.getInventory().removeItem(_item);
    _item.setOwnerId(0);
    _item.setJdbcState(JdbcEntityState.UPDATED);
    _item.update();
    owner.sendPacket(new SystemMessage2(SystemMsg.YOU_HAVE_DROPPED_S1).addItemName(_item.getItemId()));
    _item.dropMe(null, _location);
    _item.setDropTime(0);
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.network.serverpackets.SystemMessage2

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.