Jump to content
  • 0

Question

Posted

how to make a new item group?

i want to make a new box wherein if a player open a box all it contains 1 custom items

 

the item group contains all custom items of the server 

4 answers to this question

Recommended Posts

Posted

or, on your custom item, inside { Script }, give callfunc that call your function to give random item to player. :D

 

itemid,,,,,,,,,,,,,,,,,,,{ callfunc CustomRand; }
 
function%tab%script%tab%CustomRand%tab%{
switch(rand(2)){
case 0: getitem 501; break;
case 1: getitem 502; break;
}
}
  • Upvote 1
Posted

You mean like the character double clicks the box and it generates fixed set of custom items? For this you wont need a seperate item group.

For example check the script for Alchemist Card Box item #13927 Yes they are cards but you get the general idea.

 

But If you mean like an OBB which generates random items from a list then check this => http://rathena.org/wiki/Groupranditem

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