Package l2p.gameserver.serverpackets

Examples of l2p.gameserver.serverpackets.NpcInfo


            _state.setState(EpicBossState.State.ALIVE);
            _state.update();
            _frintezzaDummy = spawn(new Location(174240, -89805, -5080, 16048, 29059));
            _overheadDummy = spawn(new Location(174232, -88020, -4000, 16384, 29059));
            _overheadDummy.setCollisionHeight(800);
            _overheadDummy.broadcastPacket(new NpcInfo(_overheadDummy, null));
            ThreadPoolManager.getInstance().scheduleGeneral(new Spawn(2), 1000);
            break;
          case 2:
            showSocialActionMovie(_overheadDummy, 0, 0, -75, 0, 0, 0);
            showSocialActionMovie(_overheadDummy, 1000, 90, -10, 6500, 8000, 0);
View Full Code Here


            weakScarlet.broadcastPacket(new SocialAction(weakScarlet.getObjectId(), 1));
            weakScarlet.setCurrentHp(weakScarlet.getMaxHp() * 3 / 4, false);
            weakScarlet.setRHandId(_frintezzasSwordId);
            for(L2Player pc : getPlayersInside())
            {
              pc.sendPacket(new NpcInfo(weakScarlet, pc));
            }
            ThreadPoolManager.getInstance().scheduleGeneral(new SecondMorph(3), 5500);
            break;
          case 3:
            weakScarlet.broadcastPacket(new SocialAction(weakScarlet.getObjectId(), 4));
View Full Code Here

      actor.setDisplayId(id);
      DeleteObject d = new DeleteObject(actor);
      L2GameServerPacket su = actor.makeStatusUpdate(StatusUpdate.CUR_HP, StatusUpdate.MAX_HP);
      for(L2Player player : L2World.getAroundPlayers(actor))
      {
        player.sendPacket(d, new NpcInfo(actor, player));
        if(player.getTarget() == actor)
        {
          player.setTarget(null);
          player.setTarget(actor);
          player.sendPacket(su);
View Full Code Here

        {
          ((L2Character) target).broadcastUserInfo(true);
        }
        else if(target.isNpc())
        {
          ((L2Character) target).broadcastPacket(new NpcInfo((L2NpcInstance) target, null));
        }
        activeChar.sendMessage("Changed name from " + oldName + " to " + newName + ".");
        break;
      case admin_setinvul:
        if(target == null || !target.isPlayer())
View Full Code Here

        {
          player.sendPacket(new PetInfo(this, 1));
        }
        else
        {
          player.sendPacket(new NpcInfo(this, player, 1));
        }
      }
    }
  }
View Full Code Here

        {
          player.sendPacket(new PetInfo(this, 1));
        }
        else
        {
          player.sendPacket(new NpcInfo(this, player, 1));
        }
      }
    }
  }
View Full Code Here

        if (isFlying()) // FIXME
        {
            return;
        }
        for (L2Player _cha : L2World.getAroundPlayers(this)) {
            _cha.sendPacket(new NpcInfo(this, _cha));
        }
    }
View Full Code Here

          trap.setDetected(true);
          for(L2Player player : L2World.getAroundPlayers(trap))
          {
            if(player != null)
            {
              player.sendPacket(new NpcInfo(trap, player));
            }
          }
        }
      }
    }
View Full Code Here

      owner.setTrainedBeast(this);
      for(L2Player player : L2World.getAroundPlayers(this))
      {
        if(player != null && _objectId != player.getObjectId())
        {
          player.sendPacket(new NpcInfo(this, player));
        }
      }
      // always and automatically follow the owner.
      getAI().setIntention(CtrlIntention.AI_INTENTION_FOLLOW, owner, Config.FOLLOW_RANGE);
      // instead of calculating this value each time, let's get this now and pass it on
View Full Code Here

TOP

Related Classes of l2p.gameserver.serverpackets.NpcInfo

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.