xanber21 Posted May 6, 2015 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 04/17/15 Last Seen: May 29, 2015 Share Posted May 6, 2015 How to make an itelm like giftbox and when you open it..theres some items inside it like freebies Quote Link to comment Share on other sites More sharing options...
EL Dragon Posted May 6, 2015 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Share Posted May 6, 2015 here's the step open ra/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 ra/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 ra/db/ next step open item_whatever.txt - in ra/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 ra/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 Quote Link to comment Share on other sites More sharing options...
Elsa Mist Posted May 9, 2015 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 387 Reputation: 60 Joined: 10/08/13 Last Seen: July 14, 2022 Share Posted May 9, 2015 (edited) How to make an itelm like giftbox and when you open it..theres some items inside it like freebies Try read and undestand this Link - Gift Box or you can follow the example given on that wiki first and if its work you can try make your own group. for the item script you can follow existing item script on you item_db.txt or this link - Group Item make a new custom box with the script like this 30000,box,box,2,1000,,10,,,,,0xFFFFFFFF,15,2,,,,,,{ getitem YouItemID,Amount; getitem YouItemID,Amount; getitem YouItemID,Amount; },{},{} getitem YouItemID,Amount; you can add more item to be a freebies, just add the item script above. Edited May 9, 2015 by Elsa Mist Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.