Преглед изворни кода

Split item stack database between renewal and pre-renewal
* Separated the database between the two modes.

aleos89 пре 8 година
родитељ
комит
2c3201116c
3 измењених фајлова са 33 додато и 1 уклоњено
  1. 0 0
      db/pre-re/item_stack.txt
  2. 32 0
      db/re/item_stack.txt
  3. 1 1
      src/map/itemdb.c

+ 0 - 0
db/item_stack.txt → db/pre-re/item_stack.txt


+ 32 - 0
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

+ 1 - 1
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);