var cp_fangfa=cp_fangfa||{}; ////////////////////出牌///////////////////////////////////////////////////////////////////////// cp_fangfa.chupai=function(cpjieshu){ switch (kongzhiquan){ case 1: switch (Utl.getMySeat()){ case 0: zijiyicang(); if(chupai[2]==4) { secondchupai(); qtyincangyi(); set_group(201,37,1,0,0); set_self(1206,37,1,0); set_self(1206,41,1,0); set_self(1181,37,1,0); set_self(1181,41,1,0); } else { firstchupai(); } if(cpjieshu==0) { chupaitishi(); } break; case 1: qtyincangyi(); if(chupai[2]!=4) { secondchupai(); } else { qtyincanger(); } break; case 2: qtyincanger(); if(chupai[2]==4) { zijiyicang(); firstchupai(); set_group(201,37,0,0,0); } break; } break; ///控制权为座位1////////////////// case 2: switch (Utl.getMySeat()){ case 0: qtyincanger(); if(chupai[0]==4) { zijiyicang(); firstchupai(); set_group(201,37,0,0,0); } break; case 1: /////////// zijiyicang(); if(chupai[0]==4) { secondchupai(); qtyincangyi(); set_group(201,37,1,0,0); set_self(1206,37,1,0); set_self(1206,41,1,0); set_self(1181,37,1,0); set_self(1181,41,1,0); } else { firstchupai(); } if(cpjieshu==0) { chupaitishi(); } ///////////////// break; case 2: ///////////// qtyincangyi(); if(chupai[0]!=4) { secondchupai(); } else { qtyincanger(); } break; } break; ////////////////////////////////////////////////// case 3: switch (Utl.getMySeat()){ case 0: qtyincangyi(); if(chupai[1]!=4) { secondchupai(); } else { qtyincanger(); } break; case 1: qtyincanger(); if(chupai[1]==4) { zijiyicang(); firstchupai(); set_group(201,37,0,0,0); } break; case 2: zijiyicang(); if(chupai[1]==4) { secondchupai(); qtyincangyi(); set_group(201,37,1,0,0); set_self(1206,37,1,0); set_self(1206,41,1,0); set_self(1181,37,1,0); set_self(1181,41,1,0); } else { firstchupai(); } if(cpjieshu==0) { chupaitishi(); } break; } break; } } ////////////////////不出////////////////////////////////////////////////////////////////////////////////////// cp_fangfa.buchu=function(){ switch (kongzhiquan){ /////////控制权为座位1///////// case 2: ///座位号为2的也不出 if(chupai[2]==2) { ///座位号1出牌 if(Utl.getMySeat()==1) { chu(); jizhang=0; } kechu=0; chjizhang = [0,0,0]; tishi=[]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); bijiao=[]; } else //////座位号2出了牌 或者出完了牌 if(chupai[2]==3||chupai[2]==4) {//如果座位号2没有牌出 if(chupai[2]==3) { if(Utl.getMySeat()==1) { buchuyi(); zijiyicang(); set_self(1202,37,1,0,0); chupaitishi(); } if(Utl.getMySeat()==2) { qtyincangyi(); set_self(1203,37,1,0,0); } if(Utl.getMySeat()==0) { qtyincanger(); } } else /////////////////出完了牌//////// if(chupai[2]==4) { if(Utl.getMySeat()==1) { chu(); jizhang=0; } kechu=0; chjizhang = [0,0,0]; tishi=[]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); } } break; //////控制权为座位2////////////////////// case 3: ///如果座位0不出/////////// if(chupai[0]==0) { if(Utl.getMySeat()==2) { chu(); jizhang=0; } kechu=0; chjizhang = [0,0,0]; tishi=[]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); bijiao=[]; } else /////////////座位0出了牌/////// if(chupai[0]==3||chupai[0]==4) { if(chupai[0]==3) { if(Utl.getMySeat()==2) { buchuyi(); zijiyicang(); set_self(1202,37,1,0,0); chupaitishi(); } if(Utl.getMySeat()==1) { qtyincanger(); } if(Utl.getMySeat()==0) { qtyincangyi(); set_self(1203,37,1,0,0); } } else /////座位0出完了牌//// if(chupai[0]==4) { if(Utl.getMySeat()==2) { chu(); jizhang=0; } kechu=0; tishi=[]; chjizhang = [0,0,0]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); } } break; /////////控制权为座位0///////// case 1: if(chupai[1]==1) { if(Utl.getMySeat()==0) { chu(); jizhang=0; } kechu=0; tishi=[]; chjizhang = [0,0,0]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); bijiao=[]; } else //////////座位1出了牌//////// if(chupai[1]==3||chupai[1]==4) { if(chupai[1]==3) { if(Utl.getMySeat()==0) { buchuyi(); zijiyicang(); set_self(1202,37,1,0,0); chupaitishi(); } if(Utl.getMySeat()==1) { set_self(1203,37,1,0,0); qtyincangyi(); } if(Utl.getMySeat()==2) { qtyincanger(); } } else ////座位1没牌出//////////////// if(chupai[1]==4) { if(Utl.getMySeat()==0) { chu(); jizhang=0; } kechu=0; tishi=[]; chjizhang = [0,0,0]; chchupai=[]; zijiyicang(); qtyincangyi(); qtyincanger(); } } break; default: break; } } ////////////////////小局//////////////////////// cp_fangfa.xiaoju=function(_msg){ if(jiren==2) { set_self(1222,37,0,0,0); set_self(1254,37,0,0,0); set_self(1223,37,0,0,0); set_self(1232,37,0,0,0); set_self(1285,37,0,0,0); set_self(1282,37,0,0,0); set_self(1267,37,0,0,0); set_self(1273,37,0,0,0); set_self(1279,37,0,0,0); set_self(1270,37,0,0,0); set_self(1276,37,0,0,0); set_self(1264,37,0,0,0); set_self(1261,37,0,0,0); set_self(1235,37,0,0,0); set_self(1238,37,0,0,0); set_self(1224,37,0,0,0); } ///////////////////////////////////////////////////////////////////////////// for(var a=0;a<_msg.data.fenshu.length-1;a=a+2) { for(var b=0;b=_msg.data.leixing[2]+2) { set_self(1277+a,37,1,0,0); } else { //////不冲关 隐藏////// set_self(1277+a,37,0,0,0); } } else { ////////////不冲关的时候 隐藏 冲关*2///// for(var b=0;b<3;b++) { set_self(1277+b,37,0,0,0); } } } for(var a=0;a