EndIf Else Plugin jieshu=DBSoft.FindPic(hwnd,946,146,1077,301,"C:\Documents and Settings\nayan\My Documents\ddt\翻牌.bmp",0.8,-2,1) Delay 300 If jieshu(0)>=0 and jieshu(1)>=0 Goto 翻牌 Else Goto 判断开炮 EndIf EndIf Rem 自杀 //判断道具并使用 Plugin daoju1 =DBSoft.GetColorXY(hwnd,1179,212,1196,229, "5D6DE4","30,30,30",2) Plugin daoju2 =DBSoft.GetColorXY(hwnd,1177,267,1204,281, "D29820","30,30,30",2) dj1=clng(daoju1(0)) dj2=clng(daoju2(0)) If dj1>0 and dj2>0 //使用道具1 2 Plugin Bkgnd.KeyPress(Hwnd, 97) Delay 200 Plugin Bkgnd.KeyPress(Hwnd, 98) Delay 200 Else //使用zxc Plugin Bkgnd.KeyPress(Hwnd, 90) Delay 200 Plugin Bkgnd.KeyPress(Hwnd, 88) Delay 200 Plugin Bkgnd.KeyPress(Hwnd, 67) Delay 200 EndIf Plugin Bkgnd.KeyDown(Hwnd, 32) Delay 10 Plugin Bkgnd.KeyUp(Hwnd, 32) Plugin jieshu=DBSoft.FindPic(hwnd,946,146,1077,301,"C:\Documents and Settings\nayan\My Documents\ddt\翻牌.bmp",0.8,-2,1) Delay 300 If jieshu(0)>=0 and jieshu(1)>=0 Goto 翻牌 Else Goto 判断开炮 EndIf Rem 翻牌 Plugin Bkgnd.LeftClick(Hwnd, 1000, 270) Delay 150 Plugin Bkgnd.LeftClick(Hwnd, 890,270) Delay 300 Rem 收取 Plugin shouqu=DBSoft.FindPic(hwnd,621,108,708,154,"C:\Documents and Settings\nayan\My Documents\ddt\背包.bmp",0.8,-2,1) If shouqu(0)>=0 and shouqu(1)>=0 Delay 300 Plugin Bkgnd.LeftClick(Hwnd, 654, 331) Delay 500 Plugin Bkgnd.LeftClick(Hwnd, 907, 579) Delay 300 EndIf Plugin yanzhen=DBSoft.FindPic(hwnd,0,0,997,520,"C:\Documents and Settings\nayan\My Documents\ddt\验证码.bmp",1.0,-2,1) If yanzhen(0)>=0 and yanzhen(1)>=0 Plugin DBSoft.PlayMedia("C:\Documents and Settings\nayan\My Documents\ddt\yanzhen.wav",5) EndIf Plugin dianjuan=DBSoft.FindPic(hwnd,712,602,827,655,"C:\Documents and Settings\nayan\My Documents\ddt\点卷.bmp",1.0,-2,1) If dianjuan(0)>=0 and dianjuan(1)>=0 Goto 开始 Else Delay 300 Goto 收取 EndIf