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

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


      {
        // Sleep effect, not official feature but however L2OFF features (like offline trade)
        if (Config.OFFLINE_SLEEP_EFFECT)
          player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_SLEEP);
       
        player.store();
        player.closeNetConnection();
       
        if (player.getOfflineStartTime() == 0)
          player.setOfflineStartTime(System.currentTimeMillis());
        return;
View Full Code Here


        return;
      }
    }
    else if (player.isStored())
    {
      player.store();
      player.closeNetConnection();
     
      if (player.getOfflineStartTime() == 0)
        player.setOfflineStartTime(System.currentTimeMillis());
      return;
View Full Code Here

          player = (L2PcInstance) target;
          oldName = player.getName();
         
          L2World.getInstance().removeFromAllPlayers(player);
          player.setName(val);
          player.store();
          L2World.getInstance().addToAllPlayers(player);
         
          player.sendMessage("Your name has been changed by a GM.");
          player.broadcastUserInfo();
         
View Full Code Here

           
            player.setBaseClass(classId);
          }
         
          String newclass = player.getTemplate().className;
          player.store();
         
          if (player != activeChar)
          {
            player.sendMessage("A GM changed your class to " + newclass);
          }
View Full Code Here

    player.setPvpFlag(pvpflagval);
    player.setPvpKills(pvpkillsval);
    player.setPkKills(pkkillsval);
   
    // Save the changed parameters to the database.
    player.store();
   
    StatusUpdate su = new StatusUpdate(player.getObjectId());
    su.addAttribute(StatusUpdate.CUR_HP, hpval);
    su.addAttribute(StatusUpdate.MAX_HP, player.getMaxHp());
    su.addAttribute(StatusUpdate.CUR_MP, mpval);
View Full Code Here

      try
      {
        player.addItem("Web", Integer.parseInt(itemId), Integer.parseInt(count), null, player.isOnline() != 0);
        if(player.isOnline() == 0)
        {
          player.store();
        }
        else if(message != null && message.length() > 0)
        {
          player.sendMessage(message);
        }
View Full Code Here

            player.addItem("l2top", PowerPakConfig.L2TOPDEMON_ITEM, numItems, null, true);
            if ((player.isOnline() != 0) && (PowerPakConfig.L2TOPDEMON_MESSAGE != null) && (PowerPakConfig.L2TOPDEMON_MESSAGE.length() > 0))
            {
              player.sendMessage(PowerPakConfig.L2TOPDEMON_MESSAGE);
            }
            player.store();
          }
        }
      }
      catch (SQLException e)
      {
View Full Code Here

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

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

      try
      {
        L2PcInstance player = L2GameClient.this.getActiveChar();
        if (player != null)
        {
          player.store();
        }
      }
      catch (Throwable e)
      {
        _log.warning(e.toString());
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.