Delusion Posted July 22, 2016 Posted July 22, 2016 How can I make a headgear box? I have a custom box already. I just want it to give a random headgear ( that i add to the list ) once I open it. Like I open "rathena headgear box" i want it to give a random headgear I've put to the list or where ever. Quote
0 Stolao Posted July 22, 2016 Posted July 22, 2016 You need to add a new IG_ in your const.txt Then add items to /import/item_misc.txt Then make a box like blue box calling your custom IG_ 1 Quote
0 Delusion Posted July 22, 2016 Author Posted July 22, 2016 You need to add a new IG_ in your const.txt Then add items to /import/item_misc.txt Then make a box like blue box calling your custom IG_ Thank you! Quote
0 Helly Posted July 22, 2016 Posted July 22, 2016 (edited) Or you can even try making it by an easy way using the item script:getitem callfunc("F_Rand",item,item,item,item,...),1; This is an usable item: ItemID,ITEM_NAME,Item Name,2,0,,100,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem callfunc("F_Rand",itemid,itemid,itemid,itemid,...),1; },{},{} And that item will randomly give you only 1 of thats items you put there Edited July 22, 2016 by Helly Quote
0 Stolao Posted July 22, 2016 Posted July 22, 2016 Or you can even try making it by an easy way using the item script: getitem callfunc("F_Rand",item,item,item,item,...),1; This is an usable item: ItemID,ITEM_NAME,Item Name,2,0,,100,,,,,0xFFFFFFFF,63,2,,,,,,{ getitem callfunc("F_Rand",itemid,itemid,itemid,itemid,...),1; },{},{}And that item will randomly give you only 1 of thats items you put there Only thing I don't like about F_rand is its not a weighted chance like item boxes Which Is why I made this https://github.com/Stolao/Npc_Release/blob/master/Custom_Functions/F_ItemWeight.txt Quote
0 Helly Posted July 22, 2016 Posted July 22, 2016 Yeah but, if you want to make a random box with only 3 or 5 or even 10 items i think the db is enoght, cause for me the IG_ is mor for box that contain more than 15 items, but is really a very personal preceptions. Quote
Question
Delusion
How can I make a headgear box? I have a custom box already.
I just want it to give a random headgear ( that i add to the list ) once I open it.
Like I open "rathena headgear box" i want it to give a random headgear I've put to the list or where ever.
5 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.