JulioFortunato Posted May 15, 2020 Posted May 15, 2020 (edited) Hi there! How can I create a custom item box that gives the player a random item, like Old Blue Box? I've found some topics but they seem to be for and old file structure of rAthena. It'd be nice to have an up-to-date tutorial. I've also found this topic, that uses a script function to get the items, but i'd like to give each item a custom chance of being gotten. Can someone help me with this? --------------------------- EDIT --------------------------- Just got this working, a moderator can close this topic, please. Edited May 15, 2020 by JulioFortunato Quote
0 Surefirer Posted May 22, 2020 Posted May 22, 2020 you need first to create an custom item, then add items you want to give in the item_package.txt. You can find an offical egg or box as an example. You also need to give your custom box an id in the const.txt file. 1. create custom item. eg: 22953,Enchant_Stone_Box7,Enchant_Stone_Box7,18,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ getgroupitem(IG_Enchant_Stone_Box7); },{},{} 2. add your egg or box id in const.txt eg: IG_Enchant_Stone_Box7 1028 3. add your items in the item_package.txt ( you need to read the doc at the very top to configure the database structure) eg: IG_Enchant_Stone_Box7,6963,2,1 IG_Enchant_Stone_Box7,6964,1,1 IG_Enchant_Stone_Box7,6999,2,1 IG_Enchant_Stone_Box7,25000,2,1 IG_Enchant_Stone_Box7,6943,3,1 IG_Enchant_Stone_Box7,6642,3,1 IG_Enchant_Stone_Box7,25016,3,1 IG_Enchant_Stone_Box7,6944,3,1 Quote
Question
JulioFortunato
Hi there!
How can I create a custom item box that gives the player a random item, like Old Blue Box?
I've found some topics but they seem to be for and old file structure of rAthena. It'd be nice to have an up-to-date tutorial.
I've also found this topic, that uses a script function to get the items, but i'd like to give each item a custom chance of being gotten.
Can someone help me with this?
--------------------------- EDIT ---------------------------
Edited by JulioFortunatoJust got this working, a moderator can close this topic, please.
2 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.