Jump to content
  • 0

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


balanar12321

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/11/15
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  04/11/15
  • Last Seen:  

Thx Kurofly,, Its ok now, 

Edited by balanar12321
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

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