Jump to content
  • 0

Subclass costum level


Question

Posted

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

  • 0
Posted

SubClass.java

public SubClass(int classId, int classIndex)
{
	_class = ClassId.VALUES[classId];
	_classIndex = classIndex;
	_exp = Experience.LEVEL[40];
	_sp = 0;
	_level = 40;
}

 

  • 0
Posted
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
Posted (edited)

There are guides about how to add a new config. its about a minute dont be lazy :D

Edited by melron
  • 0
Posted

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
Posted

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
Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock