Stolao 7e25a8e391 Updated Items Random Option Database 7 سال پیش
..
import-tmpl 4ffb1b043a Reverted 0184671 7 سال پیش
pre-re 4ffb1b043a Reverted 0184671 7 سال پیش
re 7e25a8e391 Updated Items Random Option Database 7 سال پیش
GeoIP.dat a75c0475a2 > Hercules merges: 12 سال پیش
abra_db.txt 51ecd9b2bc Follow up 402170c 10 سال پیش
castle_db.txt 9373c697b5 Added some source part. Thanks @aleos89 / @Cydh 9 سال پیش
const.txt f42c2ff211 Moved some remaining constants into src (#2501) 7 سال پیش
create_arrow_db.txt 51ecd9b2bc Follow up 402170c 10 سال پیش
elemental_db.txt 7083ecf079 Standardized formatting of database files. 11 سال پیش
elemental_skill_db.txt 7083ecf079 Standardized formatting of database files. 11 سال پیش
guild_skill_tree.txt d3d918211e * Random documentation of database files. 13 سال پیش
homun_skill_tree.txt 2ae4bcb694 Implemented 'NeedLevel' for Homunculus skill tree 10 سال پیش
item_avail.txt 9040613fa6 Added missing empty newlines to a lot of files 8 سال پیش
item_findingore.txt 127c13bbdd Cleaned up Item Groups 8 سال پیش
item_nouse.txt b1b43bb0df Removed hardcoded aloevera restriction 9 سال پیش
job_db2.txt 39e54d65bb Expanded baby jobs (#2039) 8 سال پیش
magicmushroom_db.txt ce090ce916 Skill Changes: 10 سال پیش
map_index.txt b9db8611c8 Updated map_cache.dat 8 سال پیش
mercenary_db.txt ea1a247f99 Minor Renewal mob database updates. (Hercules 0fadf38) 10 سال پیش
mercenary_skill_db.txt ba798de7ab * Follow-up r17205, added new mercenary skills and scrolls. 12 سال پیش
mob_avail.txt 18de636c1f Fixed #772. 9 سال پیش
mob_chat_db.txt 185b6b2d5e -Add max hpsp table, (Offi) thx Daegaladh. 12 سال پیش
mob_classchange.txt 9b87ca2b7c Clean up Monster Random List 10 سال پیش
mob_item_ratio.txt 6c5d4a730f * Follow up 7cd82d0 11 سال پیش
mob_pouch.txt 9b87ca2b7c Clean up Monster Random List 10 سال پیش
readme.md 8417d7616b Details of import/ dirs and examples 7 سال پیش
size_fix.txt 7083ecf079 Standardized formatting of database files. 11 سال پیش
skill_changematerial_db.txt 51ecd9b2bc Follow up 402170c 10 سال پیش
skill_copyable_db.txt 2df18b12e6 Added AB_RENOVATIO as reproducible skill. 7 سال پیش
skill_damage_db.txt f6f1bcaeb9 * Updated FRN and RUS map_msg translations. (credits: Capuche, Jarek) 11 سال پیش
skill_improvise_db.txt d95f5d2db7 Bug Fixes 9 سال پیش
skill_nonearnpc_db.txt 7083ecf079 Standardized formatting of database files. 11 سال پیش
spellbook_db.txt 51ecd9b2bc Follow up 402170c 10 سال پیش
status_disabled.txt 5f46a5c1f7 Items and skills restrictions 9 سال پیش

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.txt

// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,Map3,...,Map255
35,Home,3600,900,1@home,24,6,2@home,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.