Zutcer Posted July 6, 2017 Share Posted July 6, 2017 (edited) I want to make an olbbluebox with callfunc, inside the script I want to separate the IDs to be delivered and their amount per percentage, as an example In a range of 10% 607.15; 608.25; In a range of 30% 607.10; 608.20; somebody can help me? Edited July 6, 2017 by Zutcer Quote Link to comment Share on other sites More sharing options...
2 Deleted User Posted July 6, 2017 Share Posted July 6, 2017 1 hour ago, Zutcer said: I want to make an olbbluebox with callfunc, inside the script I want to separate the IDs to be delivered and their amount per percentage, as an example In a range of 10% 607.15; 608.25; In a range of 30% 607.10; 608.20; somebody can help me? Please try this. function script F_RandomRate { .@r = rand(100); if( .@r <= 10 ) // 10% Rate setarray .@i,607,15,608,25; else if( .@r <= 40 ) { // 40% Rate setarray .@i,607,10,608,20; } else { dispbottom( "You recieved nothing."); end; } getitem .@i[0],.@i[1]; end; } 1 Quote Link to comment Share on other sites More sharing options...
0 Zutcer Posted July 9, 2017 Author Share Posted July 9, 2017 Thx, its work :DDD Quote Link to comment Share on other sites More sharing options...
I want to make an olbbluebox with callfunc, inside the script I want to separate the IDs to be delivered and their amount per percentage, as an example
In a range of 10%
607.15;
608.25;
In a range of 30%
607.10;
608.20;
somebody can help me?
Edited by ZutcerLink to comment
Share on other sites