Item Box

ZelosAvalon

New member
Messages
218
Points
0
Age
34
Emulator
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 ?
 
Code:
{ getrandgroupitem(IG_GiftBox_2),1; },{},{}
 
 


 
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
 
Last edited by a moderator:
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! =/

 
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

 
Back
Top