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

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


    }
   
    if (activeChar.isFakeDeath())
    {
      activeChar.stopFakeDeath(null);
      activeChar.broadcastPacket(new Revive(activeChar));
      return;
    }
    else if (!activeChar.isAlikeDead())
    {
      _log.warning("Living player [" + activeChar.getName() + "] called RestartPointPacket! Ban this player!");
View Full Code Here


    {
      if (player.getBoat().getObjectId() == _boatId)
      {
        player.setInBoatPosition(new Point3D(_x, _y, _z));
        player.getPosition().setHeading(_heading);
        player.broadcastPacket(new StopMoveInVehicle(player, _boatId));
      }
    }
  }

  @Override
View Full Code Here

    {
      activeChar.setCurrentSkillWorldPosition(new Point3D(_x, _y, _z));

      // normally magicskilluse packet turns char client side but for these skills, it doesn't (even with correct target)
      activeChar.setHeading(Util.calculateHeadingFrom(activeChar.getX(), activeChar.getY(), _x , _y));
      activeChar.broadcastPacket(new ValidateLocation(activeChar));
      activeChar.useMagic(skill, _ctrlPressed, _shiftPressed);
    }
    else
    {
      sendPacket(ActionFailed.STATIC_PACKET);
View Full Code Here

    }
   
    player.sitDown();
    player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_BUY);
    player.broadcastUserInfo();
    player.broadcastPacket(new PrivateStoreMsgBuy(player));
  }
 
  @Override
  public String getType()
  {
View Full Code Here

    else
    {
      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_SELL);
    }
    player.broadcastUserInfo();
    player.broadcastPacket(new PrivateStoreMsgSell(player));
  }
 
  @Override
  public String getType()
  {
View Full Code Here

      player.setPrivateStoreType(L2PcInstance.STORE_PRIVATE_MANUFACTURE);
      player.sitDown();
      player.broadcastUserInfo();
      player.sendPacket(new RecipeShopMsg(player));
      player.broadcastPacket(new RecipeShopMsg(player));
    }
  }

  @Override
  public String getType()
View Full Code Here

          || _text.equalsIgnoreCase("hi"))
          && (!activeChar.isRunning()
              || !activeChar.isAttackingNow()
              || !activeChar.isCastingNow()
              || !activeChar.isCastingPotionNow()))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 2));
     
      if ((_text.equalsIgnoreCase("lol")
          || _text.equalsIgnoreCase("haha")
          || _text.equalsIgnoreCase("xaxa")
          || _text.equalsIgnoreCase("ghgh")
View Full Code Here

          || _text.equalsIgnoreCase("haha")
          || _text.equalsIgnoreCase("xaxa")
          || _text.equalsIgnoreCase("ghgh")
          || _text.equalsIgnoreCase("jaja"))
          && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow() || !activeChar.isCastingPotionNow()))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 10));
       
      if ((_text.equalsIgnoreCase("yes")
          || _text.equalsIgnoreCase("si")
          || _text.equalsIgnoreCase("yep"))
          && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()|| !activeChar.isCastingPotionNow()))
View Full Code Here

       
      if ((_text.equalsIgnoreCase("yes")
          || _text.equalsIgnoreCase("si")
          || _text.equalsIgnoreCase("yep"))
          && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()|| !activeChar.isCastingPotionNow()))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 6));
     
      if ((_text.equalsIgnoreCase("no")
          || _text.equalsIgnoreCase("nop")
          || _text.equalsIgnoreCase("nope"))
          && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()|| !activeChar.isCastingPotionNow()))
View Full Code Here

     
      if ((_text.equalsIgnoreCase("no")
          || _text.equalsIgnoreCase("nop")
          || _text.equalsIgnoreCase("nope"))
          && (!activeChar.isRunning() || !activeChar.isAttackingNow() || !activeChar.isCastingNow()|| !activeChar.isCastingPotionNow()))
        activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 5));
   
    }
   
    // by Azagthtot
    PowerPak.getInstance().chatHandler(activeChar, _type, _text);
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.