Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.broadcastPacket()


        {
          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


      }
    }

    if(!targets.isEmpty())
    {
      caster.broadcastPacket(new MagicSkillLaunched(caster, getSkill().getDisplayId(), getSkill().getLevel(), targets.toArray(new L2Character[targets.size()])));
      for(L2Character target : targets)
      {
        boolean mcrit = Formulas.calcMCrit(caster.getMCriticalHit(target, getSkill()));
        int mdam = (int) Formulas.calcMagicDam(caster, target, getSkill(), sps, bss, mcrit);
View Full Code Here

      if (target != null && !player.isSitting() && target instanceof L2StaticObjectInstance && ((L2StaticObjectInstance) target).getType() == 1 && CastleManager.getInstance().getCastle(target) != null && player.isInsideRadius(target, L2StaticObjectInstance.INTERACTION_DISTANCE, false, false))
      {
        ChairSit cs = new ChairSit(player, ((L2StaticObjectInstance) target).getStaticObjectId());
        player.sendPacket(cs);
        player.sitDown();
        player.broadcastPacket(cs);
      }

      if (_typeStand)
        player.standUp();
      else
View Full Code Here

        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);

        character = null;
View Full Code Here

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

        character = null;
        revive = null;
        sa = null;
      }
View Full Code Here

        L2PcInstance target = L2World.getInstance().getPlayer(it.next().toString());
        target.getPoly().setPolyInfo("npc", id);
        target.teleToLocation(target.getX(), target.getY(), target.getZ(), true);

        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);

        UserInfo info2 = new UserInfo(target);
        target.sendPacket(info2);

        target = 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.");
View Full Code Here

          }
          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
View Full Code Here

        target.getPoly().setPolyInfo(null, "1");
        target.decayMe();
        target.spawnMe(target.getX(), target.getY(), target.getZ());

        CharInfo info1 = new CharInfo(target);
        target.broadcastPacket(info1);

        UserInfo info2 = new UserInfo(target);
        target.sendPacket(info2);

        target = null;
View Full Code Here

          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));
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.