Our members are dedicated to PASSION and PURPOSE without drama!

Coded Mj 4 single hot numbers.

Started by Ralph, November 27, 2012, 05:27:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ralph

I coded the method by Ken, as it is a 4  single number using  repeaters, it is something I like to use.  I use here 18 numbers tracking, but can easy be changed. The script plays a 0.01 chip on red until 18 numbers are tracked and then bet any betsize we chose on the hottest sector for the last 18 numbers shown. As soon a number is added the oldest is removed. On tie, the oldest  hot group is used.  I have tested it some today, it looks very good.


The script is not displayed correct, I pasted it but some is gone, like the index at betarr the is gone.


The script:

Code (javascript) Select



A = ",5,6,22,32,";
B = ",15,18,24,27,";
C = ",13,16,19,29,";
D = ",4,7,33,36,";
E = ",1,11,21,28,";
H = ",2,12,20,30,";
J = ",8,14,25,35,";
K = ",3,17,23,31,";
L = ",9,10,26,34,";
betarr = new Array();
var sc = new Array("5,6,22,32","15,18,24,27","13,16,19,29","4,7,33,36","1,11,21,28","2,12,20,30","8,14,25,35","3,17,23,31","9,10,26,34");
function extfunc(number,betsize, bet){
  var num = number;
  if(num == 0){ return bet + "/" + betsize;}
   
      if(A.indexOf("," + num + ",")  >-1){ betarr[betarr.length] = "A";}
      else if(B.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "B";}
      else if(C.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "C";}
      else if(D.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "D";}
      else if(E.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "E";}
      else if(H.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "H";}
      else if(J.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "J";}
      else if(K.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "K";}
      else if(L.indexOf("," + num + ",")>-1){ betarr[betarr.length] = "L";}
       var ny = new Array();
      if(betarr.length>18){
     for(i=1;i<betarr.length;i++){
    ny[i-1] = betarr[i];
     }
     
     
     
   } else { return "rr/0";}
   
      betarr = ny;
      var res = betarr.join("");
      temp = new Array();
      var i = 0;
       
      temp[0]  =    res.match(/A/g) ;
          temp[1]  =    res.match(/B/g);
          temp[2]  =    res.match(/C/g);
          temp[3]  =    res.match(/D/g);
          temp[4]  =    res.match(/E/g);
          temp[5]  =    res.match(/H/g);
          temp[6]  =    res.match(/J/g);
          temp[7]  =    res.match(/K/g);
          temp[8]  =    res.match(/L/g);
          tal=0; w=0;
          for(i=0;i<temp.length;i++){
       if(temp[i] == null) temp[i] = "";
          if(tal<temp[i].length){
          tal= temp[i].length;
          w=i;
          }
         
          }
         
         
       
     return sc[w] + "/" + betsize;
}}

VLS

Quote from: Ralph on November 27, 2012, 05:27:11 PM
The script is not displayed correct, I pasted it but some is gone, like the index at betarr the is gone.


Dear Ralph, in order to avoid re-formatting enclose your code with a [code] tag.


Email/Paypal: betselectiongmail.com
-- Victor

Ralph


Victor!I try to that,but it use to not work, or be very hard to read.

VLS

How about using:

[code=javascript]
// Your code here
[/code]

It should format the block using javascript syntax highlighting...  O:-)
Email/Paypal: betselectiongmail.com
-- Victor

Ralph

Shall I type it, I chose on the menu, but do not get the format.

VLS

Quote from: Ralph on November 27, 2012, 08:17:22 PM
Shall I type it


Yes, it is more reliable to do it by hand.


Given it's only a tiny bit of forum code to get proper formatting, I'd say it's worth it  :)
Email/Paypal: betselectiongmail.com
-- Victor

Ralph

It is still missing in the code I will try to repost it.


Reposted and it looks nothing is gone.