Jump to content
  • 0

how to add item group_id in last rathena


LearningRO

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

i try input

on itemdb.h

Quote

    IG_CustomLWGup,
    IG_CustomLWGmid,
    IG_CustomLWGlow,
    IG_CustomRDH,
    IG_CustomRES,
    IG_CustomRRF,
    IG_CustomRCB,
    IG_Kaskus,

and script_constants.h

Quote

    export_constant(IG_CustomLWGup);
    export_constant(IG_CustomLWGmid);
    export_constant(IG_CustomLWGlow);
    export_constant(IG_CustomRDH);
    export_constant(IG_CustomRES);
    export_constant(IG_CustomRRF);
    export_constant(IG_CustomRCB);
    export_constant(IG_Kaskus);

and item_group_id

Quote

import: db/import/eAK-Box-IG_CustomLWGup.txt
import: db/import/eAK-Box-IG_CustomLWGmid.txt
import: db/import/eAK-Box-IG_CustomLWGlow.txt


import: db/import/eAK-Box-IG_CustomRCB.txt
import: db/import/eAK-Box-IG_CustomRDH.txt
import: db/import/eAK-Box-IG_CustomRES.txt
import: db/import/eAK-Box-IG_CustomRRF.txt

import: db/import/Box_KaskusReward.txt
 

and set on item_db.txt

Quote

32034,Random_Costume_Box,Random Costume Box,0,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_CustomRCB),1; },{},{}

but always get error

Quote

[Error]: itemdb_get_randgroupitem: Invalid group id 497
[Error]: buildin_grouprandomitem: Invalid item group with group_id '497', sub_group '1'.

what step i miss :((

 

and i was recompile

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

4 hours ago, melv0 said:

i try input

on itemdb.h

and script_constants.h

and item_group_id

and set on item_db.txt

but always get error

what step i miss :((

 

and i was recompile

You need to increase your group id in itemdb.h

#define MAX_ITEMGROUP #75 //add your max_itemgroup here

add your box in const.txt
IG_CustomRCB 75

add your itemgroup.txt in db/import
CustomRCB.txt // add your items inside this db

BoxID,ItemID,Chance
75,501,10 // BoxID is the id that you added in Const.txt



 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

i was try it but stil didn;t recognize my costum :(( 

and btw structure on itemdb.h in last version different also in cons.txt :(

 

and still get error like this

Quote

[Error]: sv_readdb: Insufficient columns in line 1 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 2 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 3 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 6 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 7 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 8 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 9 of "db/import/item_group_db.txt" (found 1, need at least 2).
[Error]: sv_readdb: Insufficient columns in line 11 of "db/import/item_group_db.txt" (found 1, need at least 2).

 

Edited by melv0
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...