Jump to content

tasha

Members
  • Posts

    68
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by tasha

  1. 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();
    
    

  2. 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.

  3. lol...that SQL code is totally wrong if you say its npc's its funny because mobs/raidbosses...etc..etc will get a title too

     

    This should do the right thing :D

     

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Npc';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Guard';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Merchant';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Teleporter';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Warehouse';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Trainer';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2VillageMaster';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2PetManager';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Auctioneer';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2SymbolMaker';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2FestivalGuide';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2ClassMaster';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2PetManager';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2SymbolMaker';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2FestivalGuide';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2NpcWalker';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2OlympiadManager';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2FisherMan';

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'='L2Adventurer';

     

     

     

    UPDATE `npc` SET `title`='Your Title', `serverSideTitle`='1' where 'type'!='L2Monster';

     

  4. www.sikken.ulmb.com

    Kalhspera opos leei kai to topic sas dino ena Anti-PK Guard.To xero oti exi gini polles fores post alla se merikous mpori na aresi ayto..:P

    2lm1nva.jpg

    www.sikken.ulmb.comwww.sikken.ulmb.com

    Download:

    http://www.4shared.com/file/106138754/9653262a/Anti-PK.html

     

    Douleuh se l2j kai l2jfree.

×
×
  • Create New...