Package lineage2.gameserver.model

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


        oldClient.setAuthed(false);
        Player activeChar = oldClient.getActiveChar();
        if (activeChar != null)
        {
          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
          activeChar.logout();
        }
        else
        {
          oldClient.close(ServerClose.STATIC);
        }
View Full Code Here


    mysql.set("UPDATE character_hennas SET char_obj_id=" + newcharid + " WHERE char_obj_id=" + player.getObjectId() + " AND class_index=" + classtomove);
    mysql.set("UPDATE character_shortcuts SET char_obj_id=" + newcharid + " WHERE char_obj_id=" + player.getObjectId() + " AND class_index=" + classtomove);
    mysql.set("UPDATE character_variables SET obj_id=" + newcharid + " WHERE obj_id=" + player.getObjectId() + " AND name like 'TransferSkills%'");
    player.modifySubClass(classtomove, 0, false);
    removeItem(player, Config.SERVICES_CHANGE_BASE_ITEM, Config.SERVICES_CHANGE_BASE_PRICE);
    player.logout();
  }
 
  /**
   * Method changebase_page.
   */
 
View Full Code Here

    player.setHairColor(0);
    player.setHairStyle(0);
    player.setFace(0);
    Olympiad.unRegisterNoble(player);
    removeItem(player, Config.SERVICES_CHANGE_BASE_ITEM, Config.SERVICES_CHANGE_BASE_PRICE);
    player.logout();
  }
 
  /**
   * Method rename.
   * @param args String[]
View Full Code Here

    player.setFace(0);
    removeItem(player, Config.SERVICES_CHANGE_SEX_ITEM, Config.SERVICES_CHANGE_SEX_PRICE);
    Log.add("Character " + player + " sex changed to " + (player.getSex() == 1 ? "male" : "female"), "renames");
    int sex = player.getSex() == 1 ? 0 : 1;
    int ObjectId = player.getObjectId();
    player.logout();
    Connection con = null;
    PreparedStatement offline = null;
    try
    {
      con = DatabaseFactory.getInstance().getConnection();
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.