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

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

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...