Package lineage2.gameserver.network.serverpackets

Examples of lineage2.gameserver.network.serverpackets.SocialAction


         }
         NpcInstance actor = getActor();
         int socialActionId = route.getSocialActionId();
         if (socialActionId >= 0)
         {
           actor.broadcastPacket(new L2GameServerPacket[] { new SocialAction(actor.getObjectId(), socialActionId) });
         }
         NpcString phrase = route.getPhrase();
         if (phrase != null)
         {
           Functions.npcSay(actor, phrase, new String[0]);
View Full Code Here


      return;
    }
    int socialActionId = action.getSocialActionId();
    if (socialActionId >= 0)
    {
      actor.broadcastPacket(new L2GameServerPacket[] { new SocialAction(actor.getObjectId(), socialActionId) });
    }
    NpcString phrase = action.getPhrase();
    if (phrase != null)
    {
      Functions.npcSay(actor, phrase, new String[0]);
View Full Code Here

      startQuestTimer("clean_npc", 4100, temp_npc);
      _isStarted = false;
    }
    else if ((event.equals("social1") || event.equals("social1_1")) && (temp_npc != null))
    {
      temp_npc.broadcastPacket(new SocialAction(temp_npc.getObjectId(), 1));
    }
    else if (event.equals("clean_npc") && (temp_npc != null))
    {
      temp_npc.deleteMe();
    }
View Full Code Here

     * Method runImpl.
     */
    @Override
    public void runImpl()
    {
      _npc.broadcastPacket(new SocialAction(_npc.getObjectId(), _action));
    }
View Full Code Here

     * Method runImpl.
     */
    @Override
    public void runImpl()
    {
      _npc.broadcastPacket(new SocialAction(_npc.getObjectId(), _action));
    }
View Full Code Here

          _state.setState(EpicBossState.State.ALIVE);
          _state.update();
          _socialTask = ThreadPoolManager.getInstance().schedule(new SpawnDespawn(2), 16);
          break;
        case 2:
          _valakas.broadcastPacket(new SocialAction(_valakas.getObjectId(), 1));
          for (Player pc : _players)
          {
            if (pc.getDistance(_valakas) <= _distance)
            {
              pc.enterMovieMode();
View Full Code Here

    _state.update();
    Log.add("Spawned Baium, awake by: " + awake_by, "bosses");
    setLastAttackTime();
    baium.startImmobilized();
    baium.broadcastPacket(new PlaySound(PlaySound.Type.MUSIC, "BS02_A", 1, 0, baium.getLoc()));
    baium.broadcastPacket(new SocialAction(baium.getObjectId(), 2));
    _socialTask = ThreadPoolManager.getInstance().schedule(new Social(baium, 3), 15000);
    ThreadPoolManager.getInstance().schedule(new EarthquakeTask(baium), 25000);
    _socialTask2 = ThreadPoolManager.getInstance().schedule(new Social(baium, 1), 25000);
    _killPcTask = ThreadPoolManager.getInstance().schedule(new KillPc(awake_by, baium), 26000);
    _callAngelTask = ThreadPoolManager.getInstance().schedule(new CallArchAngel(), 35000);
View Full Code Here

     * Method runImpl.
     */
    @Override
    public void runImpl()
    {
      final SocialAction sa = new SocialAction(_npc.getObjectId(), _action);
      _npc.broadcastPacket(sa);
    }
View Full Code Here

            }
          }
          _socialTask = ThreadPoolManager.getInstance().schedule(new AntharasSpawn(3), 3000);
          break;
        case 3:
          _antharas.broadcastPacket(new SocialAction(_antharas.getObjectId(), 1));
          for (Player pc : _players)
          {
            if (pc.getDistance(_antharas) <= _distance)
            {
              pc.enterMovieMode();
              pc.specialCamera(_antharas, 700, 13, 0, 6000, 20000, 0, 0, 0, 0);
            }
            else
            {
              pc.leaveMovieMode();
            }
          }
          _socialTask = ThreadPoolManager.getInstance().schedule(new AntharasSpawn(4), 10000);
          break;
        case 4:
          _antharas.broadcastPacket(new SocialAction(_antharas.getObjectId(), 2));
          for (Player pc : _players)
          {
            if (pc.getDistance(_antharas) <= _distance)
            {
              pc.enterMovieMode();
View Full Code Here

            return false;
          }
        }
        if ((target == null) || (target == activeChar))
        {
          activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), val));
        }
        else if (target.isCreature())
        {
          ((Creature) target).broadcastPacket(new SocialAction(target.getObjectId(), val));
        }
        break;
      case admin_abnormal:
        try
        {
View Full Code Here

TOP

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

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.