Package com.l2jfrozen.gameserver.network.serverpackets

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


        }
        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

      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

    // 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

              @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

      {
        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

      switch(getTemplate().npcId)
      {
        case 12372: //baium
        {
          SocialAction sa = new SocialAction(getObjectId(), 2);
          broadcastPacket(sa);
          sa = null;
        }
      }
    }
View Full Code Here

          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 and Chapel_Door
        if (door.getDoorName().startsWith("Altar_Entrance") || door.getDoorName().startsWith("Chapel_Door"))
        {
          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

        L2PcInstance character = L2World.getInstance().getPlayer(it.next().toString());
        character.setCurrentHpMp(character.getMaxHp(), character.getMaxMp());
        character.setCurrentCp(character.getMaxCp());

        Revive revive = new Revive(character);
        SocialAction sa = new SocialAction(character.getObjectId(), 15);
        character.broadcastPacket(sa);
        character.sendPacket(sa);
        character.sendPacket(revive);
        character.broadcastPacket(revive);
View Full Code Here

      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
    if (itemId == 8192 && Frintezza.getObjectId() == 29045)
    {
      Frintezza.broadcastPacket(new SocialAction(Frintezza.getObjectId(), 2));
      playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
    }
  }
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.