From 2c3201116c8830f3c75d5cdd3ccddc583be35219 Mon Sep 17 00:00:00 2001 From: aleos89 Date: Fri, 25 Nov 2016 15:31:16 -0500 Subject: [PATCH] Split item stack database between renewal and pre-renewal * Separated the database between the two modes. --- db/{ => pre-re}/item_stack.txt | 0 db/re/item_stack.txt | 32 ++++++++++++++++++++++++++++++++ src/map/itemdb.c | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) rename db/{ => pre-re}/item_stack.txt (100%) create mode 100644 db/re/item_stack.txt diff --git a/db/item_stack.txt b/db/pre-re/item_stack.txt similarity index 100% rename from db/item_stack.txt rename to db/pre-re/item_stack.txt diff --git a/db/re/item_stack.txt b/db/re/item_stack.txt new file mode 100644 index 0000000000..3d58f0523d --- /dev/null +++ b/db/re/item_stack.txt @@ -0,0 +1,32 @@ +// Item Stacking Restriction File +// Prevents an item to be stacked more than x times in given +// inventory types. Generally used by 3rd class related skill items. +// +// Structure of Database: +// ItemID,MaxStackAmount,Type +// +// MaxStackAmount: +// Stack limit for the item. Use 0 to disable a restriction. +// +// Type mask values: +// &1: Character inventory restriction +// &2: Character cart restriction +// &4: Account storage restriction +// &8: Guild storage restriction +// +// Example: +// 512,4,12 // Will not allow more than 4 Apples in storages. + +// Rune Knight +12725,20,1 // Nauthiz Rune +12726,20,1 // Raido Rune +12727,20,1 // Berkana Rune +12728,20,1 // Isa Rune +12729,20,1 // Othila Rune +12730,20,1 // Uruz Rune +12731,20,1 // Thurisaz Rune +12732,20,1 // Wyrd Rune +12733,20,1 // Hagalaz Rune + +// Arch Bishop +12333,3,1 // Ancilla diff --git a/src/map/itemdb.c b/src/map/itemdb.c index c238170662..f838d24a43 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -1681,7 +1681,7 @@ static void itemdb_read(void) { } sv_readdb(dbsubpath1, "item_avail.txt", ',', 2, 2, -1, &itemdb_read_itemavail, i); - sv_readdb(dbsubpath1, "item_stack.txt", ',', 3, 3, -1, &itemdb_read_stack, i); + sv_readdb(dbsubpath2, "item_stack.txt", ',', 3, 3, -1, &itemdb_read_stack, i); sv_readdb(dbsubpath1, "item_nouse.txt", ',', 3, 3, -1, &itemdb_read_nouse, i); sv_readdb(dbsubpath2, "item_group_db.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_bluebox.txt", ',', 2, 10, -1, &itemdb_read_group, i);