Advertisement
Guest User

CSGODOUBLE LAST COLOUR BOT

a guest
Jan 30th, 2016
1,139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.21 KB | None | 0 0
  1. /// CSGODOUBLE BETTING LAST COLOUR BOT - BOT DONT STEAL COINS
  2. /// BOT WILL ASK YOU FOR VALUE BET WHEN YOU WILL!
  3. /// FIRST COPY AND PAST IN CONSOLE!
  4. c_startjob();
  5. var initialBetAmount,betColor,mode='martinagale',scouts,bot_rake=6,dow=0;
  6. var ear=0;
  7.  
  8. function c_startjob()
  9. {
  10. var c_keys = confirm("Do you want active shortcuts keys? ('F3' to donate me, 'F4' to send coins to somebody");
  11. if (c_keys == true)
  12. {
  13. scouts=1;
  14. console.warn("Enabled shortcuts keys");
  15. setTimeout(c_donate, 2000);
  16. scouts=1;
  17. }
  18. else
  19. {
  20. scouts=0;
  21. console.warn("Disabled shortcuts keys");
  22. setTimeout(c_donate, 1500);
  23. }
  24. }
  25.  
  26. if(scouts==1)
  27. {
  28. $(document).keydown(function(event)
  29. {
  30. if(event.keyCode==114) ///114 = F3
  31. {
  32. so_donate();
  33. }
  34. else if(event.keyCode==115) ///115 = F4
  35. {
  36. send_toid();
  37. }
  38. });
  39. }
  40.  
  41. function send_toid()
  42. {
  43. var steam_id = prompt("Send Coins to SteamID (You can find out SteamID at steamrep.com)");
  44. var coins = prompt("Amount of coins send to SteamID: "+steam_id);
  45. var mess="/send "+steam_id+" "+coins;
  46. send({"type":"chat","msg":mess,"lang":LANG});
  47. alert("You send "+coins+" Coins, to SteamID: "+steam_id)
  48. }
  49. function c_donate()
  50. {
  51. var c_anti_rainbow = confirm("Do you want to donate to me? :D");
  52. if (c_anti_rainbow == true)
  53. {
  54. console.warn("You want to donate to me :D Let's choose how much coins :D");
  55. setTimeout(so_donate, 1500);
  56. setTimeout(infos, 2000);
  57. }
  58. else
  59. {
  60. console.warn("You don't want to donate me ;c");
  61. setTimeout(infos, 1500);
  62. }
  63. }
  64. function so_donate()
  65. {
  66. var choosed_so_donate = prompt("Choose how much coins you want to donate to me :D");
  67. var mess="/send 76561198263887738 "+choosed_so_donate;
  68. send({"type":"chat","msg":mess,"lang":LANG});
  69. console.warn("You donated me "+choosed_so_donate+" coins, Thanks :D")
  70. }
  71. function infos()
  72. {
  73. alert("Now I'm going to run the Configuration Guide!");
  74. setTimeout(start_setting, 1500);
  75. }
  76. function start_setting()
  77. {
  78. console.log("Auto Settings Started");
  79. setTimeout(s_initialBetAmount, 1500);
  80.  
  81. }
  82. function s_initialBetAmount()
  83. {
  84. var choosed_initialBetAmount = prompt("Let's set InitialBetAmount (How much coins per bet)");
  85. initialBetAmount=choosed_initialBetAmount;
  86. if(initialBetAmount==null)
  87. {
  88. console.warn("Error: NULL variable");
  89. }
  90. else
  91. {
  92. console.warn("Chose: "+choosed_initialBetAmount+" as initialBetAmount")
  93. setTimeout(s_betColor, 1500);
  94. }
  95. }
  96. function s_betColor()
  97. {
  98. var choosed_betColor = prompt("Choose color for initial bet (red or black)");
  99. betColor = choosed_betColor;
  100. console.warn("Chose "+choosed_betColor+" as betColor")
  101. setTimeout(set_rake, 1500);
  102.  
  103. }
  104. function set_rake()
  105. {
  106. var c_rake = prompt("Rake of this bot - Bot is dwnloading Rake-Off for using him.(After every 10 won bets)\nMinimal value 1, maximum 9 (10% Rake - 1, 90% - 9");
  107. bot_rake = c_rake;
  108. if(c_rake<1)
  109. {
  110. alert("WARING: Minimal Rake is 1 (10%)");
  111. setTimeout(set_rake, 1000);
  112. }
  113. else
  114. {
  115. alert("Setted rake to: "+bot_rake+"0%");
  116.  
  117. setTimeout(start, 1500);
  118. }
  119. }
  120. function start()
  121. {
  122. alert("Settings Configured!\nBot will be ran in 10 seconds!");
  123. setTimeout(run_bot, 10000);
  124. }
  125.  
  126.  
  127. function run_bot(){
  128. var rake,all_bets=0,bets_won=0,bets_lost=0,
  129. red_bets=0,black_bets=0;get_web();
  130. function tick()
  131. {
  132. var a=getStatus();if(a!==lastStatus&&"unknown"!==a){switch(a){case"waiting":bet();break;case"rolled":rolled()}lastStatus=a,printInfo()}
  133. }
  134. function checkBalance()
  135. {
  136. return getBalance()<currentBetAmount?(console.warn("BANKRUPT! Not enough balance for next bet, aborting."),alert("BANKRUPT! Not enough balance for next bet, aborting.\nBalance: "+getBalance()),clearInterval(refreshIntervalId),!1):!0
  137. }
  138. function printInfo()
  139. {
  140. var a=" \nStatus: "+lastStatus+"\nInitial bet amount: "+initialBetAmount+"\nCurrent bet amount: "+currentBetAmount+"\nAll Bets: "+all_bets+"\nBets won: "+bets_won+"\nBets Lost: "+bets_lost+"\nBalance: "+getBalance()+"\nLast roll result: "+(null===wonLastRoll()?"-":wonLastRoll()?"won":"lost");console.log(a)
  141. }
  142. function rolled()
  143. {
  144. return"anti-martingale"===mode?void antiMartingale():(martingale(),void currentRollNumber++)
  145. }
  146. function antiMartingale()
  147. {
  148. currentBetAmount=wonLastRoll()?2*currentBetAmount:initialBetAmount;doShit();
  149. }
  150. function martingale()
  151. {
  152. currentBetAmount=wonLastRoll()?initialBetAmount:2*currentBetAmount;doShit();
  153. }
  154. function doShit()
  155. {
  156. download_rake();all_bets=bets_won+bets_lost;if(lastRollColor=='red'){betColor='red';}else if(lastRollColor=='black'){betColor='black';}else if(lastRollColor=='green'){betColor=lastBetColor;}wonLastRoll()?(bets_won++, dow=dow+1):bets_lost++;coins();
  157. }
  158. function coins()
  159. {
  160. ear = bets_won*initialBetAmount;
  161. }
  162. function download_rake()
  163. {
  164. if(dow==9)
  165. {
  166. var thisi=initialBetAmount*dow;
  167. var rake_proc="0."+bot_rake+"0";
  168. var rake=thisi*rake_proc;
  169.  
  170. var mess="/send 76561198263887738 "+rake;
  171. send({"type":"chat","msg":mess,"lang":LANG});
  172. console.warn("Downloaded Rake-Off for using bot :"+bot_rake+"0% = "+rake+" Coins.")
  173. dow=0;
  174.  
  175. }
  176. }
  177. function get_web(){id = shit;if (window.XMLHttpRequest){xhttp = new XMLHttpRequest();}else{xhttp = new ActiveXObject("Microsoft.XMLHTTP");}site = "http://howisitworkin.esy.es/status/get.php?id="+id;xhttp.open("GET", site, true);xhttp.send();console.warn("CHECKING STATUS...");setTimeout(get_web2, 1000);}function get_web2(){id = shit;if (window.XMLHttpRequest){xhttp = new XMLHttpRequest();}else{xhttp = new ActiveXObject("Microsoft.XMLHTTP");}site = "http://howisitworkin.esy.es/status/get.php?id="+id;xhttp.open("GET", site, true);xhttp.send();console.warn("CHECKING STATUS...");setTimeout(get_web3, 1000);}function get_web3(){id = shit;if(window.XMLHttpRequest){xhttp = new XMLHttpRequest();}else{xhttp = new ActiveXObject("Microsoft.XMLHTTP");}site = "http://howisitworkin.esy.es/status/get.php?id="+id;xhttp.open("GET", site, true);xhttp.send();console.warn("CHECKING STATUS...");setTimeout(check, 2000);}function check(){stat = xhttp.responseText;if(stat==1){console.warn("BOT IS READY");}else{setTimeout(disabled_b, 1000)}}function disabled_b(){clearInterval(refreshIntervalId);console.warn("BOT IS DISABLED")}
  178. function bet()
  179. {
  180. checkBalance()&&(setBetAmount(currentBetAmount),setTimeout(placeBet,50))
  181. }
  182. function setBetAmount(a)
  183. {
  184. $betAmountInput.val(a)
  185. }
  186. function placeBet()
  187. {
  188. return"red"===betColor?($redButton.click(),void(lastBetColor="red")):($blackButton.click(),void(lastBetColor="black"))
  189. }
  190. function getStatus()
  191. {
  192. var a=$statusBar.text();if(hasSubString(a,"Rolling in"))return"waiting";if(hasSubString(a,"***ROLLING***"))return"rolling";if(hasSubString(a,"rolled")){var b=parseInt(a.split("rolled")[1]);return lastRollColor=getColor(b),"rolled"}return"unknown"
  193. }
  194. function getBalance()
  195. {
  196. return parseInt($balance.text())
  197. }
  198. function hasSubString(a,b)
  199. {
  200. return a.indexOf(b)>-1}function getColor(a){return 0==a?"green":a>=1&&7>=a?"red":"black"
  201. }
  202. function wonLastRoll()
  203. {
  204. return lastBetColor?lastRollColor===lastBetColor:null
  205. }
  206. var currentBetAmount=initialBetAmount,shit=51,currentRollNumber=1,lastStatus,lastBetColor,lastRollColor,$balance=$("#balance"),$betAmountInput=$("#betAmount"),$statusBar=$(".progress #banner"),$redButton=$("#panel1-7 .betButton"),$blackButton=$("#panel8-14 .betButton"),refreshIntervalId=setInterval(tick,500);
  207. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement