Examples of CreatureSay


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

        //}
        //else
        //{
          //player.destroyItemByItemId("Quest", 8073, 1, player, true);
          GrandBossManager.getInstance().setBossStatus(FRINTEZZA, WAITING);
          player.sendPacket(new CreatureSay(0, Say2.SHOUT, "Frintezza", "Intruders! You dare to enter my Kingdom! you shall suffer!"));
          //sm = new CreatureSay(0, Say2.SHOUT, "");
          startQuestTimer("close", 27000, npc, null);
          startQuestTimer("camera_1", 30000, npc, null);
          _Zone.broadcastPacket(new Earthquake(getXFix(174232), getYFix(-88020), getZFix(-5116), 45, 27));
         
View Full Code Here

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

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

    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

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

    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

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

          }
         
          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

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

   
    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

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

            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

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

      {
        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

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

    {
      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

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

   *
   * @return CreatureSay message
   */
  protected CreatureSay getXMasMessage()
  {
    CreatureSay cs = new CreatureSay(0, 17, getRandomSender(), getRandomXMasMessage());
    return cs;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.