Difference between revisions of "Customizing Your Server"
Bluekirby0 (Talk | contribs) (→Starting Jobs and Levels) |
Bluekirby0 (Talk | contribs) |
||
Line 73: | Line 73: | ||
|- | |- | ||
|} | |} | ||
+ | |||
+ | === Adjust Healing while Resting === | ||
+ | In scripts/globals/effects/healing.lua find the lines: | ||
+ | |||
+ | <code>target:addHP(<span style="color:#ff0000">10</span>+(3*math.floor(target:getMainLvl()/10))+(healtime-2+(1+math.floor(target:getMaxHP()/300)))+(target:getMod(MOD_HPHEAL)));</code> | ||
+ | |||
+ | <code>target:addHP(<span style="color:#ff0000">10</span>+(healtime-2)+(target:getMod(MOD_HPHEAL)));</code> | ||
+ | |||
+ | <code>target:addMP(<span style="color:#ff0000">12</span>+(healtime-2)+(target:getMod(MOD_MPHEAL))+(target:getMod(MOD_CLEAR_MIND)*(healtime-2)));</code> | ||
+ | |||
+ | and adjust the 10, 10, and 12 appropriately to change the base healing amounts. | ||
=== Miscellaneous Changes === | === 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. | 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. |
Revision as of 00:25, 6 April 2012
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 |
Adjust Healing while Resting
In scripts/globals/effects/healing.lua find the lines:
target:addHP(10+(3*math.floor(target:getMainLvl()/10))+(healtime-2+(1+math.floor(target:getMaxHP()/300)))+(target:getMod(MOD_HPHEAL)));
target:addHP(10+(healtime-2)+(target:getMod(MOD_HPHEAL)));
target:addMP(12+(healtime-2)+(target:getMod(MOD_MPHEAL))+(target:getMod(MOD_CLEAR_MIND)*(healtime-2)));
and adjust the 10, 10, and 12 appropriately to change the base healing amounts.
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.