balanar12321 Posted April 11, 2015 Posted April 11, 2015 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 Quote
balanar12321 Posted April 11, 2015 Author Posted April 11, 2015 (edited) Thx Kurofly,, Its ok now, Edited April 11, 2015 by balanar12321 Quote
Kurofly Posted April 11, 2015 Posted April 11, 2015 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]; Quote
Question
balanar12321
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
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.