Pokye 86c8950e7f
Added Beginner Items (#7001)
Fixed #7000

Thanks to @Takiusu !
2022-06-02 15:04:32 +02:00
..
2022-05-02 16:33:01 +02:00
2022-06-02 15:04:32 +02:00
2021-02-17 08:04:59 -05:00
2021-02-17 08:04:59 -05:00
2021-02-17 08:04:59 -05:00
2021-08-27 23:54:31 +02:00
2013-03-27 21:57:45 +00:00
2021-02-17 08:04:59 -05:00
2022-02-22 21:52:27 +01:00
2021-02-17 08:04:59 -05:00
2022-05-02 16:33:01 +02:00
2021-02-17 08:04:59 -05:00
2021-02-17 08:04:59 -05:00
2021-10-12 23:59:37 +02:00
2022-03-08 00:29:17 +01:00
2021-12-30 20:25:19 +01:00
2021-02-17 08:04:59 -05:00
2021-04-12 02:03:13 +02:00
2021-02-17 08:04:59 -05:00
2014-08-24 21:58:23 +07:00
2021-02-17 08:04:59 -05:00
2021-12-30 20:25:19 +01:00
2022-04-08 13:16:18 -04:00

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.