Jump to content
  • 0
Sign in to follow this  
ZelosAvalon

Item Box

Question

how can i make an box ?
when ppl open it, will earn a random item?
 
 
i found this code but idk how it work, can any1 explain me ?
 
{ getrandgroupitem(IG_GiftBox_2),1; },{},{}

 

 

 

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
open /db/item_db2.txt
make a new item -
25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{}
 
next step is
open /db/const.txt
Find IG_Advanced_Weapons_Box 61
below add this
IG_whatever 63 //IG_whatever must be same in the item_db2.txt script command
 
next step
open ra/db/item_group_db.txt
import: db/item_whatever.txt - put this
 
next step
make a new script named
item_whatever.txt - place this in /db/
 
next step
open item_whatever.txt - in /db/item_whatever.txt
//Explanation 63 - is the number you input in const.txt
// - 1111 - this is the itemID
// - 9 - this is the rate
 
63,1111,9
63,<Item ID>,<Rate>
 
next step
open src/map/itemdb.h
 
find this part
#define MAX_ITEMGROUP #62
 
the number is 62 where in const.txt the max group number is 62 - but you add another item group..
- just add + 1 in 62 so make it
 
#define MAX_ITEMGROUP #63
Edited by Soul1992

Share this post


Link to post
Share on other sites
  • 0

 

open /db/item_db2.txt
make a new item -
25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{}
 
next step is
open /db/const.txt
Find IG_Advanced_Weapons_Box 61
below add this
IG_whatever 63 //IG_whatever must be same in the item_db2.txt script command
 
next step
open ra/db/item_group_db.txt
import: db/item_whatever.txt - put this
 
next step
make a new script named
item_whatever.txt - place this in /db/
 
next step
open item_whatever.txt - in /db/item_whatever.txt
//Explanation 63 - is the number you input in const.txt
// - 1111 - this is the itemID
// - 9 - this is the rate
 
63,1111,9
63,<Item ID>,<Rate>
 
next step
open src/map/itemdb.h
 
find this part
#define MAX_ITEMGROUP #62
 
the number is 62 where in const.txt the max group number is 62 - but you add another item group..
- just add + 1 in 62 so make it
 
#define MAX_ITEMGROUP #63

don't work for Hercules! =/

Share this post


Link to post
Share on other sites
  • 0

Learn it ^^

 

heres the files where you edit the contents of the box

 

dbreitem_group.conf

 

There is a link and definition on how to do it

 

Now search the said item on the itemdb then check how they are done or coded so that you can copy it

 

hope this help

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.