SHARE
TWEET

Untitled

a guest Jun 16th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Sample #6 : Very Optimized-Only Count & Rate In/Decrease
  2. const min = 10;
  3. const max = 30;
  4. const minimum = 300;
  5. const amount = 1000;
  6. const rate = 3;
  7. const profitper = 500;
  8. const arrayamount = 3;
  9. const base = 50;
  10. const rateincreasement = 0.05;
  11. const ratedecreasement = 0.005;
  12.  
  13. let currentrate=rate;let c=0;let history=new Array(0);let target=0;let totalloss=0;let lossstreak=0;let currentBet=1;let lastlost=!1;let maxtotalloss=0;function sleep(ms){return new Promise(resolve=>setTimeout(resolve,ms))}
  14. const main=async()=>{await this.log("starting script");while(true){c++;if(target>0){console.log(`#${c} : ${target}x`)
  15. if(lastlost){totalloss+=currentBet;if(totalloss>maxtotalloss){maxtotalloss=totalloss;console.log(maxtotalloss)}
  16. currentBet=(1/(target-1))*(totalloss+profitper);lossstreak++}else{totalloss=0;currentBet=base;lossstreak=0}
  17. if(currentBet<1){currentBet=1}
  18. const{multiplier}=await this.bet(Math.round(currentBet)*100,target);history.unshift(multiplier);if(multiplier<target){lastlost=!0;currentrate+=rateincreasement}else{currentrate=rate;lastlost=!1;this.log(`           #${c} ${Math.max(Math.round(currentBet),1) * (target - 1)}`)}
  19. target=0}else{if(currentrate>rate){currentrate-=ratedecreasement
  20. if(currentrate<rate){currentrate=rate}}
  21. if(c%2==0){const{multiplier}=await this.bet(100,1.01);history.unshift(multiplier)}else{const{multiplier}=await this.skip();history.unshift(multiplier)}}
  22. if(c<amount){continue}
  23. if(history.length>amount){history.pop()}
  24. let filtered=new Array(0);let sum=0;for(let i=0;filtered.length<arrayamount;i++){if(i>=history.length){filtered.push(history.slice(0,i));break}
  25. sum+=99/history[i];if(i>=minimum){let average=sum/(i+1)
  26. if(((99/1.99)<average)&&(average<=((99/1.98)+0.00001))){filtered.push(history.slice(0,i))}}}
  27. for(let i=0;i<Math.abs(max-min)*100;i++){let avgstreak=0;let count=0;let avgstreakc=0;for(let j=0;j<filtered.length;j++){for(let p=0;p<filtered[j].length;p++){if(filtered[j][p]<(i/100)+min){avgstreak++}else{avgstreakc++}
  28. if(j==(filtered.length-1)){if(filtered[filtered.length-1][p]>=(i/100)+min){count++}}}}
  29. avgstreak/=avgstreakc;count/=filtered[filtered.length-1].length;count*=100;let probstreak=(100/(99/((i/100)+min)))-1;if(avgstreak==Infinity){avgstreak=probstreak}
  30. let prob=((99/((i/100)+min))*((avgstreak/probstreak)+((99/((i/100)+min))/count)))/2;if(prob==Infinity){console.log("\n\n\n\n\n\n\n\n\n\nInfinity")
  31. console.log(avgstreak)
  32. console.log(count)
  33. console.log("\n\n\n\n\n\n\n\n\n\n")}
  34. if((prob/(99/((i/100)+min)))>=currentrate){target=Math.round(((i/100)+min)*100)/100}}}}
  35. while(!0){try{this.log("Starting Script.")
  36. await main()}catch(error){this.log("Connection Closed. Restart After 1 Second.")
  37. await sleep(1000);continue}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top