VanGon Posted October 23, 2017 Posted October 23, 2017 Hey guys again i believe u are bored of me asking but i would like some help.. how could i code a costum subclass starting level? where do i need to look? what to do ? what to change... thanks in advance, vangon
0 melron Posted October 23, 2017 Posted October 23, 2017 SubClass.java public SubClass(int classId, int classIndex) { _class = ClassId.VALUES[classId]; _classIndex = classIndex; _exp = Experience.LEVEL[40]; _sp = 0; _level = 40; }
0 VanGon Posted October 23, 2017 Author Posted October 23, 2017 17 minutes ago, melron said: SubClass.java public SubClass(int classId, int classIndex) { _class = ClassId.VALUES[classId]; _classIndex = classIndex; _exp = Experience.LEVEL[40]; _sp = 0; _level = 40; } thanks about that ... though i would like to put it in config !
0 melron Posted October 23, 2017 Posted October 23, 2017 (edited) There are guides about how to add a new config. its about a minute dont be lazy :D Edited October 23, 2017 by melron
0 VanGon Posted October 23, 2017 Author Posted October 23, 2017 i didnt ask for the whole code though :P i just asked for directions.. i need some experience i just deleted everything and im working everything i want from scratch :P
0 melron Posted October 23, 2017 Posted October 23, 2017 Config.java find public static final String SIEGE_FILE = "./config/siege.properties"; after that create your own custom file , for example: (the path) public static final String CUSTOM_FILE = "./config/custom.properties"; now find public static int SIEGE_LENGTH; before/after that add your own variable like for example public static int CUSTOM_SUB_LEVEL; then search for private static final void loadSieges(). after /before this method create your own , for example: /** * Loads custom settings. */ private static final void loadCustoms() { final ExProperties custom = initProperties(Config.CUSTOM_FILE); CUSTOM_SUB_LEVEL = custom.getProperty("CustomSubClassLevel", 80); } last step: search for public static final void loadGameServer() you will see more methods like loadClans(); etc.. just add your new method like loadCustoms(); ===================================================== Go to /config (the path you used) and create a .properties file with name custom. inside just write: CustomSubClassLevel = (your level) You done :)
0 VanGon Posted October 24, 2017 Author Posted October 24, 2017 19 hours ago, melron said: Config.java find public static final String SIEGE_FILE = "./config/siege.properties"; after that create your own custom file , for example: (the path) public static final String CUSTOM_FILE = "./config/custom.properties"; now find public static int SIEGE_LENGTH; before/after that add your own variable like for example public static int CUSTOM_SUB_LEVEL; then search for private static final void loadSieges(). after /before this method create your own , for example: /** * Loads custom settings. */ private static final void loadCustoms() { final ExProperties custom = initProperties(Config.CUSTOM_FILE); CUSTOM_SUB_LEVEL = custom.getProperty("CustomSubClassLevel", 80); } last step: search for public static final void loadGameServer() you will see more methods like loadClans(); etc.. just add your new method like loadCustoms(); ===================================================== Go to /config (the path you used) and create a .properties file with name custom. inside just write: CustomSubClassLevel = (your level) You done :) wow dude honestly thanks.. a really good guide and properly explained.. many thanks m8
Question
VanGon
Hey guys again i believe u are bored of me asking but i would like some help.. how could i code a costum subclass starting level? where do i need to look? what to do ? what to change...
thanks in advance,
vangon
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now