Jump to content
  • 0

Group random item problem


Question

Posted (edited)

I'm trying to make a custom item to give one random item based on chance. The item is basically Old Blue Box just with different items. So far I've put my item_db code in:

22556,Quest_Prize2,Quest Prize Box 2,2,10000,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ getitem groupranditem(IG_qpb2),1; },{},{}

and I made the .txt file in the db folder and named it item_qpb2.txt just like Old Blue Box and put the items i want in there like so:

15,22550,35
15,22551,25
15,22552,15
15,22553,10
15,22554,5

But I can't seem to get this to work. I'm guessing its because of the IG_qpb2 part in the item_db code but I don't know what to do about that.

Edited by affinity865

5 answers to this question

Recommended Posts

Posted

http://ea.dj-yhn.com...c=groupranditem

Details for command groupranditem:

* groupranditem <group id>;

Returns the item_id of a random item picked from the group specified. The

different groups and their group number are specified in db/item_group_db.txt

When used in conjunction with other functions, you can get a random item. For

example, for a random pet lure:

getitem groupranditem(15),1;

  • Upvote 1

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