Jump to content

Question

Posted

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.

5 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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!

  • 0
Posted (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 by Helly
  • 0
Posted

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

  • 0
Posted

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

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