balanar12321 Posted April 11, 2015 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 04/11/15 Last Seen: August 13, 2021 Share 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 Link to comment Share on other sites More sharing options...
balanar12321 Posted April 11, 2015 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 04/11/15 Last Seen: August 13, 2021 Author Share Posted April 11, 2015 (edited) Thx Kurofly,, Its ok now, Edited April 11, 2015 by balanar12321 Quote Link to comment Share on other sites More sharing options...
Kurofly Posted April 11, 2015 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 283 Reputation: 31 Joined: 07/08/14 Last Seen: January 15, 2022 Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.