akosiesooon Posted April 28, 2021 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 04/02/21 Last Seen: July 10, 2022 Share Posted April 28, 2021 ung random item lalabas sa egg tapos by % ang chance of winning ng epic / rare / normal costumes .. bka naman mga lods Link to comment Share on other sites More sharing options...
Sallycantdance Posted May 9, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 7 hours ago Share Posted May 9, 2021 On 4/28/2021 at 11:20 PM, akosiesooon said: ung random item lalabas sa egg tapos by % ang chance of winning ng epic / rare / normal costumes .. bka naman mga lods function script CustomBox { setarray .i1[1],12221,12263,14765,12211; // Common Items set .i1rand,rand(1,4); // Randomize Common Items; just change max amount if you add items setarray .i2[1],12216,12215; // Rare Items set .i2rand,rand(1,2); // Randomize Rare Items; just change max amount if you add items setarray .i3[1],12412,677; // Super Rare Items set .i3rand,rand(1,2); //Randomize Super Rare Items; just change max amount if you add items set .chance, rand(100); // Super Rare Item 3% if (.chance < 3){ getitem .i3[.i3rand],1; announce "["+strcharinfo(0)+"] won a ["+getitemname(.i3[.i3rand])+"] from the Lucky Egg.",0; end; } // Rare Item 15% else if (.chance < 15){ getitem .i2[.i2rand],1; announce "["+strcharinfo(0)+"] won a ["+getitemname(.i2[.i2rand])+"] from the Lucky Egg.",0; end; } // Common Items else { getitem .i1[.i1rand],1; end; } } Link to comment Share on other sites More sharing options...
Recommended Posts