budabeads Posted August 3, 2012 Posted August 3, 2012 hello master scripters! im back! hahahaha can you teach us how to make a custom Old Blue Box, or Old Card Album... thanks master scripters!!!! this is for all of us!!! Quote
GM Takumirai Posted August 3, 2012 Posted August 3, 2012 - this is already been answered 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 Viola you are done~ 2 Quote
0 RagnaDev Posted August 26, 2018 Posted August 26, 2018 On 1/9/2015 at 11:41 AM, Saisho said: Sry old topic i know but things changed o.o Is this what am i supposed to look for? or its already obsolete? #define MAX_ITEMGROUP_RANDGROUP 4 ///Max group for random item (increase this when needed). TODO: Remove this limit and use dynamic size if needed Edit: Just to make it clear, i remember i had to do something like that before, but now the wiki dont mention this part anymore so idk... #define MAX_ITEMGROUP 400 ///The max. item group count (increase this when needed). TODO: Remove this limit and use dynamic size or DBMap if needed They removed this line, because size is loaded dynamically. You can proceed in two ways Just follow this tutorial but replace the MAX_ITEMGROUP with this method: 1 . Short way Use db/<re><pre-re>/item_misc.txt Add your IG group there Done 2 . Long Way Open src/map/itemdb.c look for this lines sv_readdb(dbsubpath1, "item_avail.txt", ',', 2, 2, -1, &itemdb_read_itemavail, i); sv_readdb(dbsubpath1, "item_stack.txt", ',', 3, 3, -1, &itemdb_read_stack, i); sv_readdb(dbsubpath1, "item_nouse.txt", ',', 3, 3, -1, &itemdb_read_nouse, i); sv_readdb(dbsubpath2, "item_group_db.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_bluebox.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_violetbox.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_cardalbum.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath1, "item_findingore.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_giftbox.txt", ',', 2, 10, -1, &itemdb_read_group, i); sv_readdb(dbsubpath2, "item_misc.txt", ',', 2, 10, -1, &itemdb_read_group, i); and add your own db, recompile and thats it (not tested) Quote
Mootie Posted November 9, 2012 Posted November 9, 2012 - this is already been answered 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 Viola you are done~ i follow ur guide and the mapserver says error invalid group id 63 Quote
Ajjwidjdneidjenw Posted November 9, 2012 Posted November 9, 2012 You need to recompile afterwards. Quote
Yasunari Ishibashi Posted November 27, 2012 Posted November 27, 2012 how to add annoucher items obtained from the box? Quote
Mystery Posted November 29, 2012 Posted November 29, 2012 how to add annoucher items obtained from the box? You just keep adding items into the file... if it's a custom box, you add items to your custom box .txt file. If you just wanna add more items to the normal OBB, go to (Pre)Renewal/item_bluebox.txt and add your items there. // Structure of Database: // GroupID,ItemID,Rate Quote
nazdecoco Posted January 17, 2013 Posted January 17, 2013 how to add announcer in custom box? for example a player got a thana card in a custom box. then it will broadcast that he just got a thana card. Quote
jpnazar Posted April 22, 2013 Posted April 22, 2013 - this is already been answered 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 Viola you are done~ i follow the guide but its have error invalid group id 63 Quote
chad016 Posted January 22, 2014 Posted January 22, 2014 mine looks like this... how will I do it? O.O #define MAX_ITEMGROUP 390 Quote
Saisho Posted January 9, 2015 Posted January 9, 2015 (edited) Sry old topic i know but things changed o.o Is this what am i supposed to look for? or its already obsolete? #define MAX_ITEMGROUP_RANDGROUP 4 ///Max group for random item (increase this when needed). TODO: Remove this limit and use dynamic size if needed Edit: Just to make it clear, i remember i had to do something like that before, but now the wiki dont mention this part anymore so idk... Edited January 9, 2015 by Saisho Quote
Question
budabeads
hello master scripters! im back! hahahaha
can you teach us how to make a custom Old Blue Box, or Old Card Album...
thanks master scripters!!!!
this is for all of us!!!
13 answers to this question
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.