Jump to content
Kudo

percentage ng random item sa box

Recommended Posts

pwede bang sa chance % ng items ay mag kaparehas for example eto po  

setarray [email protected][0],1,512,1; //Gallon Hat of Flame << same 1 %

setarray [email protected][0],1,512,1; //Crow_Tengu_Mask  << same 1 %

pag parehas ba 1% mag kakaron ba ng conflict?? or ok lang na may kaparehas ng chances


Sample Script.. 
set [email protected],9;
    //<%>,<ItemID>,<Amount>
    setarray [email protected][0],1,512,1; //Gallon Hat of Flame
    setarray [email protected][0],2,512,1; //Crow_Tengu_Mask
    setarray [email protected][0],3,512,1; //Canopy 
    setarray [email protected][0],5,7179,10; //PODS
    setarray [email protected][0],30,969,150; //(Gold) 
    setarray [email protected][0],80,12016,10; //Speed_Up_Potion
    setarray [email protected][0],90,12214,5; //12214
    setarray [email protected][0],95,12412,5; //HE_Bubble_Gum
    setarray [email protected][0],70,12103,5; //Bubble Gum
    setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
    set [email protected], rand(1,[email protected]);
    if (rand(1,100) > getd("[email protected]"[email protected]+"[0]"))

Link to comment
Share on other sites

1 hour ago, Kudo said:

pwede bang sa chance % ng items ay mag kaparehas for example eto po  

setarray [email protected][0],1,512,1; //Gallon Hat of Flame << same 1 %

setarray [email protected][0],1,512,1; //Crow_Tengu_Mask  << same 1 %

pag parehas ba 1% mag kakaron ba ng conflict?? or ok lang na may kaparehas ng chances


Sample Script.. 
set [email protected],9;
    //<%>,<ItemID>,<Amount>
    setarray [email protected][0],1,512,1; //Gallon Hat of Flame
    setarray [email protected][0],2,512,1; //Crow_Tengu_Mask
    setarray [email protected][0],3,512,1; //Canopy 
    setarray [email protected][0],5,7179,10; //PODS
    setarray [email protected][0],30,969,150; //(Gold) 
    setarray [email protected][0],80,12016,10; //Speed_Up_Potion
    setarray [email protected][0],90,12214,5; //12214
    setarray [email protected][0],95,12412,5; //HE_Bubble_Gum
    setarray [email protected][0],70,12103,5; //Bubble Gum
    setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
    set [email protected], rand(1,[email protected]);
    if (rand(1,100) > getd("[email protected]"[email protected]+"[0]"))

pwede at di yan conflict.

  • Upvote 1
Link to comment
Share on other sites

11 minutes ago, Yonko said:

pwede at di yan conflict.

pano naman dito 
 setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
may nabasa kasi ako na need daw lagyan ng F_Rand saan ko ba sya i sisingit kasi pag rand lang daw eh 2 items lang daw ang inaaccept nya..

Link to comment
Share on other sites

10 hours ago, Kudo said:

pano naman dito 
 setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
may nabasa kasi ako na need daw lagyan ng F_Rand saan ko ba sya i sisingit kasi pag rand lang daw eh 2 items lang daw ang inaaccept nya..

F_rand is for 2 or more
ex:
 setarray [email protected][0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
rand is 2 only 
ex
rand (1.20)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.