Jump to content
  • 0

MAX_ITEMGROUP cannot be found in itemdb.hpp


Ophyrx

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  05/09/22
  • Last Seen:  

Hi everyone,

Has this value MAX_ITEMGROUP been deprecated? Is it no longer in use? I cannot find in my src/map/itemdb.hpp, or in fact i search in every file inside src folder and there's no entry for this value. It's not defined anywhere ( #define MAX_ITEMGROUP )

I'm adding a new item group and getting the error

[Error]: Invalid group CASH_TREASURE_BOX_R1.
[Error]: Occurred in file 'db/re/item_group_db.yml' on line 23716 and column 11.

Looking at other forum responses I need to increase the MAX_ITEMGROUP value and edit the constants, and recompile, but there's no such entry, I'm using rAthena 2021 with 4cRaAM 4th job mods.

For this I only need to edit the  const.txt ?

itemgroup file:

  - Group: CASH_TREASURE_BOX_R1
    SubGroups:
      - SubGroup: 1
        List:
          - Item: Golden_Treasure_Box
            Rate: 75
          - Item: Platinum_Treasure_Box
            Rate: 20
          - Item: Pearl_Treasure_Box
            Rate: 4
          - Item: Diamond_Treasure_Box
            Rate: 1

 

 

Thanks in advance!

 

 

 

Edited by Ophyrx
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  90
  • Reputation:   2
  • Joined:  02/25/19
  • Last Seen:  

to add a custom itemgroup you need to add it to item_Group_Db.yml and into the source code as well in script_constant.cpp.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...