Updates the db README (#7436)

Updates the db README
Updates a couple examples from TXT to YML.
Wrap examples in code blocks
This commit is contained in:
Aleos 2022-11-15 17:31:07 -05:00 committed by GitHub
parent 9512eb81ca
commit 15e27b3567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ We want to add our own custom achievement that can be given to a player via an N
#### /db/import/achievement_db.yml #### /db/import/achievement_db.yml
```yml
- Id: 280000 - Id: 280000
Group: None Group: None
Name: Emperio Name: Emperio
@ -30,6 +31,7 @@ We want to add our own custom achievement that can be given to a player via an N
Reward: Reward:
TitleId: 1036 TitleId: 1036
Score: 50 Score: 50
```
### Instances ### Instances
@ -38,27 +40,30 @@ We want to add our own customized Housing Instance.
#### /db/import/instance_db.yml #### /db/import/instance_db.yml
- Id: 35 ```yml
Name: Home - Id: 35
IdleTimeOut: 900 Name: Home
Enter: IdleTimeOut: 900
Map: 1@home Enter:
X: 24 Map: 1@home
Y: 6 X: 24
AdditionalMaps: Y: 6
- Map: 2@home AdditionalMaps:
- Map: 3@home - Map: 2@home
- Map: 3@home
```
### Mob Alias ### Mob Alias
--- ---
We want to give a custom mob a Novice player sprite. We want to make Porings look like Baphomet.
#### /db/import/mob_avail.txt #### /db/import/mob_avail.yml
// Structure of Database: ```yml
// MobID,SpriteID{,Equipment} - Mob: PORING
3850,0 Sprite: BAPHOMET
```
### Custom Maps ### Custom Maps
@ -67,45 +72,71 @@ We want to add our own custom maps. For this we need to add our map names to `im
#### /db/import/map_index.txt #### /db/import/map_index.txt
```
1@home 1250 1@home 1250
2@home 2@home
3@home 3@home
ev_has ev_has
shops shops
prt_pvp prt_pvp
```
### Item Trade Restrictions ### Item Trade Restrictions
--- ---
We want to ensure that specific items cannot be traded, sold, dropped, placed in storage, etc. We want to ensure that specific items cannot be traded, sold, dropped, placed in storage, etc.
#### /db/import/item_trade.txt #### /db/import/item_db.yml
// Legend for 'TradeMask' field (bitmask): ```yml
// 1 - item can't be dropped - Id: 34000 # Old Green Box
// 2 - item can't be traded (nor vended) Trade:
// 4 - wedded partner can override restriction 2 NoDrop: true
// 8 - item can't be sold to npcs NoTrade: true
// 16 - item can't be placed in the cart TradePartner: true
// 32 - item can't be placed in the storage NoSell: true
// 64 - item can't be placed in the guild storage NoCart: true
// 128 - item can't be attached to mail NoStorage: true
// 256 - item can't be auctioned NoGuildStorage: true
// Full outright value = 511 NoMail: true
34000,511,100 // Old Green Box NoAuction: true
34001,511,100 // House Keys - Id: 34001 # House Keys
34002,511,100 // Reputation Journal Trade:
NoDrop: true
NoTrade: true
TradePartner: true
NoSell: true
NoCart: true
NoStorage: true
NoGuildStorage: true
NoMail: true
NoAuction: true
- Id: 34002 # Reputation Journal
Trade:
NoDrop: true
NoTrade: true
TradePartner: true
NoSell: true
NoCart: true
NoStorage: true
NoGuildStorage: true
NoMail: true
NoAuction: true
```
### Custom Quests ### Custom Quests
--- ---
We want to add our own custom quests to the quest_db. We want to add our own custom quests to the quest_db.
#### /db/import/quest_db.txt #### /db/import/quest_db.yml
// Quest ID,Time Limit,Target1,Val1,Target2,Val2,Target3,Val3,MobID1,NameID1,Rate1,MobID2,NameID2,Rate2,MobID3,NameID3,Rate3,Quest Title ```yml
89001,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Reputation Quest" - Id: 89001
89002,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"Reputation Quest" Title: "Reputation Quest"
- Id: 89002
Title: "Reputation Quest"
```