daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.     targetpayouth: {
  3.         value: 2, type: 'multiplier', label: 'Target Payout (Higher)'},
  4.     targetcounth: {
  5.         value: 2, type: 'text', label: 'Target Count (Higher)'},
  6.     targetpayoutl: {
  7.         value: 2, type: 'multiplier', label: 'Target Payout (Lower)'},
  8.     targetcountl: {
  9.         value: 2, type: 'text', label: 'Target Count (Lower)'},
  10.     bet: {
  11.         value: 100, type: 'balance', label: 'Base Bet'},
  12.     payout: {
  13.         value: 2, type: 'multiplier', label: 'Base Payout' },
  14.     betincrease: {
  15.         value: 2, type: 'multiplier', label: 'Increase Bet By' },
  16.     streak: {
  17.         value: 12, type: 'text', label: 'Streak' },
  18.     range: {
  19.         value: 12, type: 'text', label: 'Range' }
  20. };
  21.  
  22. if (config.targetpayouth.value <= 0) {
  23.     config.targetcounth.value = 999999;
  24. }
  25. if (config.targetpayoutl <= 0) {
  26.     config.targetcountl.value = 999999;
  27. }
  28. var lastlost = false;
  29. var currentBet = config.bet.value;
  30. var currentMultiplier = config.payout.value;
  31. var lossStreak = 0;
  32. var maxlossStreak = 0;
  33. var losecount = 0;
  34. var lossStreak = 0;
  35. var wincount = 0;
  36. var maxbet = 0;
  37. var maxloss = 0;
  38. var loss = 0;
  39. var count = 0;
  40. var profit = 0;
  41. var time = new Date().getTime();
  42. var trigger = false;
  43. var triggercounth = 0;
  44. var triggercountl = 0;
  45.  
  46. engine.on('GAME_STARTING', function() {
  47.     if (trigger) {
  48.         if (engine.history.first().bust >= config.targetpayouth.value) {
  49.             triggercounth++;
  50.         } else {
  51.             triggercounth = 0;
  52.         }
  53.         if (engine.history.first().bust <= config.targetpayoutl.value) {
  54.             triggercountl++;
  55.         } else {
  56.             triggercountl = 0;
  57.         }
  58.         if ((triggercounth >= config.targetcounth.value) || (triggercountl >= config.targetcountl.value)) {
  59.             triggercounth = 0;
  60.             triggercountl = 0;
  61.             trigger = false;
  62.         } else {
  63.             return;
  64.         }
  65.     }
  66.     if(lastlost) {
  67.         currentBet *= config.betincrease.value;
  68.     } else {
  69.         if (lossStreak >= (config.streak.value - config.range.value)) {
  70.             config.streak.value++;
  71.         }
  72.         currentBet = userInfo.balance / ((Math.pow(config.betincrease.value, parseInt(config.streak.value) + 1) - 1) / (config.betincrease.value - 1));
  73.         currentMultiplier = config.payout.value;
  74.     }
  75.     log(`[Bot]배팅액 : ${Math.round(currentBet / 100)} 배당 : ${currentMultiplier}`);
  76.     engine.bet(Math.round(currentBet / 100) * 100, currentMultiplier);
  77. });
  78.  
  79. engine.on('GAME_ENDED', function() {
  80.     var lastGame = engine.history.first();
  81.     if (!lastGame.wager) {
  82.         return;
  83.     }
  84.     if (lastGame.cashedAt) {
  85.         profit += Math.round(currentBet / 100) * (currentMultiplier - 1);
  86.         loss = 0
  87.         lastlost = false;
  88.         wincount++;
  89.         lossStreak = 0;
  90.         log("[Bot] 승리");
  91.     } else {
  92.         profit -= Math.round(currentBet / 100);
  93.         loss += Math.round(currentBet / 100);
  94.         lastlost = true;
  95.         losecount++;
  96.         lossStreak++;
  97.         trigger = true;
  98.         log("[Bot] 패배");
  99.     }
  100.     if (maxlossStreak < lossStreak) maxlossStreak = lossStreak;
  101.     if (maxloss < loss) maxloss = loss;
  102.     if (maxbet < currentBet) maxbet = currentBet;
  103.     log(`[Bot]게임 결과 : ${lastGame.bust}`);
  104.     count++;
  105.     log(`[Bot]게임 횟수 : ${count}`);
  106.     log(`[Bot]승리 횟수 : ${wincount}`);
  107.     log(`[Bot]패배 횟수 : ${losecount}`);
  108.     log(`[Bot]연패 횟수 : ${lossStreak}`);
  109.     log(`[Bot]최다 연패 횟수 : ${maxlossStreak}`);
  110.     log(`[Bot]최다 배팅액 : ${Math.round(maxbet / 100)}`);
  111.     log(`[Bot]최다 누적 배팅액 : ${maxloss}`);
  112.     log(`[Stats]잔고 : ${userInfo.balance / 100}`);
  113.     log(`[Stats]순수익 : ${profit}`);
  114.     log(`[Stats]1시간 예상 수익 : ${(profit / ((new Date().getTime() - time) / 1000) * 60 * 60).toFixed(2)} bits`);
  115.     log(`[Stats]24시간 예상 수익 : ${(profit / ((new Date().getTime() - time) / 1000) * 60 * 60 * 24).toFixed(2)} bits`);
  116.     log("\n")
  117. });
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