Examples of SocialAction


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

      {
        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

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

        {
          targetPlayer.setNoble(true);
          targetPlayer.sendMessage("You are now a noblesse.");
          updateDatabase(targetPlayer, true);
          sendMessages(true, targetPlayer, activeChar, true, true);
          targetPlayer.broadcastPacket(new SocialAction(targetPlayer.getObjectId(), 16));
        }
        else
        {
          targetPlayer.setNoble(false);
          targetPlayer.sendMessage("You are no longer a noblesse.");
View Full Code Here

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

        }
        else
        {
          // Send a Server->Client packet SocialAction to the all L2PcInstance on the _knownPlayer of the L2NpcInstance
          // to display a social action of the L2GuardInstance on their client
          SocialAction sa = new SocialAction(getObjectId(), Rnd.nextInt(8));
          broadcastPacket(sa);
          sa = null;

          // Open a chat window on client with the text of the L2GuardInstance
          showChatWindow(player, 0);
View Full Code Here

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

      player.sendPacket(new ValidateLocation(this));
    }
    else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false))
    {
      //SocialAction sa = new SocialAction(this, Rnd.get(8));
      player.broadcastPacket(new SocialAction(player.getObjectId(), 8));
      //broadcastPacket(sa);
      //player.setCurrentFolkNPC(this);
      showMessageWindow(player);
      player.sendPacket(ActionFailed.STATIC_PACKET);
    }
View Full Code Here

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

    // Rebirth Caller - if player has any skills, they will be granted them.
    if(Config.REBIRTH_ENABLE)
       L2Rebirth.getInstance().grantRebirthSkills(this);
   
    broadcastPacket(new SocialAction(getObjectId(), 15));
    sendPacket(new SkillCoolTime(this));
       
    if (getClan() != null)
      getClan().broadcastToOnlineMembers(new PledgeShowMemberListUpdate(this));
    //decayMe();
View Full Code Here

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

              @Override
              public void run()
              {
                teleToLocation(TvT._teamsX.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsY.get(TvT._teams.indexOf(_teamNameTvT)), TvT._teamsZ.get(TvT._teams.indexOf(_teamNameTvT)), false);
                doRevive();
                broadcastPacket(new SocialAction(getObjectId(), 15));
              }
            }, Config.TVT_REVIVE_DELAY);
          }
        }
        else if (_inEventCTF)
View Full Code Here

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

      {
        if(player != null)
        {
          if(!player._teamNameTvT.equals(teamName))
          {
            player.broadcastPacket(new SocialAction(player.getObjectId(), 7));
          }
          else if(player._teamNameTvT.equals(teamName))
          {
            player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
          }
        }
      }
    }
   
View Full Code Here

Examples of l2p.gameserver.serverpackets.SocialAction

    {
      return;
    }
    if(System.currentTimeMillis() - _lastSocialAction > 10000)
    {
      broadcastPacket(new SocialAction(getObjectId(), 2));
    }
    _lastSocialAction = System.currentTimeMillis();
    player.sendActionFailed();
    String filename = "";
    if(getNpcId() >= 31370 && getNpcId() <= 31376 && player.getVarka() > 0 || getNpcId() >= 31377 && getNpcId() < 31384 && player.getKetra() > 0)
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.SocialAction

        pc.specialCamera(target, dist, yaw, pitch, time, duration);
      }
      else
        pc.leaveMovieMode();
    if(socialAction > 0 && socialAction < 5)
      target.broadcastPacket(new SocialAction(target.getObjectId(), socialAction));
  }
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.SocialAction

        if (door.getDoorName().startsWith("Anteroom")){
                  if (openChance > 0 && Rnd.get(100) < openChance) {
                    activeChar.sendMessage("You opened Anterooms Door.");
                    door.openMe();
                    door.onOpen(); // Closes the door after 60sec
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
                  }
                  else {
                    //test with: activeChar.sendPacket(new SystemMessage(SystemMessage.FAILED_TO_UNLOCK_DOOR));
                    activeChar.sendMessage("You failed to open Anterooms Door.");
                    activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
                PlaySound playSound = new PlaySound("interfacesound.system_close_01");
                activeChar.sendPacket(playSound);
                  }
        }
        else{
          activeChar.sendMessage("Incorrect Door.");
        }
        break;
    case 8274: //Chapelkey, Capel Door has a Gatekeeper?? I use this key for Altar Entrance
      if (door.getDoorName().startsWith("Altar_Entrance")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
                activeChar.sendMessage("You opened Altar Entrance.");
                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
                activeChar.sendMessage("You failed to open Altar Entrance.");
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
            PlaySound playSound = new PlaySound("interfacesound.system_close_01");
            activeChar.sendPacket(playSound);
              }
            }
      else{
        activeChar.sendMessage("Incorrect Door.");
      }
      break;
    case 8275: //Key of Darkness
      if (door.getDoorName().startsWith("Door_of_Darkness")){
              if (openChance > 0 && Rnd.get(100) < openChance) {
                activeChar.sendMessage("You opened Door of Darkness.");
                door.openMe();
                door.onOpen();
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
              }
              else {
                activeChar.sendMessage("You failed to open Door of Darkness.");
                activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 13));
            PlaySound playSound = new PlaySound("interfacesound.system_close_01");
            activeChar.sendPacket(playSound);
              }
            }
      else{
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.