Jump to content
  • 0

ITEM GROUP


Erba

Question


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

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 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

okay sir! thanks ill try this later! ^^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

thanks for the help sir^^

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