a456456 發表於 2015-8-8 16:15:16

item數量限制

本帖最後由 a456456 於 2015-8-8 07:21 PM 編輯

目前使用Hercules版本
但是item_db最高只能到32768
有辦法在哪裡修改嗎


修改以下,已解決item_db.h
-#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db)
+#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)

/src/common/mmo.h
- short nameid;
+ unsigned short nameid;

isabel:D 發表於 2015-8-8 16:18:28

本帖最後由 isabel:D 於 2015-8-8 04:19 PM 編輯

item_db.h
-#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db)
+#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)

/src/common/mmo.h
- short nameid;
+ unsigned short nameid;

轉自
http://herc.ws/board/topic/5261-itemdb-can-support-items-with-32k-id/
http://herc.ws/board/topic/5045-increasing-max-values-allowed-in-itemdb/?p=32497
頁: [1]
查看完整版本: item數量限制