Package com.l2jfrozen.gameserver.network.serverpackets

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


    {
      if(_FirstAttacked)
      {
        if(Rnd.get(100) == 0)
        {
          npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), "Removing intruders."));
        }
      }
      else
      {
        _FirstAttacked = true;
        npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), "A non-permitted target has been discovered."));
        npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), "Starting intruder removal system."));
      }
    }
    return super.onAttack(npc, attacker, damage, isPet);
  }
View Full Code Here


    String name = npc.getName();
    if(npcId == CORE)
    {
      int objId = npc.getObjectId();
      npc.broadcastPacket(new PlaySound(1, "BS02_D", 1, objId, npc.getX(), npc.getY(), npc.getZ()));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "A fatal error has occurred."));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "System is being shut down..."));
      npc.broadcastPacket(new CreatureSay(objId, 0, name, "......"));
      _FirstAttacked = false;
     
      if(!npc.getSpawn().is_customBossInstance()){
       
        addSpawn(31842, 16502, 110165, -6394, 0, false, 900000);
View Full Code Here

    if (Util.contains(mobs1,npc.getNpcId()) && !npc.isInCombat() && npc.getTarget() == null)
    {
      if (player.getActiveWeaponInstance() != null && !player.isSilentMoving())
      {
        npc.setTarget(player);
        npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(),  text[0]));
       
        switch (npc.getNpcId())
        {
          case 22124:
          case 22126:
View Full Code Here

          }
         
          if (target.getActiveWeaponInstance() != null && !npc.isInCombat() && npc.getTarget() == null)
          {
            npc.setTarget(target);
            npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(),  text[0]));
            switch (npc.getNpcId())
            {
              case 22124:
              case 22126:
              case 22127:
View Full Code Here

   
    if (Util.contains(mobs2,npc.getNpcId()))
    {
      if (skill.getSkillType() == SkillType.AGGDAMAGE)
      {
        npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(),  text[Rnd.get(2)+1].replace("name", player.getName())));
        ((L2Attackable) npc).addDamageHate(player, 0, 999);
        npc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
     
      }
    }
View Full Code Here

            if (_firstCommandChannelAttacked != null)
            {
              _commandChannelTimer = new CommandChannelTimer(this);
              _commandChannelLastAttack = System.currentTimeMillis();
              ThreadPoolManager.getInstance().scheduleGeneral(_commandChannelTimer, 10000); // check for last attack
              _firstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, "", "You have looting rights!")); //TODO: retail msg
            }
          }
        }
      }
      else if (attacker.getParty().getCommandChannel().equals(_firstCommandChannelAttacked)) //is in same channel
View Full Code Here

      {
        if (Rnd.get(100) <= monster.getChance() * Config.RATE_DROP_QUEST)
        {
          if (monster.getMessage() != 0)
          {
            npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), Message[Rnd.get(monster.getMessage())]));
          }
          npc.onDecay();
          L2Attackable newNpc = (L2Attackable) this.addSpawn(monster.getIdPoly(), npc);
          L2Character originalAttacker = isPet ? attacker.getPet() : attacker;
          newNpc.setRunning();
View Full Code Here

    {
      if (npc.getNpcId() == monster.getId())
      {
        if (monster.getMessage() != 0)
        {
          npc.broadcastPacket(new CreatureSay(npc.getObjectId(), 0, npc.getName(), Message[Rnd.get(monster.getMessage())]));
        }
        L2Attackable newNpc = (L2Attackable) this.addSpawn(monster.getIdPoly(), npc);
        L2Character originalAttacker = isPet ? killer.getPet() : killer;
        newNpc.setRunning();
        newNpc.addDamageHate(originalAttacker, 0, 999);
View Full Code Here

   *
   * @return CreatureSay message
   */
  protected CreatureSay getXMasMessage()
  {
    CreatureSay cs = new CreatureSay(0, 17, getRandomSender(), getRandomXMasMessage());
    return cs;
  }
View Full Code Here

            }
          }
          minions = null;
          if(npcId == 20767)
          {
            npc.broadcastPacket(new CreatureSay(npcObjId, 0, npc.getName(), "Come out, you children of darkness!"));
          }
        }
      }
    }
    if(_attackersList.get(npcObjId) != null)
View Full Code Here

TOP

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

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.