Package com.l2jfrozen.gameserver.network.serverpackets

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


    _player.sendPacket(new ItemList(_player, false));

    // Refresh player stats
    _player.broadcastUserInfo();

    SocialAction atk = new SocialAction(_player.getObjectId(), 17);

    _player.broadcastPacket(atk);

    sm = new SystemMessage(SystemMessageId.THE_OWNER_OF_S2_HAS_APPEARED_IN_THE_S1_REGION);
    sm.addZoneName(_player.getX(), _player.getY(), _player.getZ()); // Region Name
View Full Code Here


      {
        activeChar.sendMessage("You Are Already A Hero!.");
      }
      else
      {
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16));
        activeChar.setHero(true);
        updateDatabase(activeChar, Config.HERO_CUSTOM_DAY * 24L * 60L * 60L * 1000L);
        activeChar.sendMessage("You Are Now a Hero,You Are Granted With Hero Status , Skills ,Aura.");
        activeChar.broadcastUserInfo();
        playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
View Full Code Here

        if (obj instanceof L2PcInstance)
        {
          if (Util.checkIfInRange(10000, npc, obj, true))
          {
            ((L2Character) obj).sendPacket(new PlaySound(1, "B03_A", 1, npc.getObjectId(), 212852, -114842, -1632));
            ((L2Character) obj).sendPacket(new SocialAction(npc.getObjectId(), 3));
          }
        }
      }
    }
    return;
View Full Code Here

          // Notify the L2PcInstance AI with AI_INTENTION_INTERACT
          player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
        }
        else
        {
          SocialAction sa = new SocialAction(getObjectId(), Rnd.nextInt(8));
          broadcastPacket(sa);
          sendPacket(sa);
          showChatWindow(player, 0);
          sa = null;
        }
View Full Code Here

   * @param text
   */
  public void setAway(L2PcInstance activeChar, String text)
  {
    activeChar.set_awaying(true);
    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 9));
    activeChar.sendMessage("Your status is Away in " + Config.AWAY_TIMER + " Sec.");
    activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    SetupGauge sg = new SetupGauge(SetupGauge.BLUE, Config.AWAY_TIMER * 1000);
    activeChar.sendPacket(sg);
    sg = null;
View Full Code Here

      return;

    if(_partyDuel && looser.getParty() != null)
    {
      for (L2PcInstance temp : looser.getParty().getPartyMembers())
        temp.broadcastPacket(new SocialAction(temp.getObjectId(), 7));
    }
    else
    {
      looser.broadcastPacket(new SocialAction(looser.getObjectId(), 7));
    }

    looser = null;
  }
View Full Code Here

       * case CHECK_QA_ZONE:{ int loc_x = -21610; int loc_y = 181594; int loc_z = -5734; if(!npc.isInsideRadius(loc_x,loc_y,3000,false)){ npc.teleToLocation(loc_x, loc_y, loc_z); } startQuestTimer("CHECK_MINIONS_ZONE", 1000, npc, null); } break;
       */
            case ACTION: {
                if (Rnd.get(3) == 0) {
                    if (Rnd.get(2) == 0) {
                        npc.broadcastPacket(new SocialAction(npc.getObjectId(), 3));
                    } else {
                        npc.broadcastPacket(new SocialAction(npc.getObjectId(), 4));
                    }
                }
        /*
         * if(Math.abs(npc.getX() + 21610) > 1000 || Math.abs(npc.getY() - 181594) > 2500) { ((L2Attackable) npc).clearAggroList(); npc.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE); npc.teleToLocation(-21610, 181594, -5740); }
         */
 
View Full Code Here

   */
  public void displayCongrats(L2PcInstance player)
  {
    // Victory Social Action.
    player.setTarget(player);
    player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
    player.sendMessage("Congratulations " + player.getName() + ". You have been REBORN!");
  }
View Full Code Here

      {
        DoorTable.getInstance().getDoor(23150003).openMe();
        DoorTable.getInstance().getDoor(23150004).openMe();
        DoorTable.getInstance().getDoor(23150003).onOpen();
        DoorTable.getInstance().getDoor(23150004).onOpen();
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
        LAST_OPEN = System.currentTimeMillis();
      }
    }
    activeChar = null;
  }
View Full Code Here

      {
        qs.getQuest().notifyEvent("CE40", null, getActiveChar());
      }

      getActiveChar().setCurrentCp(getMaxCp());
      getActiveChar().broadcastPacket(new SocialAction(getActiveChar().getObjectId(), 15));
      getActiveChar().sendPacket(new SystemMessage(SystemMessageId.YOU_INCREASED_YOUR_LEVEL));
     
      if (getActiveChar().isInRaidEvent())
      {
        if (getActiveChar()._inEventRaid && Raid._maxlvl == getLevel() && !Raid._started)
View Full Code Here

TOP

Related Classes of com.l2jfrozen.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.