Jump to content

Question

Posted (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 by JulioFortunato

2 answers to this question

Recommended Posts

  • 0
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...