Jump to content

tasha

Members
  • Posts

    68
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About tasha

Contact Methods

  • Website URL
    http://mysticdragon.hobby-site.com

Profile Information

  • Gender
    Male
  • Location
    Canada

tasha's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. i need this, but with us, anyone have? or can make?
  2. everyone has thought about it ... and i did it while waiting for complie http://mysticdragon.ulmb.com/acm.patch.txt Index: java/net/sf/l2j/accountmanager/SQLAccountManager.java =================================================================== --- java/net/sf/l2j/accountmanager/SQLAccountManager.java (revision 1247) +++ java/net/sf/l2j/accountmanager/SQLAccountManager.java (working copy) @@ -40,6 +40,7 @@ { private static String _uname = ""; private static String _pass = ""; + private static String _email = ""; private static String _level = ""; private static String _mode = ""; @@ -47,6 +48,9 @@ { Server.serverMode = Server.MODE_LOGINSERVER; Config.load(); + System.out.println(""); + System.out.println("Edited By Sikken@Hotmail.com"); + System.out.println(""); System.out.println("Please choose an option:"); System.out.println(""); System.out.println("1 - Create new account or update existing one (change pass and access level)."); @@ -83,6 +87,13 @@ System.out.print("Password: "); _pass = _in.readLine(); } + + if (_mode.equals("1")) + while (_email.length() == 0) + { + System.out.print("Email: "); + _email = _in.readLine(); + } if (_mode.equals("1") || _mode.equals("2")) while (_level.length() == 0) @@ -95,7 +106,7 @@ if (_mode.equals("1")) // Add or Update - addOrUpdateAccount(_uname,_pass,_level); + addOrUpdateAccount(_uname,_pass,_email,_level); else if(_mode.equals("2")) // Change Level changeAccountLevel(_uname,_level); @@ -155,7 +166,7 @@ System.out.println("Displayed accounts: " + count + "."); } - private static void addOrUpdateAccount(String account,String password, String level) throws IOException, SQLException, NoSuchAlgorithmException + private static void addOrUpdateAccount(String account, String password, String email, String level) throws IOException, SQLException, NoSuchAlgorithmException { // Encode Password MessageDigest md = MessageDigest.getInstance("SHA"); @@ -166,10 +177,11 @@ // Add to Base Connection con = null; con = L2DatabaseFactory.getInstance().getConnection(); - PreparedStatement statement = con.prepareStatement("REPLACE accounts (login, password, accessLevel) VALUES (?,?,?)"); + PreparedStatement statement = con.prepareStatement("REPLACE accounts (login, password, email, accessLevel) VALUES (?,?,?,?)"); statement.setString(1, account); + statement.setString(3, email); statement.setString(2, Base64.encodeBytes(newpass)); - statement.setString(3, level); + statement.setString(4, level); statement.executeUpdate(); statement.close(); con.close();
  3. Downloads: 1. JDK 6 Update 16 2. Apache Ant + Builder.Bat 3. TortoiseSVN Now for the fun part ... Install JDK,TortoiseSVN. Once installed create a new folder somewhere ... anywhere will do, and open it and right click, and select "SVN Repo-Browser", the url you use is "http://svn.assembla.com/svn/L2jOfficial", now right click on "lin2srv" and select "CheckOut" (you will do this for MMOcore, and data.) once finish downloading all of your source files, extract "ant-by-sikken.rar" to "C:/". now there will be "builder.bat" located in the root of your drive "C:/builder.bat", copy that file into the folder you downloaded your source files to. run "builder.bat", wait for it to finish, it dose not take long at all, only 10 minutes for the data. once done building, there will be a new folder inside your source folder, named build, open that and you will see your "lin2srv.zip". ps: if you extracted "ant-by-sikken.rar" anywhere else besides "c:/" then you need to edit "builder.bat" @echo off C:/ant/bin/ant pause If you have anyproblems at all with this guide, please leave a post here, and i will help you.
  4. UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'!='L2Monster';
  5. omg ok well who wants 1.0.5? ha http://www.4shared.com/file/130578028/56a53c4c/L2Emu-Stable-105.html
×
×
  • Create New...