Vincent Posted July 14, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Share Posted July 14, 2013 Hi, how is it possible to make the amount of items random? for example random 1-10. if (.@check_level > 4) getitem 508,1; else getitem 507,1; Quote Link to comment Share on other sites More sharing options...
DeadlySilence Posted July 14, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share Posted July 14, 2013 if (.@check_level > 4) { getitem 508, rand(1, 10); } else { getitem 507, rand(1, 10); } Like this. Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 14, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Yesterday at 05:27 AM Share Posted July 14, 2013 getitem 507,rand(1,10); Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 14, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 14, 2013 (edited) getitem 508,rand(1,10); Edit: holy crap!!! I refreshed and bam! 2 post lawl Edited July 14, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
Vincent Posted July 14, 2013 Group: Members Topic Count: 130 Topics Per Day: 0.03 Content Count: 528 Reputation: 18 Joined: 09/11/12 Last Seen: March 5, 2020 Author Share Posted July 14, 2013 thanks. Like everytime to DeadlySilence, Emistry and Skorm. Quote Link to comment Share on other sites More sharing options...
Question
Vincent
Hi, how is it possible to make the amount of items random?
for example random 1-10.
Link to comment
Share on other sites
4 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.