OK論壇

 找回密碼
 註冊
查看: 1403|回復: 1

item數量限制

 關閉 [複製鏈接]
  • TA的每日心情
    開心
    2023-6-30 04:54 PM
  • 簽到天數: 622 天

    連續簽到: 1 天

    [LV.9]以壇為家II

    發表於 2015-8-8 16:15:16 | 顯示全部樓層 |閱讀模式
    本帖最後由 a456456 於 2015-8-8 07:21 PM 編輯

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


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

    4. /src/common/mmo.h
    5. - short nameid;
    6. + unsigned short nameid;
    複製代碼
    回復

    使用道具 舉報

  • TA的每日心情

    2016-10-31 12:22 PM
  • 簽到天數: 218 天

    連續簽到: 1 天

    [LV.7]常住居民III

    發表於 2015-8-8 16:18:28 | 顯示全部樓層
    本帖最後由 isabel 於 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- ... -items-with-32k-id/
    http://herc.ws/board/topic/5045- ... -in-itemdb/?p=32497

    評分

    參與人數 1積分 +10 現金 +10 積極性 +10 收起 理由
    m820528 + 10 + 10 + 10 我很贊同

    查看全部評分

    回復 支持 反對

    使用道具 舉報

    您需要登錄後才可以回帖 登錄 | 註冊

    本版積分規則

    Archiver|手機版|小黑屋|OK討論區

    GMT+8, 2024-4-27 04:07 AM , Processed in 0.170326 second(s), 20 queries , Gzip On.

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回復 返回頂部 返回列表