Jump to content
  • 0

Create custom item box


JulioFortunato

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/21/12
  • Last Seen:  

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.02
  • Content Count:  113
  • Reputation:   1
  • Joined:  12/15/18
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.03
  • Content Count:  55
  • Reputation:   0
  • Joined:  05/30/22
  • Last Seen:  

i dont have IG_ at may const.txt

Link to comment
Share on other sites

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.

×
×
  • Create New...