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

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


        {
          targetPlayer.setDonator(true);
          targetPlayer.updateNameTitleColor();
          updateDatabase(targetPlayer, true);
          sendMessages(true, targetPlayer, activeChar, false, true);
          targetPlayer.broadcastPacket(new SocialAction(targetPlayer.getObjectId(), 16));
          targetPlayer.broadcastUserInfo();
        }
        else
        {
          targetPlayer.setDonator(false);
View Full Code Here


    if(activeChar == null)
      return;

    L2BoatInstance boat = BoatManager.getInstance().GetBoat(_id);
    GetOffVehicle Gon = new GetOffVehicle(activeChar, boat, _x, _y, _z);
    activeChar.broadcastPacket(Gon);
  }

  @Override
  public String getType()
  {
View Full Code Here

      return;

    GetOnVehicle Gon = new GetOnVehicle(activeChar, boat, _x, _y, _z);
    activeChar.setInBoatPosition(new Point3D(_x, _y, _z));
    activeChar.getPosition().setXYZ(boat.getPosition().getX(), boat.getPosition().getY(), boat.getPosition().getZ());
    activeChar.broadcastPacket(Gon);
    activeChar.revalidateZone(true);

  }

  @Override
View Full Code Here

              else
                sendPacket(new ValidateLocation(activeChar));
             
             
            }else if(diffSq > activeChar.getStat().getMoveSpeed())
              activeChar.broadcastPacket(new CharMoveToLocation(activeChar));
           
           
            finalZ = activeChar.getPosition().getZ();
          }
         
View Full Code Here

    {
      getClient().getActiveChar().sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    player.broadcastPacket(new StopRotation(player, _degree, 0));
  }

  @Override
  public String getType()
  {
View Full Code Here

      {
        _log.fine("Social Action:" + _actionId);
      }

      SocialAction atk = new SocialAction(activeChar.getObjectId(), _actionId);
      activeChar.broadcastPacket(atk);
      /*
      // Schedule a social task to wait for the animation to finish
      ThreadPoolManager.getInstance().scheduleGeneral(new SocialTask(this), 2600);
      activeChar.setIsParalyzed(true);
      */
 
View Full Code Here

            if (!activeChar.getFloodProtectors().getItemPetSummon().tryPerformAction("mount"))
              return;
           

            Ride mount = new Ride(activeChar.getObjectId(), Ride.ACTION_MOUNT, pet.getTemplate().npcId);
            activeChar.broadcastPacket(mount);
            activeChar.setMountType(mount.getMountType());
            activeChar.setMountObjectID(pet.getControlItemId());
            pet.unSummon(activeChar);

            if(activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND) != null || activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_LRHAND) != null)
View Full Code Here

              }
             
              if(activeChar.setMountType(0))
              {
                Ride dismount = new Ride(activeChar.getObjectId(), Ride.ACTION_DISMOUNT, 0);
                activeChar.broadcastPacket(dismount);
                activeChar.setMountObjectID(0);
              }
            }
          }
        }
View Full Code Here

          }
         
          if(activeChar.setMountType(0))
          {
            Ride dismount = new Ride(activeChar.getObjectId(), Ride.ACTION_DISMOUNT, 0);
            activeChar.broadcastPacket(dismount);
            activeChar.setMountObjectID(0);
           
            // Update status after unmount to avoid visual bug
            activeChar.broadcastStatusUpdate();
            activeChar.broadcastUserInfo();
View Full Code Here

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

        if(activeChar.isSitting() || activeChar.isFakeDeath())
        {
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.