Files
2026-02-04 23:47:45 +08:00

336 lines
5.9 KiB
JavaScript

gameabc_face.ontimer_1129 = function(gameid, spid, times, timelong, alltimes)
{
set_self(1132,7,get_self(1132,7)-1);
if(get_self(1132,7)<=9)
{
if(get_self(1132,7)==0)
{
set_self(1129,57,0,0,0);
Utl.playSound(yinxiao[3]);
}
else
{
set_self(1132,20,20,0,0);
set_self(1132,18,320,0,0);
}
}
};
gameabc_face.ontimer_1130 = function(gameid, spid, times, timelong, alltimes)
{
set_self(1133,7,get_self(1133,7)-1);
if(get_self(1133,7)<=9)
{
if(get_self(1133,7)==0)
{
set_self(1130,57,0,0,0);
Utl.playSound(yinxiao[3]);
}
else
{
set_self(1133,20,20,0,0);
set_self(1133,18,196,0,0);
}
}
};
gameabc_face.ontimer_1131 = function(gameid, spid, times, timelong, alltimes)
{
set_self(1134,7,get_self(1134,7)-1);
if(get_self(1134,7)<=9)
{
if(get_self(1134,7)==0)
{
set_self(1131,57,0,0,0);
Utl.playSound(yinxiao[3]);
}
else
{
set_self(1134,20,20,0,0);
set_self(1134,18,1068,0,0);
}
}
};
gameabc_face.ontimer_1154 = function(gameid, spid, times, timelong, alltimes)
{
if(sc.length==0&&tishi.length!=0)
{
set_self(1154,43,2,0,0);
}
else
{
set_self(1154,37,0,0,0);
set_self(1154,43,1,0,0);
}
set_self(1154,57,0,0,0);
};
gameabc_face.ontimer_1168 = function(gameid, spid, times, timelong, alltimes)
{
fapai=fapai+1;
set_self(1012+fapai,37,1,0,0);
if(fapai<=16)
{
set_self(1013,18,get_self(1013,18,0,0,0)-50,0,0);
for(var a=1013;a<=1028;a++)
{
set_self(a,18,get_self(1013,18,0,0,0)+50*(a-1013),0,0);
}
}
else
{
set_self(1029,18,get_self(1029,18,0,0,0)-50,0,0);
for(var a=1029;a<=1047;a++)
{
set_self(a,18,get_self(1029,18,0,0,0)+50*(a-1029),0,0);
}
}
if(fapai==35)
{
set_self(1168,57,0,0,0);
set_self(1048,57,1000,0,0);
}
};
function dingshi () {
set_self(1132,20,40,0,0);
set_self(1132,7,30);
set_self(1132,18,310,0,0);
set_self(1133,20,40,0,0);
set_self(1133,7,30);
set_self(1133,18,186,0,0);
set_self(1134,20,40,0,0);
set_self(1134,7,30);
set_self(1134,18,1058,0,0);
set_self(1129,57,0,0,0);
set_self(1130,57,0,0,0);
set_self(1131,57,0,0,0);
};
function daojishi () {
if(kongzhiquan==1)
{
if(Utl.getMySeat()==0)
{
set_self(1129,57,1000,0,0); /////////出牌倒计时//////////
set_self(1129,37,1,0,0);
set_self(1132,37,1,0,0);
}
if(Utl.getMySeat()==1)
{
set_self(1130,57,1000,0,0); /////////出牌倒计时//////////
set_self(1130,37,1,0,0);
set_self(1133,37,1,0,0);
}
if(Utl.getMySeat()==2)
{
set_self(1131,57,1000,0,0); /////////出牌倒计时//////////
set_self(1131,37,1,0,0);
set_self(1134,37,1,0,0);
}
}
if(kongzhiquan==2)
{
if(Utl.getMySeat()==1)
{
set_self(1129,57,1000,0,0); /////////出牌倒计时//////////
set_self(1129,37,1,0,0);
set_self(1132,37,1,0,0);
}
if(Utl.getMySeat()==0)
{
set_self(1131,57,1000,0,0); /////////出牌倒计时//////////
set_self(1131,37,1,0,0);
set_self(1134,37,1,0,0);
}
if(Utl.getMySeat()==2)
{
set_self(1130,57,1000,0,0); /////////出牌倒计时//////////
set_self(1130,37,1,0,0);
set_self(1133,37,1,0,0);
}
}
if(kongzhiquan==3)
{
if(Utl.getMySeat()==2)
{
set_self(1129,57,1000,0,0); /////////出牌倒计时//////////
set_self(1129,37,1,0,0);
set_self(1132,37,1,0,0);
}
if(Utl.getMySeat()==1)
{
set_self(1131,57,1000,0,0); /////////出牌倒计时//////////
set_self(1131,37,1,0,0);
set_self(1134,37,1,0,0);
}
if(Utl.getMySeat()==0)
{
set_self(1130,57,1000,0,0); /////////出牌倒计时//////////
set_self(1130,37,1,0,0);
set_self(1133,37,1,0,0);
}
}
};
gameabc_face.ontimer_1406 = function(gameid, spid, times, timelong, alltimes)
{
if(get_self(1408,37,0,0,0)==0)
{
set_self(1406,57,0,0,0);
}
else
{
if(jiang[chapjushu-1].jg==5)
{
dakaixiaoju();
}
else
{
hfcp();
dijige=dijige+1;
if(dijige==shoupai.length)
{
dijilun=dijilun+1;
dijige=0;
}
}
}
};
////游戏开始 一秒后 庄家拿隐藏的三张牌/////////////////////以及牌的位置变化 /////////
gameabc_face.ontimer_1048 = function(gameid, spid, times, timelong, alltimes)
{
set_self(1048,57,0,0,0);
chshoupai=dxpaixu(chshoupai);
for(var a=1013;a<1013+chshoupai.length;a++)
{
set_self(a,43,chshoupai[a-1013]%54+1,0,0);
set_self(a,37,1,0,0);
}
var fw = Utl.changeToStatus(zhuangjia);
switch (fw){
case 0:
set_self(1129,57,1000,0,0); /////////出牌倒计时//////////
set_self(1129,37,1,0,0);
set_self(1132,37,1,0,0);
set_self(1173,37,1,0,0);
set_self(1239,37,1,0,0);
set_self(1239,41,1,0,0);
set_self(1209,7,35);
set_self(1210,7,35);
for(var a=1013;a<=1031;a++)
{
set_self(1013,18,146,0,0);
set_self(a,18,get_self(1013,18,0,0,0)+50*(a-1013),0,0);
set_self(a,19,471,0,0);
}
for(var a=1032;a<=1050;a++)
{
set_self(1032,18,146,0,0);
set_self(a,18,get_self(1032,18,0,0,0)+50*(a-1032),0,0);
set_self(a,19,564,0,0);
}
set_group(201,37,1,0,0);
set_self(1206,37,0,0,0);
set_self(1206,41,0,0,0);
set_self(1181,37,0,0,0);
set_self(1181,41,0,0,0);
break;
case 1:
set_self(1131,57,1000,0,0); /////////出牌倒计时//////////
set_self(1131,37,1,0,0);
set_self(1134,37,1,0,0);
set_self(1175,37,1,0,0);
set_self(1210,7,38);
set_self(1209,7,35);
break;
case 2:
set_self(1130,57,1000,0,0); /////////出牌倒计时//////////
set_self(1130,37,1,0,0);
set_self(1133,37,1,0,0);
set_self(1174,37,1,0,0);
set_self(1209,7,38);
set_self(1210,7,35);
break;
default:
break;
}
/////奖 分 牌子
set_self(1169,37,1,0,0);
for(var a=0;a<jiren;a++)
{
set_self(1185+a,7,0+'分');
set_self(1176+a,7,Func.subString(Utl.getNicknameBySeat(a),6,true)+':');
set_self(1176+a,37,1,0,0);
set_self(1256+a,7,0+'奖');
set_self(1256+a,37,1,0,0);
}
for(var a=1013;a<=1050;a++)
{
set_self(a,41,1,0,0);
}
var zdwsk = zhawushik(chshoupai);
zhadanwushik=zdwsk[0];
wsklist=zdwsk[1];
set_group(223,37,1,0,0);
//qjtime = window.setInterval(jmduibi,2000);
};