48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
var chongl = function () {//重连
|
|
if (get_self(149,37,0,0,0)==1) {
|
|
if (jszt==0) {
|
|
var shouzhen = [];
|
|
for (var i =0;i<27;i++) {
|
|
//if (get_self(1001+i,19,0,0,0)==584||get_self(1001+i,19,0,0,0)==503||get_self(1001+i,19,0,0,0)==550||get_self(1001+i,19,0,0,0)==469||get_self(i+1001,19,0,0,0)==531||get_self(i+1001,19,0,0,0)==565) {
|
|
if (get_self(1001+i,19,0,0,0)==myCardPositionY1[0]
|
|
||get_self(1001+i,19,0,0,0)==myCardPositionY1[1]
|
|
||get_self(1001+i,19,0,0,0)==myCardPositionY2[0]
|
|
||get_self(1001+i,19,0,0,0)==myCardPositionY2[1]
|
|
) {
|
|
if (get_self(1001+i,37,0,0,0)==1) {
|
|
shouzhen.push(get_self(1001+i,43,0,0,0));
|
|
}
|
|
}
|
|
}
|
|
if (mypaizhen.length==shouzhen.length) {
|
|
for (var i =0;i<mypaizhen.length;i++) {
|
|
if (mypaizhen[i]!=shouzhen[i]) {
|
|
Net.ws_tcp.close();
|
|
break;
|
|
}
|
|
}
|
|
}else{
|
|
Net.ws_tcp.close();
|
|
}
|
|
if (zhaopengyou_bianliang.pub.zhaopai +1 != get_self(1143,43,0,0,0)) {
|
|
Net.ws_tcp.close();
|
|
}
|
|
if (get_self(1143,43,0,0,0)==55&&get_self(1143,37,0,0,0)==1) {
|
|
Net.ws_tcp.close();
|
|
}
|
|
for (var i =0;i<zhaopengyou_bianliang.pub.shengli.length;i++) {
|
|
if (zhaopengyou_bianliang.pub.shengli[i] == Utl.getMySeat()){
|
|
cl_shengli = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
set_self(1190,57,0,0,0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|