Examples of ChairSit


Examples of com.l2jfrozen.gameserver.network.serverpackets.ChairSit

          break;
        }

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

Examples of com.l2jfrozen.gameserver.network.serverpackets.ChairSit

      if (player.getMountType() != 0) //prevent sit/stand if you riding
        return;

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

Examples of l2p.gameserver.serverpackets.ChairSit

          break;
        }
        int distance = (int) activeChar.getDistance(activeChar.getTarget());
        if(target != null && !activeChar.isSitting() && target instanceof L2StaticObjectInstance && ((L2StaticObjectInstance) target).getType() == 1 && distance <= L2Character.INTERACTION_DISTANCE)
        {
          ChairSit cs = new ChairSit(activeChar, ((L2StaticObjectInstance) target).getStaticObjectId());
          activeChar.sendPacket(cs);
          activeChar.sitDown();
          activeChar.broadcastPacket(cs);
          break;
        }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ChairSit

    {
      broadcastPacket(new ChangeWaitType(this, ChangeWaitType.WT_SITTING));
    }
    else
    {
      broadcastPacket(new ChairSit(this, throne));
    }
    _sittingObject = throne;
    setSitting(true);
    sittingTaskLaunched = true;
    ThreadPoolManager.getInstance().schedule(new EndSitDownTask(this), 2500);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.ChairSit

      list.add(isPolymorphed() ? new NpcInfoPoly(this) : new CharInfo(this));
    }
    list.add(new ExBR_ExtraUserInfo(this));
    if (isSitting() && (_sittingObject != null))
    {
      list.add(new ChairSit(this, _sittingObject));
    }
    if (getPrivateStoreType() != STORE_PRIVATE_NONE)
    {
      if (getPrivateStoreType() == STORE_PRIVATE_BUY)
      {
View Full Code Here

Examples of net.sf.l2j.gameserver.serverpackets.ChairSit

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

Examples of net.sf.l2j.gameserver.serverpackets.ChairSit

        && ((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);
    }
   
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.