Jump to content

Baka meron kayo script nung mystery egg?


akosiesooon

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.01
  • Content Count:  13
  • Reputation:   0
  • Joined:  04/02/21
  • Last Seen:  

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

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

×
×
  • Create New...