Package net.sf.l2j.gameserver.serverpackets

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


    L2GameClient.saveCharToDisk(newChar);
    newChar.deleteMe(); // release the world of this character and it's inventory

    // send char list

    CharSelectInfo cl =  new CharSelectInfo(client.getAccountName(), client.getSessionId().playOkID1);
    client.getConnection().sendPacket(cl);
        client.setCharSelection(cl.getCharInfo());
        if (Config.DEBUG) _log.fine("Character init end");
  }
View Full Code Here


      {
        sendPacket(new CharDeleteFail(CharDeleteFail.REASON_YOU_MAY_NOT_DELETE_CLAN_MEMBER));
      }
    }

    CharSelectInfo cl = new CharSelectInfo(getClient().getAccountName(), getClient().getSessionId().playOkID1, 0);
    sendPacket(cl);
    getClient().setCharSelection(cl.getCharInfo());
  }
View Full Code Here

                if (Config.DEBUG)_log.info("Login accepted player "+wcToRemove.account+" waited("+(GameTimeController.getGameTicks()-wcToRemove.timestamp)+"ms)");
                PlayerInGame pig = new PlayerInGame(par.getAccount());
                sendPacket(pig);
                wcToRemove.gameClient.setState(GameClientState.AUTHED);
                wcToRemove.gameClient.setSessionId(wcToRemove.session);
                CharSelectInfo cl = new CharSelectInfo(wcToRemove.account, wcToRemove.gameClient.getSessionId().playOkID1);
                wcToRemove.gameClient.getConnection().sendPacket(cl);
                wcToRemove.gameClient.setCharSelection(cl.getCharInfo());
              }
              else
              {
                _log.warning("session key is not correct. closing connection");
                wcToRemove.gameClient.getConnection().sendPacket(new AuthLoginFail(1));
View Full Code Here

        RestartResponse response = new RestartResponse();
        sendPacket(response);

        // send char list
        CharSelectInfo cl = new CharSelectInfo(client.getAccountName(),
                             client.getSessionId().playOkID1);
        sendPacket(cl);
        client.setCharSelection(cl.getCharInfo());
    }
View Full Code Here

      }
      catch (Exception e)
      {
       
      }
    CharSelectInfo cl = new CharSelectInfo(getClient().getAccountName(), getClient().getSessionId().playOkID1, 0);
    sendPacket(cl);
    getClient().setCharSelection(cl.getCharInfo());
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.serverpackets.CharSelectInfo

Copyright © 2018 www.massapicom. 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.