Customizing Your Server
Once you know how to build and configure your server correctly, the next thing you may want to know is how to tweak it to your liking
Contents
What can I change?
Since the project is open-source, the answer to that is: Absolutely anything, as long as you do not violate the terms of the GPLv2 or newer.
Where do I change things?
Common Options
A lot of the options can be found in scripts/globals/settings.lua including Initial level cap, maximum level allowed on the server, starting gil, starting inventory, unlocking subjobs by default, unlocking advanced jobs by default, and a plethora of other settings to tweak your server. See the file itself for details.
Adjusting Experience
Experience rate can be found in conf/map_darkstar.conf. Change exp_rate: to whatever multiplier you want. If you set it to 2.0 it will give you double experience for all monsters as per the experience tables.
If you prefer to modify the experience granted directly, you can find those values in the exp_table mysql table. To change the amount of experience required to progress to the next level, modify the exp_base mysql table.
Default Character Speed
To adjust the default character run speed, edit src/map/baseentity.cpp and look for a line that says
speed = 40;
and modify it accordingly. Maximum effective value is 255, and the official test server uses 60.
Starting Jobs and Levels
If you want to change the default starting level for any/all jobs, in the char_jobs table, you need to set the default value for each 3-letter job code to what you want to be the starting level for that job.
You can also change the jobs you have unlocked by default here, but it is easier to use settings.lua if you want to unlock all jobs at the start. Nevertheless, if you wish to tweak exactly what jobs are unlocked, you can adjust the 'unlocked' field by adding together the values of all the jobs you desire below.
Job Name | Value |
---|---|
Subjob | 1 |
Warrior | 2 |
Monk | 4 |
White Mage | 8 |
Black Mage | 16 |
Red Mage | 32 |
Thief | 64 |
Paladin | 128 |
Dark Night | 256 |
Beastmaster | 512 |
Bard | 1024 |
Ranger | 2048 |
Samurai | 4096 |
Ninja | 8192 |
Dragoon | 16384 |
Summoner | 32768 |
Blue Mage | 65536 |
Corsair | 131072 |
Puppetmaster | 262144 |
Dancer | 524288 |
Scholar | 1048576 |
Miscellaneous Changes
To change the name your server provides when people log in, replace all instances (currently 2) of DarkStar in src/login/lobby.cpp with whatever you want.