Jump to content

percentage ng random item sa box


Recommended Posts


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  100
  • Reputation:   0
  • Joined:  08/18/12
  • Last Seen:  

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

setarray .@P1[0],1,512,1; //Gallon Hat of Flame << same 1 %

setarray .@P2[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 .@Total,9;
    //<%>,<ItemID>,<Amount>
    setarray .@P1[0],1,512,1; //Gallon Hat of Flame
    setarray .@P2[0],2,512,1; //Crow_Tengu_Mask
    setarray .@P3[0],3,512,1; //Canopy 
    setarray .@P4[0],5,7179,10; //PODS
    setarray .@P5[0],30,969,150; //(Gold) 
    setarray .@P6[0],80,12016,10; //Speed_Up_Potion
    setarray .@P7[0],90,12214,5; //12214
    setarray .@P8[0],95,12412,5; //HE_Bubble_Gum
    setarray .@P9[0],70,12103,5; //Bubble Gum
    setarray .@Default[0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
    set .@i, rand(1,.@Total);
    if (rand(1,100) > getd(".@P"+.@i+"[0]"))

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.04
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

1 hour ago, Kudo said:

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

setarray .@P1[0],1,512,1; //Gallon Hat of Flame << same 1 %

setarray .@P2[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 .@Total,9;
    //<%>,<ItemID>,<Amount>
    setarray .@P1[0],1,512,1; //Gallon Hat of Flame
    setarray .@P2[0],2,512,1; //Crow_Tengu_Mask
    setarray .@P3[0],3,512,1; //Canopy 
    setarray .@P4[0],5,7179,10; //PODS
    setarray .@P5[0],30,969,150; //(Gold) 
    setarray .@P6[0],80,12016,10; //Speed_Up_Potion
    setarray .@P7[0],90,12214,5; //12214
    setarray .@P8[0],95,12412,5; //HE_Bubble_Gum
    setarray .@P9[0],70,12103,5; //Bubble Gum
    setarray .@Default[0],rand(13517,12534,12103,6767,3100,7227,7608,6420,981,983),rand(1,20);
    set .@i, rand(1,.@Total);
    if (rand(1,100) > getd(".@P"+.@i+"[0]"))

pwede at di yan conflict.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  100
  • Reputation:   0
  • Joined:  08/18/12
  • Last Seen:  

11 minutes ago, Yonko said:

pwede at di yan conflict.

pano naman dito 
 setarray .@Default[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


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

10 hours ago, Kudo said:

pano naman dito 
 setarray .@Default[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 .@Default[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...