idk-whoami 913434317c Corrected script for some item (#6364) %!s(int64=3) %!d(string=hai) anos
..
import-tmpl 6bc0dff20d Converts Job databases to YAML (#4759) %!s(int64=3) %!d(string=hai) anos
pre-re 424e05d8f7 Implemented some NPC skills (#6343) %!s(int64=3) %!d(string=hai) anos
re 913434317c Corrected script for some item (#6364) %!s(int64=3) %!d(string=hai) anos
GeoIP.dat a75c0475a2 > Hercules merges: %!s(int64=12) %!d(string=hai) anos
abra_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
achievement_db.yml 5aa9f75343 Cleaned up remaining TODO for Achievements (#4446) %!s(int64=4) %!d(string=hai) anos
achievement_level_db.yml 5aa9f75343 Cleaned up remaining TODO for Achievements (#4446) %!s(int64=4) %!d(string=hai) anos
attendance.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
attr_fix.yml 4d2c5b02d3 Converted Elemental Attribute Damage Adjustment Tables to YAML (#6053) %!s(int64=3) %!d(string=hai) anos
battleground_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
castle_db.yml 01a3caf9f9 Converted castle_db.txt to YAML (#6077) %!s(int64=3) %!d(string=hai) anos
const.yml fe7cb5a33f Converted const.txt to YAML (#6187) %!s(int64=3) %!d(string=hai) anos
create_arrow_db.yml 0599ee1832 Converted create_arrow_db.txt to YAML (#6039) %!s(int64=3) %!d(string=hai) anos
elemental_db.txt 7083ecf079 Standardized formatting of database files. %!s(int64=11) %!d(string=hai) anos
elemental_skill_db.txt 7083ecf079 Standardized formatting of database files. %!s(int64=11) %!d(string=hai) anos
exp_guild.yml 7ade6d8c86 Converted txt guild experience database to yaml (#5995) %!s(int64=3) %!d(string=hai) anos
exp_homun.yml e8385d812b Converted exp_homun database to yaml (#6002) %!s(int64=3) %!d(string=hai) anos
guild_skill_tree.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
homun_skill_tree.txt 652d77eb02 Job Improvement Project - Genetic (#3284) %!s(int64=5) %!d(string=hai) anos
instance_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
item_db.yml c4df5caa00 Added support for level 2 armors (#6251) %!s(int64=3) %!d(string=hai) anos
item_group_db.yml 3f9b051ebc Corrected an issue with UniqueId (#6146) %!s(int64=3) %!d(string=hai) anos
item_randomopt_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
item_randomopt_group.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
job_stats.yml 6bc0dff20d Converts Job databases to YAML (#4759) %!s(int64=3) %!d(string=hai) anos
level_penalty.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
magicmushroom_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
map_index.txt d6a1c03b39 Updated map_cache.dat (#6310) %!s(int64=3) %!d(string=hai) anos
mercenary_db.txt 5933ab8304 Temple of the demon god instance (#5611) %!s(int64=3) %!d(string=hai) anos
mercenary_skill_db.txt 58c520eb07 Initial release of Devil Tower memorial (#2555) %!s(int64=6) %!d(string=hai) anos
mob_chat_db.yml 3abc86e02d Wave mode instances - walkthrough conversions (#3884) %!s(int64=3) %!d(string=hai) anos
mob_db.yml ff0cbfe4e8 Minor fixes and cleanups to the mob database (#6356) %!s(int64=3) %!d(string=hai) anos
mob_item_ratio.yml 99eed0c9b1 Converted mob_item_ratio to YAML (#6021) %!s(int64=3) %!d(string=hai) anos
mob_summon.yml 9322f67002 Converted mob_boss to yaml (#6011) %!s(int64=3) %!d(string=hai) anos
pet_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
quest_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
readme.md 5aa9f75343 Cleaned up remaining TODO for Achievements (#4446) %!s(int64=4) %!d(string=hai) anos
refine.yml 394ac3cbe8 Fixed refine rate documentation %!s(int64=4) %!d(string=hai) anos
size_fix.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
skill_changematerial_db.txt 51ecd9b2bc Follow up 402170c %!s(int64=10) %!d(string=hai) anos
skill_damage_db.txt a942853d55 Cleaned up the mapflag system (#2943) %!s(int64=6) %!d(string=hai) anos
skill_db.yml 893bfabe91 Adds support for Level field in ItemCost (#5268) %!s(int64=3) %!d(string=hai) anos
spellbook_db.yml 2cc5337083 Updates copyright date %!s(int64=4) %!d(string=hai) anos
statpoint.yml f230b13ded Converted statpoint.txt to YAML (#6010) %!s(int64=3) %!d(string=hai) anos
status_disabled.txt 3d4021bfc6 Job Improvement Bundle patch (#5517) %!s(int64=4) %!d(string=hai) anos

readme.md

Import Directories

What is the import directory for?

The import/ directory provides a way for you to change your config settings without the need to even touch the main /conf/ and /db/ files.

By placing your custom entries into the import/ directory within these two locations, your core files will not need to have any conflicts resolved when you update your server. You store your changes, and the rest is updated with rAthena.

How does this work?

Think of "import" as in "override". Place only the settings you have changed in the import files, or settings you are "overriding".

For example, when setting up a server there are always a few config settings that users would like to change in order for rAthena to suit their needs. The following example will show you how to use the /db/import/ directory correctly. (for /conf/import/ examples, see /conf/readme.md)

Achievements


We want to add our own custom achievement that can be given to a player via an NPC Script and another that we can give to our GMs.

/db/import/achievement_db.yml

- Id: 280000
  Group: None
  Name: Emperio
  Reward:
    TitleId: 1035
  Score: 50
- Id: 280001
  Group: None
  Name: Staff
  Reward:
    TitleId: 1036
  Score: 50

Instances


We want to add our own customized Housing Instance.

/db/import/instance_db.yml

- Id: 35
    Name: Home
    IdleTimeOut: 900
    Enter:
      Map: 1@home
      X: 24
      Y: 6
    AdditionalMaps:
      - Map: 2@home
      - Map: 3@home

Mob Alias


We want to give a custom mob a Novice player sprite.

/db/import/mob_avail.txt

// Structure of Database:
// MobID,SpriteID{,Equipment}
3850,0

Custom Maps


We want to add our own custom maps. For this we need to add our map names to import/map_index.txt and then to the import/map_cache.dat file for the Map Server to load.

/db/import/map_index.txt

1@home  1250
2@home
3@home
ev_has
shops
prt_pvp

Item Trade Restrictions


We want to ensure that specific items cannot be traded, sold, dropped, placed in storage, etc.

/db/import/item_trade.txt

// Legend for 'TradeMask' field (bitmask):
// 1   - item can't be dropped
// 2   - item can't be traded (nor vended)
// 4   - wedded partner can override restriction 2
// 8   - item can't be sold to npcs
// 16  - item can't be placed in the cart
// 32  - item can't be placed in the storage
// 64  - item can't be placed in the guild storage
// 128 - item can't be attached to mail
// 256 - item can't be auctioned
// Full outright value = 511
34000,511,100   // Old Green Box
34001,511,100   // House Keys
34002,511,100   // Reputation Journal

Custom Quests


We want to add our own custom quests to the quest_db.

/db/import/quest_db.txt

// Quest ID,Time Limit,Target1,Val1,Target2,Val2,Target3,Val3,MobID1,NameID1,Rate1,MobID2,NameID2,Rate2,MobID3,NameID3,Rate3,Quest Title
89001,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Reputation Quest"
89002,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Reputation Quest"

We cannot stress enough how helpful this system is for everyone. The majority of git conflicts will simply go away if users make use of the import/ system.