Jump to content
  • 0

Need Help for Disguise Event Random Reward Either of the 2Items


Question

Posted

Can you guys please help me on this script

 

set $rand, rand(14232),(7227);getitem $rand,1;

 

i want the prize of each correct answer in disguise event in random either of the 2 items

 

Thx and More Power :D

2 answers to this question

Recommended Posts

Posted
setarray @items[0] , 14232 , 7227;
getitem @items[rand(getarraysize(@items))],1;

You can add as many items as you want by adding their ids to @items.

 

if you want to add items with different amounts, you can do this:

setarray @items[0] , 14232 , 7227;
setarray @amounts[0] , 1 , 1;
@rand = rand(getarraysize(@items))
getitem @items[@rand],@amounts[@rand];

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