Package lineage2.gameserver.model

Examples of lineage2.gameserver.model.Player.sitDown()


        Integer offset = (Integer) nextAction_arg1;
        clearNextAction();
        actor.moveToLocation(loc, offset, nextAction_arg2);
        break;
      case REST:
        actor.sitDown(null);
        break;
      case INTERACT:
        if (nextAction_arg0 == null)
        {
          return false;
View Full Code Here


    {
      manufacturer.setCreateList(createList);
      manufacturer.saveTradeList();
      manufacturer.setPrivateStoreType(Player.STORE_PRIVATE_MANUFACTURE);
      manufacturer.broadcastPacket(new RecipeShopMsg(manufacturer));
      manufacturer.sitDown(null);
      manufacturer.broadcastCharInfo();
    }
    manufacturer.sendActionFailed();
  }
}
View Full Code Here

    {
      seller.setSellList(_package, sellList);
      seller.saveTradeList();
      seller.setPrivateStoreType(_package ? Player.STORE_PRIVATE_SELL_PACKAGE : Player.STORE_PRIVATE_SELL);
      seller.broadcastPacket(new PrivateStoreMsgSell(seller));
      seller.sitDown(null);
      seller.broadcastCharInfo();
    }
    seller.sendActionFailed();
  }
}
View Full Code Here

    if (player.isMoving)
    {
      player.stopMove();
    }
    _isWereSitting = player.isSitting();
    player.sitDown(null);
  }
 
  /**
   * Method onExit.
   */
 
View Full Code Here

            }
            if (!activeChar.isSitting())
            {
              if ((target != null) && (target instanceof StaticObjectInstance) && (((StaticObjectInstance) target).getType() == 1) && (activeChar.getDistance3D(target) <= Creature.INTERACTION_DISTANCE))
              {
                activeChar.sitDown((StaticObjectInstance) target);
              }
              else
              {
                activeChar.sitDown(null);
              }
View Full Code Here

              {
                activeChar.sitDown((StaticObjectInstance) target);
              }
              else
              {
                activeChar.sitDown(null);
              }
            }
            else
            {
              activeChar.standUp();
View Full Code Here

    {
      buyer.setBuyList(buyList);
      buyer.saveTradeList();
      buyer.setPrivateStoreType(Player.STORE_PRIVATE_BUY);
      buyer.broadcastPacket(new PrivateStoreMsgBuy(buyer));
      buyer.sitDown(null);
      buyer.broadcastCharInfo();
    }
    buyer.sendActionFailed();
  }
}
View Full Code Here

              target.teleToLocation(Location.findPointToStay(target, AdminFunctions.JAIL_SPAWN, 50, 200), ReflectionManager.JAIL);
              if (activeChar.isInStoreMode())
              {
                activeChar.setPrivateStoreType(Player.STORE_PRIVATE_NONE);
              }
              target.sitDown(null);
              target.block();
              target.sendMessage("You moved to jail, time to escape - " + period + " minutes, reason - " + reason + " .");
              activeChar.sendMessage("You jailed " + player + ".");
            }
            else
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.