Jump to content
  • 0

Headgear Box


Delusion

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/31/14
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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_

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/31/14
  • Last Seen:  

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!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  258
  • Reputation:   53
  • Joined:  01/09/12
  • Last Seen:  

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

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  258
  • Reputation:   53
  • Joined:  01/09/12
  • Last Seen:  

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.  /ok

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...