GM Takumirai Posted March 20, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted March 20, 2012 (edited) - requesting a script like an obb - example: 1 box if open it will randomly select 10 items inside the list of the box.. can someone teach me how to script it? Edited March 20, 2012 by Takumirai Quote Link to comment Share on other sites More sharing options...
simplemhan Posted March 20, 2012 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 308 Reputation: 3 Joined: 12/18/11 Last Seen: March 4, 2014 Share Posted March 20, 2012 (edited) this is the same script in obb. item_db2 script 25500,Custom_Box,Custom Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_whatever),1; },{},{} const.txt: IG_whatever<TAB>62 Find IG_Advanced_Weapons_Box 61, check the last number and name for the last IG_ and add the following below that IG_whatever 62 (Depending on the last ID in there of course AND make sure to tab after IG_whatever, NOT space) item_group_db.txt: import: db/item_whatever.txt item_whatever.txt: 62,<Item ID>,<Rate> 62,<Item ID>,<Rate> 62,<Item ID>,<Rate> 62,<Item ID>,<Rate> // As many as you want item_whatever.txt // Structure of Database: // GroupID,ItemID,Rate 62,ID,1 //The Group ID you must set in your db/const.txt 62,5013,1 //Lord Kaho's Horn itemdb.h #define MAX_ITEMGROUP #62 - change this to your IG_whatever# and add plus 1 means #define MAX_ITEMGROUP #63 for my example Edited March 20, 2012 by simplemhan Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted March 20, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Author Share Posted March 20, 2012 - Ok let me try this.. thanks for quick response Quote Link to comment Share on other sites More sharing options...
simplemhan Posted March 20, 2012 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 308 Reputation: 3 Joined: 12/18/11 Last Seen: March 4, 2014 Share Posted March 20, 2012 you need to recompile. Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted March 20, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Author Share Posted March 20, 2012 (edited) so helpful and the guide is easy to follow.. -- SOLVED -- Edited March 20, 2012 by Takumirai Quote Link to comment Share on other sites More sharing options...
Question
GM Takumirai
- requesting a script like an obb
- example:
1 box if open it will randomly select 10 items inside the list of the box.. can someone teach me how to script it?
Edited by TakumiraiLink to comment
Share on other sites
4 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.