Atemo 868bdead9e Item DB update (part of ep17.2) (#5486) 4 năm trước cách đây
..
import-tmpl 04cfe17b2b Converted item database to YAML (#4335) 4 năm trước cách đây
pre-re 04cfe17b2b Converted item database to YAML (#4335) 4 năm trước cách đây
re 868bdead9e Item DB update (part of ep17.2) (#5486) 4 năm trước cách đây
GeoIP.dat a75c0475a2 > Hercules merges: 12 năm trước cách đây
abra_db.yml fb30275e89 Added SA_TAMINGMONSTER to pre-renewal (#4595) 5 năm trước cách đây
achievement_db.yml 78eed02273 Updated the YAML parsing method (#3694) 6 năm trước cách đây
achievement_level_db.yml 783009d642 Updated Achievement EXP to official values (#4326) 5 năm trước cách đây
attendance.yml 97372ff423 Adds reload attendance database atcommand (#4657) 5 năm trước cách đây
battleground_db.yml 14c388b401 Resolves some Battleground issues (#4725) 5 năm trước cách đây
castle_db.txt 9373c697b5 Added some source part. Thanks @aleos89 / @Cydh 9 năm trước cách đây
const.txt b2afc2ea6e Revert random opt index change (#5172) 4 năm trước cách đây
create_arrow_db.txt 51ecd9b2bc Follow up 402170c 10 năm trước cách đây
elemental_db.txt 7083ecf079 Standardized formatting of database files. 11 năm trước cách đây
elemental_skill_db.txt 7083ecf079 Standardized formatting of database files. 11 năm trước cách đây
guild_skill_tree.yml cbe0d6b271 Splitted guild_skill_tree.txt into re and pre-re (#3841) 6 năm trước cách đây
homun_skill_tree.txt 652d77eb02 Job Improvement Project - Genetic (#3284) 5 năm trước cách đây
instance_db.yml 3804d7f603 Adds support for instance destruction button (#5073) 4 năm trước cách đây
item_db.yml 04cfe17b2b Converted item database to YAML (#4335) 4 năm trước cách đây
item_findingore.txt 127c13bbdd Cleaned up Item Groups 8 năm trước cách đây
job_db2.txt aa4c1da450 Adds Rebellion stat bonus for new job levels (#5461) 4 năm trước cách đây
magicmushroom_db.yml 84bdf59e36 Removed pre-renewal Magic Mushroom database 5 năm trước cách đây
map_index.txt 87db2326b4 Added missing maps to map_cache and its mapflags (#3198) 7 năm trước cách đây
mercenary_db.txt 58c520eb07 Initial release of Devil Tower memorial (#2555) 6 năm trước cách đây
mercenary_skill_db.txt 58c520eb07 Initial release of Devil Tower memorial (#2555) 6 năm trước cách đây
mob_chat_db.txt 354c632732 Fixed place names and other typos (#4475) 5 năm trước cách đây
mob_classchange.txt 9b87ca2b7c Clean up Monster Random List 10 năm trước cách đây
mob_item_ratio.txt c5a5c54518 Converted remaining C comments (#3927) 6 năm trước cách đây
mob_mission.txt 7040057a9f Corrected Taekwon Mission mob generator (#3509) 6 năm trước cách đây
mob_pouch.txt 9b87ca2b7c Clean up Monster Random List 10 năm trước cách đây
pet_db.yml ac558d7c1e Initial implementation of pet evolution system + Pet DB conversion to YAML (#3544) 6 năm trước cách đây
quest_db.yml 5ba29be2a3 Added support for race/size/element/min level/max level quest objectives (#5191) 4 năm trước cách đây
readme.md 06c159c405 Refactored Instances to utilize C++ features (#3163) 5 năm trước cách đây
size_fix.yml ea8da71cdd Rebalancing of 1st/2nd/Transcendent class skills (#4072) 5 năm trước cách đây
skill_changematerial_db.txt 51ecd9b2bc Follow up 402170c 10 năm trước cách đây
skill_damage_db.txt a942853d55 Cleaned up the mapflag system (#2943) 6 năm trước cách đây
skill_db.yml dca3797d44 Converted the skill database to YAML (#4531) 5 năm trước cách đây
spellbook_db.yml 77d86c6da5 Converted Reading Spellbook Database to YAML (#4440) 5 năm trước cách đây
status_disabled.txt e08b5c4f13 Add Star Emperor and Soul Reaper Class Restriction in WoE:TE (#4784) 5 năm trước cách đây

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

Achievements:
  - ID: 280000
    Group: "AG_GOAL_ACHIEVE"
    Name: "Emperio"
    Reward:
      TitleID: 1035
    Score: 50
  - ID: 280001
    Group: "AG_GOAL_ACHIEVE"
    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.