MarGaZeaS Posted May 12, 2016 Share Posted May 12, 2016 (edited) Καλησπέρα μελοι του MaxCheaters στο συγκεκριμένο topic θα μάθουμε πως βάζουμε ένα config στο l2jacis. Ας αρχίσουμε αρχικά βρίσκουμε το code που θέλουμε. Εγώ διάλεξα αυτό εδώ. Πατήστε εδώ για να πατέ στο link Εάν θέλουμε να κάνουμε καινούριο φάκελο για τα configs πχ customs Μπορούμε να φτιάξουμε έναν φάκελο με όνομα custom και εκεί μέσα να βάζουμε τα αρχεία.properties αλά ας δούμε και πως γίνετε αυτό. ας αρχίσουμε :D Οπου έχω - σημαίνει πως πρέπει να βγάλω. εάν έχω + σημαίνει πως πρέπει να βάλουμε :) ανοίγουμε το config.java java/net/sf/l2j/Config.java πάμε λίγο πιο κάτω λίγο κάτω και βλέπουμε public static final String SIEGE_FILE = "./config/siege.properties"; από κάτω βάζουμε public static final String CUSTOMS_FILE = "./config/customs/customs.properties"; κάνουμε search public static int CLIENT_PACKET_QUEUE_MAX_UNKNOWN_PER_MIN = 5; // default 5 ακριβός από κάτω βάζουμε /** Customs Settings */ public static boolean STARTING_BUFFS; public static List<int[]> STARTING_BUFFS_M = new ArrayList<int[]>(); public static List<int[]> STARTING_BUFFS_F = new ArrayList<int[]>(); τώρα κάνουμε search loadClans ακριβός από πάνω βάζουμε /** * custom settings. */ private static final void loadCustoms() { final ExProperties customs = initProperties(CUSTOMS_FILE); STARTING_BUFFS = customs.getProperty("StartingBuffs", true); String[] propertySplit = customs.getProperty("StartingBuffsMage", "1204,2").split(";"); STARTING_BUFFS_M.clear(); for (String buff : propertySplit) { String[] buffSplit = buff.split(","); if (buffSplit.length != 2) _log.warning("StartingBuffsMage[Config.load()]: invalid config property -> StartingBuffsMage \"" + buff + "\""); else { try { STARTING_BUFFS_M.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); } catch (NumberFormatException nfe) { if (STARTING_BUFFS_M.equals("")) System.out.println("EROOOOOOOOOOOR WITH STARTING BUFS"); } } } propertySplit = customs.getProperty("StartingBuffsFighter", "1204,2").split(";"); STARTING_BUFFS_F.clear(); for (String buff : propertySplit) { String[] buffSplit = buff.split(","); if (buffSplit.length != 2) _log.warning("StartingBuffsFighter[Config.load()]: invalid config property -> StartingBuffsFighter \"" + buff + "\""); else { try { STARTING_BUFFS_F.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); } catch (NumberFormatException nfe) { if (STARTING_BUFFS_F.equals("")) System.out.println("EROOOOOOOOOOOR WITH STARTING BUFS"); } } } } τώρα κάνουμε search loadServer(); από κάτω βάζουμε // Customs settings loadCustoms(); τώρα κάνουμε ότι κάνω στης φωτογραφίες για να φτιάξουμε το αρχείο Αφού τα κάνουμε όλα αυτά ανoίγουμε το customs.properties και μέσα βαζουμε #Newbie Characters have starting buffs StartingBuffs = True #Starting Buffs for Mystics. StartingBuffsMage = 1204,2;1085,3; #Starting Buffs for Fighters. StartingBuffsFighter = 1204,2;1086,2; Αυτά για αυτό το topic. εάν σας άρεσε αφήστε ένα comment :D True για να το ενεργοποιείστε False για να το απενεργοποιήσετε Εάν έχω γράψει κάτι λάθος στο topic παρακαλώ γράψτε μου ένα comment από κάτω στο topic για να το διορθώσω. :) Edited September 16, 2017 by PaRaNoiC* 3 Quote Link to comment Share on other sites More sharing options...
MarGaZeaS Posted January 3, 2017 Author Share Posted January 3, 2017 TOPIC UPDATED!!! έγραψα από την αρχή το topic (τώρα δουλεύει 100%) ελπίζω να βοηθήσει :) Παρακαλώ κάποιος moderator να διαγράψει όλα τα παραπάνω comments :) Quote Link to comment Share on other sites More sharing options...
Accountant Posted January 3, 2017 Share Posted January 3, 2017 TOPIC UPDATED!!! πολυ καλη δουλεια φιλε! Συνεχισε. Quote Link to comment Share on other sites More sharing options...
MarGaZeaS Posted January 3, 2017 Author Share Posted January 3, 2017 πολυ καλη δουλεια φιλε! Συνεχισε. Ευχαριστώ :) Quote Link to comment Share on other sites More sharing options...
MeVsYou Posted January 23, 2017 Share Posted January 23, 2017 Topis is updated and clean. Quote Link to comment Share on other sites More sharing options...
Nightw0lf Posted January 23, 2017 Share Posted January 23, 2017 Μία μικρή παραβολή στον οδηγό είναι η διαφορά του .properties απο το .ini .properties: Δεν ανοίγει με προεπιλεγμένο πρόγραμμα επεξεργασίας, Στο notepad++ αναγνωρίζει την γλώσσα και βάζει χρώματα για καλύτερη ανάγνωση. .ini: Ανοίγει με προεπιλεγμένο πρόγραμμα επεξεργασιας, Στο notepad++ αναγνωρίζει την γλώσσα και βάζει χρώματα για καλύτερη ανάγνωση. Quote Link to comment Share on other sites More sharing options...
Tryskell Posted January 23, 2017 Share Posted January 23, 2017 (edited) Μία μικρή παραβολή στον οδηγό είναι η διαφορά του .properties απο το .ini .properties: Δεν ανοίγει με προεπιλεγμένο πρόγραμμα επεξεργασίας, Στο notepad++ αναγνωρίζει την γλώσσα και βάζει χρώματα για καλύτερη ανάγνωση. .ini: Ανοίγει με προεπιλεγμένο πρόγραμμα επεξεργασιας, Στο notepad++ αναγνωρίζει την γλώσσα και βάζει χρώματα για καλύτερη ανάγνωση. "Open with..." command, check the "Always use the program to open that type of file", genius... And comments are shown in green, which is far enough as color system. If that was the reason L2JHellas moved to .ini (I didn't understand why, now I get it), it's ridiculous. It's like if you forgot to check the file association with your music player and decided to encode all your MP3 to WMP format, only because Windows Media Player can't read your file, lol ! Here's a tutorial for you : Edited January 23, 2017 by Tryskell Quote Link to comment Share on other sites More sharing options...
pirama Posted February 5, 2017 Share Posted February 5, 2017 (edited) "Open with..." command, check the "Always use the program to open that type of file", genius... And comments are shown in green, which is far enough as color system. If that was the reason L2JHellas moved to .ini (I didn't understand why, now I get it), it's ridiculous. It's like if you forgot to check the file association with your music player and decided to encode all your MP3 to WMP format, only because Windows Media Player can't read your file, lol ! Here's a tutorial for you : nice reasoning 1 project used by 1000 member if owner of project change ( properties to ini ) 1000 member will not need to do the above it is practical Edit : and this change need 10 second is not like mp3 :) Edited February 5, 2017 by pirama Quote Link to comment Share on other sites More sharing options...
Elfo Posted February 5, 2017 Share Posted February 5, 2017 Love how people find reasons to disagree even if they don't matter. Nice guide. Quote Link to comment Share on other sites More sharing options...
MarGaZeaS Posted September 16, 2017 Author Share Posted September 16, 2017 On 5/2/2017 at 3:53 PM, .Elfocrash said: Love how people find reasons to disagree even if they don't matter. Nice guide. Thanks. :) Quote Link to comment Share on other sites More sharing options...
Afou To Patisa Posted September 16, 2017 Share Posted September 16, 2017 31 minutes ago, PaRaNoiC* said: Thanks. :) Ο τυπας γραφει περιπου 9 μηνες πριν κ εσυ απαντας τωρα.. καλοι βλακες ειστε Quote Link to comment Share on other sites More sharing options...
MarGaZeaS Posted September 17, 2017 Author Share Posted September 17, 2017 1 hour ago, Afou To Patisa said: Ο τυπας γραφει περιπου 9 μηνες πριν κ εσυ απαντας τωρα.. καλοι βλακες ειστε exeis kapoio problhma? twra ithela na apantisw twra apantisa. xD episis den thimomoun oti eixa auto to guide ala to vrika eki pou epsaxna gia auto apantisa twra. :) Quote Link to comment Share on other sites More sharing options...
PrO_jeCt Posted December 12, 2017 Share Posted December 12, 2017 good job but thelw na mathw kai egw java gamotw :p Quote Link to comment Share on other sites More sharing options...
Nightw0lf Posted November 9, 2018 Share Posted November 9, 2018 (edited) kai gw twra eida oti o allos o xazos apantise prin poso kairo mou ekane kai tutorial 0axx0x0xa0ax0x0xa0xax0axa0 poso xazos eliwsa axaxxaaxaxaxxaaxxaax Edited November 9, 2018 by Nightw0lf Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.