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

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


              && ((player.isInStoreMode() && Config.OFFLINE_TRADE_ENABLE)
              || (player.isInCraftMode() && Config.OFFLINE_CRAFT_ENABLE)))
          {
            player.setOffline(true);
            player.leaveParty();
            player.store();
           
            if(Config.OFFLINE_SET_NAME_COLOR)
            {
              player._originalNameColorOffline=player.getAppearance().getNameColor();
              player.getAppearance().setNameColor(Config.OFFLINE_NAME_COLOR);
View Full Code Here


          player.deleteMe();
         
          //store operation
          try
          {
            player.store();
          }
          catch(Exception e2)
          {
            if(Config.ENABLE_ALL_EXCEPTIONS)
              e2.printStackTrace();
View Full Code Here

    RegionBBSManager.getInstance().changeCommunityBoard();

    // removing player from the world
    player.deleteMe();
    player.store();

    getClient().setActiveChar(null);

    // return the client to the authed status
    client.setState(GameClientState.AUTHED);
View Full Code Here

    {
      L2PcInstance player = (L2PcInstance) object;
      L2PcInstance tmp =_allPlayers.get(player.getName().toLowerCase());
      if(tmp != null && tmp != player) //just kick the player previous instance
      {
        tmp.store(); // Store character and items
        tmp.logout();
       
        if(tmp.getClient() != null)
        {
          tmp.getClient().setActiveChar(null); // prevent deleteMe from being called a second time on disconnection
View Full Code Here

    MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2003, 1, 1, 0);
    activeChar.broadcastPacket(MSU);
    MSU = null;

    // Update the changed stat for the character in the DB.
    activeChar.store();

    // Remove the item from inventory.
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);

    // Broadcast the changes to the char and all those nearby.
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.