Delusion Posted July 22, 2016 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/31/14 Last Seen: October 12, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Stolao Posted July 22, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share 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 Link to comment Share on other sites More sharing options...
0 Delusion Posted July 22, 2016 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/31/14 Last Seen: October 12, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
0 Helly Posted July 22, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 258 Reputation: 54 Joined: 01/09/12 Last Seen: December 26, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 Stolao Posted July 22, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share 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 Link to comment Share on other sites More sharing options...
0 Helly Posted July 22, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 258 Reputation: 54 Joined: 01/09/12 Last Seen: December 26, 2020 Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.