GM Takumirai Posted March 20, 2012 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
simplemhan Posted March 20, 2012 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
GM Takumirai Posted March 20, 2012 Author Posted March 20, 2012 - Ok let me try this.. thanks for quick response Quote
GM Takumirai Posted March 20, 2012 Author Posted March 20, 2012 (edited) so helpful and the guide is easy to follow.. -- SOLVED -- Edited March 20, 2012 by Takumirai Quote
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 Takumirai4 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.