黃易群俠傳M脫機外掛應用程式黃易神行
4037
24

[討論] [12/30]慶祝元旦在來一腳本,只要小小更改 任何職業都適用(更新)

pyng1975 發表於 2009-12-30 19:10:06 | 只看該作者 回帖獎勵 |倒序瀏覽 |
本帖最後由 pyng1975 於 2010-1-7 19:41 編輯

記得 重抓點.色
下載後把二個檔案放在一起
一樣有使用或問題的大大  記得回覆嘿
http://fhd.iwgun.net/downfile.php?action=public&file_id=4628&file_key=PHjPYb9z
------------------------------------------




#[HOTKEY]HOME
#[EXIT]END
#[PAUSE]PAUSE
#SetArgsOnCompile
//--------------------------------
//---將遊戲改成試窗模式
//---利用判斷某點顏色的***抓色工具抓點跟顏色
//---******(每一台電腦裡色彩都不一定相同一定要重抓)****
//---HP()是判斷血量的迴圈
//---Find()尋找怪物迴圈
//---AT()攻擊迴圈
//---DP()反擊迴圈
//---Rt()復活迴圈
//---Find2()防呆迴圈
//---FuncTime()輔助技能迴圈
//---AP()魔量判斷迴圈
//---SP()體力判斷迴圈               
//---攻擊設置[1.普攻-][2.技能-1][3.技能-2][4.技能-3][5.技能-4][6.技能-5]
//---輔助設置[S_1.輔助技能-1][S_2.輔助技能-2][S_3.輔助技能-3]
//---[S-4.輔助技能-4][S-5.輔助技能-5][S_6.輔助技能-6][S-7.輔助技能-7]
//---補血鍵  [=.既時生命大藥水]
//---至於AP.SP不足時自動坐下回覆
//=================== 進程 =====================
//================ 按下HOME執行 =================
function Main
# 在此添加由嚮導創建或錄製的代碼
SetInputMode(3) //驅動模式,很多遊戲會阻擋SP的部份功能,可以套用此函數
init()
FuncTime()
while true   //循環開始
Rt()
Find2()
FuncTime()
HP()
AP()
SP()
Dp()
Find()
At()
wend        //返回while開始循環
end function
dim Time1 = -1
dim Time2 = -1
dim Time3 = -1
dim Time4 = -1
dim Time5 = -1
dim Time6 = -1
dim Time7 = -1
dim S1,S2,S3,S4,S5,S6,S7,Z1,Z2,Z3,Z4,Z5,Z6,Z7
function init
S1=GetConfigString("輔助鍵S_1冷卻時間")
Z1=GetConfigNumber("輔助鍵S_1施展時間")
S2=GetConfigString("輔助鍵S_2冷卻時間")
Z2=GetConfigNumber("輔助鍵S_2施展時間")
S3=GetConfigString("輔助鍵S_3冷卻時間")
Z3=GetConfigNumber("輔助鍵S_3施展時間")
S4=GetConfigString("輔助鍵S_4冷卻時間")
Z4=GetConfigNumber("輔助鍵S_4施展時間")
S5=GetConfigString("輔助鍵S_5冷卻時間")
Z5=GetConfigNumber("輔助鍵S_5施展時間")
S6=GetConfigString("輔助鍵S_6冷卻時間")
Z6=GetConfigNumber("輔助鍵S_6施展時間")
S7=GetConfigString("輔助鍵S_7冷卻時間")
Z7=GetConfigNumber("輔助鍵S_7施展時間")
end function
function SKeyPress(key)
KeyDown("SHIFT")
Wait(100)
KeyPress(key)
Wait(100)
KeyUp("SHIFT")
end function
//====================== 程序迴圈 ================
//================== 復活 ==================
Function Rt()
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(550, 234)的顏色等於(255, 255, 255) 那麼
if CheckColor(WinX0+550, WinY0+234, Color(255, 255, 255), 10) then
  //以下為嚮導添加的代碼
  //取窗口原點坐標
  GetActiveWindowXY(WinX0, WinY0)
  
  //在窗口坐標(549, 235)單擊鼠標左鍵
  MouseLeftClick(WinX0+549, WinY0+235)
  Wait(2000)
  end if
  if not CheckColor(WinX0+142, WinY0+736, Color(27, 40, 146), 10) then
   print("SP不足,回補SP")
   KeyPress("x")  
   do
   loop Until CheckColor(WinX0+254, WinY0+737, Color(29, 41, 120), 10)
   //取得當前活動窗口的坐標
   GetActiveWindowXY(WinX0, WinY0)
   //在此錄一段從復活點到掛機點的涵數   
   FuncTime()
   Find()
   Find2()
end if
end function
//==================== 輔助技能 =================
# 定時器添加方法:
# 步驟1. 將以下代碼加入腳本末尾
function FuncTime()
//定時器代碼,每Interval秒執行一次
Print("輔助技能加持中")
if S1 <> "=" then
if Time1 < 0  or GetTime() - Time1 > CNum(S1) * 1000 then
  Time1 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("1")
  Print("施放按鍵S_1輔助技能")
  Wait(Z1)   //<===如施放完呆滯時間過久就更改時間  
  keyPress("Esc")
  Wait(100)
end if
end if
if S2 <> "=" then
if Time2 < 0  or GetTime() - Time2 > CNum(S2) * 1000 then
  Time2 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("2")
  Print("施放按鍵S_2輔助技能")
  Wait(Z2)
  KeyPress("Esc")
  Wait(100)
end if
end if
if S3 <> "=" then
if Time3 < 0  or GetTime() - Time3 > CNum(S3) * 1000 then
  Time3 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("3")
  Print("施放按鍵S_3輔助技能")
  Wait(Z3)
  KeyPress("Esc")
  Wait(100)
end if
end if
if S4 <> "=" then
if Time4 < 0  or GetTime() - Time4 > CNum(S4) * 1000 then
  Time4 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("4")
  Print("施放按鍵S_4輔助技能")
  Wait(Z4)
  KeyPress("Esc")
  Wait(100)
end if
end if
if S5 <> "=" then
if Time5 < 0  or GetTime() - Time5 > CNum(S5) * 1000 then
  Time5 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("5")
  Print("施放按鍵S_5輔助技能")
  Wait(Z5)
  KeyPress("Esc")
  Wait(100)
end if
end if
if S6 <> "=" then
if Time6 < 0  or GetTime() - Time6 > CNum(S6) * 1000 then
  Time6 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("6")
  Print("施放按鍵S_6輔助技能")
  Wait(Z6)
  KeyPress("Esc")
  Wait(100)
end if
end if
if S7 <> "=" then
if Time7 < 0  or GetTime() - Time7 > CNum(S7) * 1000 then
  Time7 = GetTime()
  KeyPress("F1")  
  Wait(100)
  SKeyPress("7")
  Print("施放按鍵S_7輔助技能")
  Wait(Z7)
  KeyPress("Esc")
  Wait(100)
end if
end if
end function
//=====================  HP ==================
function HP()
print("HP檢查點")
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(192, 707)的顏色等於(36, 40, 49) 那麼
if CheckColor(WinX0+192, WinY0+707, Color(36, 40, 49), 10) then
Print("HP不足 休息回HP")
KeyPress("x")
Wait(500)
do
DP()
Find2()
RT()
loop Until CheckColor(WinX0+253,WinY0+707,Color(146,23,43),10)
end if
end Function
//================== AP ======================
Function AP()
Print("AP檢查點")
GetActiveWindowXY(winX0,WinY0)
if CheckColor(WinX0+144, WinY0+722, Color(24, 25, 35), 10) then
print("AP不足,回補AP")
KeyPress("x")
Wait(500)
do
DP()
Find2()
RT()
loop Until CheckColor(WinX0+249, WinY0+721, Color(148, 118, 34), 10)
end if
end Function        
//==================== SP ======================
Function SP()
Print("SP檢查點")
GetActiveWindowXY(winX0,WinY0)
if not CheckColor(WinX0+142, WinY0+736, Color(27, 40, 146), 10) then
print("SP不足,回補SP")
KeyPress("x")
Wait(500)
do
DP()
Find2()
RT()
loop until CheckColor(WinX0+254, WinY0+737, Color(29, 41, 120), 10)
end if
end Function        
//==================== 反擊 =======================
Function Dp()
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+455, WinY0+29, Color(160, 38, 58), 10) then//怪血條後端如果顏色正確就反擊
do        
Print("反擊主動怪")
Keypress("1")//普通攻擊
Wait(100)
KeyPress("2")//技能攻擊
Wait(100)
Keypress("3")//技能攻擊
Wait(100)
KeyPress("4")//技能攻擊
Wait(100)
KeyPress("5")//技能攻擊
Wait(100)
KeyPress("6")//技能攻擊
Wait(100)
Rt()
Find2()
do
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(147, 707)的顏色不等於(183, 34, 56) 那麼
if not CheckColor(WinX0+147, WinY0+707, Color(183, 34, 56), 10) then
Print("人物血量不足,補血中")
KeyPress("=")
Wait(500)
end if
Rt()
Find2()
loop While CheckColor(WinX0+250,WinY0+723, Color(110,82,14),10)
KeyPress("1")
Wait(100)
KeyPress("2")
Wait(100)
loop Until CheckColor(WinX0+451, WinY0+30, Color(24, 26, 29), 10)
print("攻擊結束,檢查怪物血量")
print("怪物死亡 撿取物品")
KeyPress("1")
wait(100)
KeyPress("f")
Wait(100)
KeyPress("f")
Wait(100)
KeyPress("Esc")
Wait(100)
KeyPress("x")
Wait(100)
end if
end function
//================== 尋找怪物 ====================
Function Find()        
FindWindow("未來啟示錄",WinID)         
ActiveWindow(WinID)            
Wait(50)
GetActiveWindowXY(WinX0, WinY0)
if not CheckColor(WinX0+589, WinY0+30, Color(118, 19, 38), 10) then
do  
Print("尋找目標")
keyPress("tab")
Wait(100)
KeyPress("q")
Wait(100)
KeyPress("a")
Wait(100)
loop Until CheckColor(WinX0+589, WinY0+30, Color(118, 19, 38),10)         
end if
GetActiveWindowXY(WinX0, WinY0)
if not CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10) then
//npc特定圖形判斷
do
print("判斷是否為npc")
Keypress("tab")
Wait(100)
KeyPress("q")
Wait(100)
KeyPress("q")
Wait(100)
loop until CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10)
//如果符合怪的圖行及執行下一行
end if
//取窗口原點坐標
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(532, 11)的顏色等於(255, 255, 255) 那麼
if CheckColor(WinX0+532, WinY0+11, Color(255, 255, 255), 10) then
KeyPress("Tab")
Wait(100)
end if
end Function               
//================== 攻擊開始 ==================
Function At() //攻擊開始
GetActiveWindowXY(WinX0, WinY0)
do        
Print("攻擊中")
Keypress("1")//普攻
Wait(100)
KeyPress("2")//技能
Wait(100)
Keypress("3")//技能
Wait(100)
KeyPress("4")//技能
Wait(100)
KeyPress("5")//技能
Wait(100)
KeyPress("6")//技能
Wait(100)
Rt()
Find2()
if CheckColor(WinX0+611, WinY0+186, Color(250, 210, 0), 10) then
//如果窗口坐標(611, 186)的顏色等於(250, 210, 0) 那麼
KeyDown("q")
Wait(100)
KeyDown("d")
wait(1000)
KeyUp("q")
KeyUp("d")
Wait(100)
end if
  
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+578, WinY0+172, Color(255, 0, 0), 10) then
KeyDown("q")
Wait(1000)
KeyUp("q")
wait(100)
end if
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+142, WinY0+373, Color(255, 0, 0), 10) then
KeyDown("q")
Wait(1000)
KeyUp("q")
Wait(100)
end if
do
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(147, 707)的顏色不等於(183, 34, 56) 那麼
if not CheckColor(WinX0+147, WinY0+707, Color(183, 34, 56), 10) then
  Print("人物血量不足,補血中")
  KeyPress("=")
  Wait(500)
end if
Rt()
Find2()
loop While CheckColor(WinX0+250,WinY0+723, Color(110,82,14),10)
KeyPress("1")
Wait(100)
KeyPress("2")
Wait(100)
loop Until CheckColor(WinX0+451, WinY0+30, Color(24, 26, 29), 10)
print("第一次攻擊結束,檢查怪物血量")
print("怪物死亡 撿取物品")
KeyPress("1")
wait(100)
KeyPress("f")
Wait(100)
KeyPress("f")
Wait(100)
//取窗口原點坐標
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(532, 11)的顏色等於(255, 255, 255) 那麼
if CheckColor(WinX0+532, WinY0+11, Color(255, 255, 255), 10) then
KeyPress("Tab")
Wait(100)
end if
end function
//============================== Find2 ===============================
Function Find2()
//取窗口原點坐標
GetActiveWindowXY(WinX0, WinY0)
//如果窗口坐標(586, 8)的顏色等於(71, 174, 189) 那麼
if CheckColor(WinX0+586, WinY0+8, Color(71, 174, 189), 50) then
  KeyPress("Tab")
  Wait(100)//以下為嚮導添加的代碼
  //取窗口原點坐標
  GetActiveWindowXY(WinX0, WinY0)
  
  //如果窗口坐標(509, 9)的顏色等於(255, 255, 255) 那麼
  if CheckColor(WinX0+509, WinY0+9, Color(255, 255, 255), 10) then
   KeyPress("Tab")
   Wait(100)
   
  end if
  
end if
end function
收藏收藏 分享分享 讚 幹 分享分享 FB分享
回覆

使用道具 舉報


buns33 當前離線
UID
1379465
熱心
6 值
嘉獎
0 次
違規
0 次
在線時間
9 小時
經驗
6 點
積分
6
精華
0
最後登錄
2010-2-19
閱讀權限
5
註冊時間
2009-12-30
論壇幣
1672 幣
聯合幣
0 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 1
buns33 2009-12-30 19:41:38
感謝分享         先來試用看看^^
回覆

使用道具 舉報

linjolo 當前離線
UID
471761
熱心
39 值
嘉獎
0 次
違規
0 次
在線時間
71 小時
經驗
37 點
積分
162
精華
0
最後登錄
2016-4-14
閱讀權限
20
註冊時間
2007-8-1
論壇幣
12 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 2Rank: 2
linjolo 2009-12-31 00:55:17
行256錯誤!!錯誤的函數調用格式.........................
回覆

使用道具 舉報

linjolo 當前離線
UID
471761
熱心
39 值
嘉獎
0 次
違規
0 次
在線時間
71 小時
經驗
37 點
積分
162
精華
0
最後登錄
2016-4-14
閱讀權限
20
註冊時間
2007-8-1
論壇幣
12 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 2Rank: 2
linjolo 2009-12-31 04:06:57
#[HOTKEY]HOME
//--------------------------------
//---將遊戲改成試窗模式
//---利用判斷某點顏色的***抓色工具抓點跟顏色
//---******(每一台電腦裡色彩都不一定相同一定要重抓)****
//---HP()是判斷血量的迴圈
//---Find()尋找怪物迴圈
//---AT()攻擊迴圈
//---DP()反擊迴圈
//---Rt()復活迴圈
//---Find2()防呆迴圈
//---FuncTime()輔助技能迴圈
//---AP()魔量判斷迴圈
//---SP()體力判斷迴圈               
//---按鍵設置[1.普攻-][2.技能-1][3.技能-2][4.技能-3][5.技能-4][8.輔助技能-1][9.輔助技能-2][0.輔助技能-3][-.輔助技能-4][=.輔助技能-5]
//---補血鍵  [S_1.既時生命藥水][S_4延遲藥水]  
//---至於AP.SP不足時自動坐下回覆
Dim Time=1
Dim WinID


//=================== 進程 =====================
//================ 按下HOME執行 =================
function Main
        # 在此添加由嚮導創建或錄製的代碼
        SetInputMode(3) //驅動模式,很多遊戲會阻擋SP的部份功能,可以套用此函數
        while true   //循環開始
               
                Find2()
                FuncTime()
                HP()
                SP()
                Dp()
                Find()
                At()
               
        wend        //返回while開始循環
end function
//====================== 程序迴圈 ================

//==================== 輔助技能 =================
# 定時器添加方法:
# 步驟1. 將以下代碼加入腳本末尾
function FuncTime()
        //定時器代碼,每Interval秒執行一次
        Print("輔助技能加持中")
        dim global Timer02 = -1
        if Timer02 < 0  or GetTime() - Timer02 >= 1200 * 1000 then
                Timer02 = GetTime()
                //以下為執行代碼
                KeyPress("F1")
                Wait(100)
                KeyPress("-")
                Wait(3000)
        end if
       
        dim global Timer03 = -1
        if Timer03 < 0  or GetTime() - Timer03 >= 200 * 1000 then
                Timer03 = GetTime()
                //以下為執行代碼
               
                KeyPress("0")
                Wait(100)
                KeyPress("Esc")
                Wait(100)
        end if
       
        dim global Timer04 = -1
        if Timer04 < 0  or GetTime() - Timer04 >= 100 * 1000 then
                Timer04 = GetTime()
                //以下為執行代碼
               
                KeyPress("9")
                Wait(100)
                KeyPress("Esc")
                Wait(100)
        end if
       
       
       
end function
//=====================  HP ==================
function HP()
        print("HP檢查點")
        GetActiveWindowXY(WinX0, WinY0)
       
        //如果窗口坐標(192, 707)的顏色等於(36, 40, 49) 那麼
        if CheckColor(WinX0+234, WinY0+708, Color(177, 14, 43), 10) then
                Print("HP不足 休息回HP")
                KeyPress("x")
                Wait(500)
                do
                        DP()
                        Find2()
                        if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                                //在圖像上的(0, 0)位置點擊鼠標
                                MouseLeftClick(FoundX+0, FoundY+0)
                                MouseLeftClick(FoundX+0, FoundY+0)
                                wait(8000)
                                goback()
                                wait(1000)
                                main()
                        end if
                loop Until CheckColor(WinX0+253, WinY0+708, Color(103, 9, 25), 10)
        end if
end Function
//==================== SP ======================
Function SP()
        Print("SP檢查點")
        GetActiveWindowXY(winX0,WinY0)
        if not CheckColor(WinX0+220, WinY0+737, Color(55, 77, 203), 10) then
                print("SP不足,回補SP")
                KeyPress("x")
                Wait(500)
                do
                        DP()
                        Find2()
                        if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                                //在圖像上的(0, 0)位置點擊鼠標
                                MouseLeftClick(FoundX+0, FoundY+0)
                                MouseLeftClick(FoundX+0, FoundY+0)
                                wait(8000)
                                goback()
                                wait(1000)
                                main()
                        end if       
                loop until CheckColor(WinX0+253, WinY0+737, Color(31, 45, 123), 10)
        end if
end Function        
//==================== 反擊 =======================
Function Dp()
        GetActiveWindowXY(WinX0, WinY0)
        if CheckColor(WinX0+590, WinY0+27, Color(122, 58, 59), 10) then//怪血條後端如果顏色正確就反擊
                do        
                        Print("反擊主動怪")
                        Keypress("1")//技能攻擊
                        Wait(100)
                        KeyPress("2")//技能攻擊
                        Wait(100)
                        Keypress("3")//技能攻擊
                        Wait(100)
                        KeyPress("4")//技能攻擊
                        Wait(100)
                        KeyPress("5")
                        Wait(100)
                        KeyPress("6")
                        Wait(100)
                        KeyPress("7")
                        Wait(100)
                        if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                                //在圖像上的(0, 0)位置點擊鼠標
                                MouseLeftClick(FoundX+0, FoundY+0)
                                MouseLeftClick(FoundX+0, FoundY+0)
                                wait(8000)
                                goback()
                                wait(1000)
                                main()
                        end if
                        Find2()
                        GetActiveWindowXY(WinX0, WinY0)
                        //如果窗口坐標(147, 707)的顏色不等於(183, 34, 56) 那麼
                        if not CheckColor(WinX0+183, WinY0+706, Color(255, 132, 132), 10) then
                                Print("人物血量不足,補血中")
                                KeyDown("Shift")
                                Wait(100)
                                KeyDown("1")
                                Wait(100)
                                KeyDown("Shift")
                                Wait(100)
                                KeyDown("4")
                                Wait(100)
                                KeyUp("Shift")
                                KeyUp("1")
                                KeyUp("4")
                                KeyPress("Tab")
                                Wait(100)
                                do
                                        if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                                                //在圖像上的(0, 0)位置點擊鼠標
                                                MouseLeftClick(FoundX+0, FoundY+0)
                                                MouseLeftClick(FoundX+0, FoundY+0)
                                                wait(8000)
                                                goback()
                                                wait(1000)
                                                main()
                                        end if               
                                        Find2()
                                loop While CheckColor(WinX0+253, WinY0+708, Color(103, 9, 25), 10)
                                KeyPress("f")
                                Wait(100)
                                KeyPress("f")
                                Wait(100)
                        end if
                loop Until CheckColor(WinX0+452, WinY0+29, Color(154, 30, 53), 10)
                print("攻擊結束,檢查怪物血量")
                print("怪物死亡 撿取物品")
                KeyPress("f")
                wait(100)
                KeyPress("f")
                Wait(100)
                KeyPress("f")
                Wait(100)
                KeyPress("Esc")
                Wait(100)
                KeyPress("x")
                Wait(100)
        end if
end function
//===================================== 尋找怪物 ===========================================
Function Find()        
        FindWindow("未來啟示錄",WinID)         
        ActiveWindow(WinID)            
        Wait(50)
        GetActiveWindowXY(WinX0, WinY0)
        if not CheckColor(WinX0+590, WinY0+27, Color(122, 58, 59), 10) then
                do  
                        Print("尋找目標")
                        keyPress("tab")
                        Wait(100)
                        KeyPress("q")
                        Wait(100)
                        KeyPress("a")
                        Wait(100)
                loop Until CheckColor(WinX0+590, WinY0+27, Color(122, 58, 59), 10)      
        end if
        GetActiveWindowXY(WinX0, WinY0)
        if not CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10) then
                //npc特定圖形判斷
                do
                        print("判斷是否為npc")
                        Keypress("tab")
                        Wait(100)
                        KeyPress("q")
                        Wait(100)
                        KeyPress("q")
                        Wait(100)
                loop until CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10)
                //如果符合怪的圖行及執行下一行
        end if
        //取窗口原點坐標
        GetActiveWindowXY(WinX0, WinY0)
        //如果窗口坐標(532, 11)的顏色等於(255, 255, 255) 那麼
        if CheckColor(WinX0+532, WinY0+11, Color(255, 255, 255), 10) then
                KeyPress("Tab")
                Wait(100)
               
        end if
end Function               
//================== 攻擊開始 ==================
Function At() //攻擊開始
       
        GetActiveWindowXY(WinX0, WinY0)
        do        
                Print("攻擊中")
                Keypress("1")//普攻
                Wait(100)
                KeyPress("2")//技能
                Wait(100)
                Keypress("3")//技能
                Wait(100)
                KeyPress("4")//技能
                Wait(100)
                KeyPress("5")
                Wait(100)
                KeyPress("6")
                Wait(100)
                KeyPress("7")
                Wait(100)
                if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                        //在圖像上的(0, 0)位置點擊鼠標
                        MouseLeftClick(FoundX+0, FoundY+0)
                        MouseLeftClick(FoundX+0, FoundY+0)
                        wait(8000)
                        goback()
                        wait(1000)
                        main()
                end if               
                Find2()
                if CheckColor(WinX0+611, WinY0+186, Color(250, 210, 0), 10) then
                        //如果窗口坐標(611, 186)的顏色等於(250, 210, 0) 那麼
                        KeyDown("q")
                        Wait(100)
                        KeyDown("d")
                        wait(1000)
                        KeyUp("q")
                        KeyUp("d")
                        Wait(100)
                end if
               
                GetActiveWindowXY(WinX0, WinY0)
                if CheckColor(WinX0+578, WinY0+172, Color(255, 0, 0), 10) then
                        KeyDown("q")
                        Wait(1000)
                        KeyUp("q")
                        wait(100)
                end if
                GetActiveWindowXY(WinX0, WinY0)
                if CheckColor(WinX0+142, WinY0+373, Color(255, 0, 0), 10) then
                        KeyDown("q")
                        Wait(1000)
                        KeyUp("q")
                        Wait(100)
                end if
                GetActiveWindowXY(WinX0, WinY0)
                //如果窗口坐標(197, 707)的顏色不等於(130, 29, 43) 那麼
                if not CheckColor(WinX0+183, WinY0+706, Color(255, 132, 132), 10) then
                        Print("人物血量不足,補血中")
                        KeyDown("Shift")
                        Wait(1000)
                        KeyDown("1")
                        Wait(100)
                        KeyDown("Shift")
                        Wait(100)
                        KeyDown("4")
                        Wait(100)
                        KeyUp("Shift")
                        KeyUp("1")
                        KeyUp("4")
                        KeyPress("Tab")
                        Wait(100)
                        do
                               
                                if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                                        //在圖像上的(0, 0)位置點擊鼠標
                                        MouseLeftClick(FoundX+0, FoundY+0)
                                        MouseLeftClick(FoundX+0, FoundY+0)
                                        wait(8000)
                                        goback()
                                        wait(1000)
                                        main()
                                end if                       
                                Find2()
                        loop While CheckColor(WinX0+253, WinY0+708, Color(103, 9, 25), 10)
                        KeyPress("f")
                        Wait(100)
                        KeyPress("f")
                        Wait(100)
                end if
        loop Until CheckColor(WinX0+452, WinY0+29, Color(154, 30, 53), 10)
        print("第一次攻擊結束,檢查怪物血量")
        print("怪物死亡 撿取物品")
        KeyPress("f")
        wait(100)
        KeyPress("f")
        Wait(100)
        KeyPress("f")
        Wait(100)
        //取窗口原點坐標
        GetActiveWindowXY(WinX0, WinY0)
        //如果窗口坐標(532, 11)的顏色等於(255, 255, 255) 那麼
        if CheckColor(WinX0+532, WinY0+11, Color(255, 255, 255), 10) then
                KeyPress("Tab")
                Wait(100)
        end if
end function
//============================== Find2 ===============================
Function Find2()
        //取窗口原點坐標
        GetActiveWindowXY(WinX0, WinY0)
       
        //如果窗口坐標(540, 184)的顏色等於(255, 0, 5) 那麼
        if CheckColor(WinX0+540, WinY0+184, Color(255, 0, 5), 10) then
                KeyPress("Tab")
                Wait(500)
               
        end if
end function

//================== 復活 ==================
function goback()
        //取得當前活動窗口的坐標
        GetActiveWindowXY(WinX0, WinY0)
        KeyPress("W", 562)
        Wait(813)
        KeyPress("W", 1062)
        Wait(688)
        KeyPress("W", 1047)
        Wait(1031)
        KeyPress("W", 781)
        Wait(828)
        KeyPress("W", 438)
        Wait(1015)
        KeyPress("W", 250)
        Wait(2000)
        MouseMove(WinX0 + 598, WinY0 + 432)
        MouseLeftClick(125)
        Wait(1641)
        MouseMove(WinX0 + 550, WinY0 + 438)
        MouseLeftClick(109)
        Wait(1266)
        MouseMove(WinX0 + 490, WinY0 + 433)
        MouseLeftClick(78)
        Wait(1703)
        MouseMove(WinX0 + 463, WinY0 + 455)
        MouseLeftClick(110)
        Wait(1062)
        MouseMove(WinX0 + 495, WinY0 + 423)
        MouseLeftClick(78)
        Wait(1891)
        MouseMove(WinX0 + 496, WinY0 + 434)
        MouseLeftClick(109)
        Wait(2328)
        MouseMove(WinX0 + 499, WinY0 + 464)
        MouseLeftClick(94)
        Wait(1516)
        MouseMove(WinX0 + 473, WinY0 + 477)
        MouseLeftClick(62)
        Wait(1219)
        KeyPress("W", 297)
        Wait(1406)
        MouseMove(WinX0 + 449, WinY0 + 482)
        MouseLeftClick(125)
        Wait(1047)
        MouseMove(WinX0 + 442, WinY0 + 483)
        MouseLeftClick(94)
        Wait(1640)
        MouseMove(WinX0 + 509, WinY0 + 464)
        MouseLeftClick(94)
        Wait(1906)
        MouseMove(WinX0 + 469, WinY0 + 528)
        MouseLeftDown()
        Wait(157)
        MouseMove(WinX0 + 469, WinY0 + 527)
        MouseLeftUp()
        Wait(843)
        MouseMove(WinX0 + 506, WinY0 + 481)
        MouseLeftClick(79)
        Wait(1187)
        MouseMove(WinX0 + 494, WinY0 + 417)
        MouseLeftClick(78)
        Wait(1375)
        MouseMove(WinX0 + 499, WinY0 + 425)
        MouseLeftClick(78)
        Wait(1719)
        MouseMove(WinX0 + 463, WinY0 + 485)
        MouseLeftClick(94)
        Wait(1484)
        MouseMove(WinX0 + 542, WinY0 + 472)
        MouseLeftClick(110)
        Wait(1078)
        MouseMove(WinX0 + 608, WinY0 + 490)
        MouseLeftClick(93)
        Wait(969)
        MouseMove(WinX0 + 602, WinY0 + 482)
        MouseLeftClick(94)
        Wait(953)
        MouseMove(WinX0 + 582, WinY0 + 452)
        MouseLeftClick(78)
        Wait(1266)
        MouseMove(WinX0 + 541, WinY0 + 418)
        MouseLeftClick(109)
        Wait(1547)
        MouseMove(WinX0 + 530, WinY0 + 415)
        MouseLeftClick(125)
        Wait(1297)
        MouseMove(WinX0 + 513, WinY0 + 413)
        MouseLeftClick(94)
        Wait(1125)
        MouseMove(WinX0 + 474, WinY0 + 401)
        MouseLeftClick(93)
        Wait(1313)
        MouseMove(WinX0 + 453, WinY0 + 430)
        MouseLeftClick(109)
        Wait(1297)
        MouseMove(WinX0 + 483, WinY0 + 418)
        MouseLeftClick(172)
        Wait(1469)
        MouseMove(WinX0 + 502, WinY0 + 373)
        MouseLeftDown()
        Wait(109)
        MouseMove(WinX0 + 502, WinY0 + 372)
        MouseLeftUp()
        Wait(1485)
        MouseMove(WinX0 + 574, WinY0 + 475)
        MouseLeftClick(140)
        FuncTime()
        if FindImageEx("重生.sel", Color(30, 30, 30), WinX0+425, WinY0+204, WinX0+616, WinY0+258, true, FoundX, FoundY) then
                //在圖像上的(0, 0)位置點擊鼠標
                MouseLeftClick(FoundX+0, FoundY+0)
                MouseLeftClick(FoundX+0, FoundY+0)
                wait(8000)
                goback()
                wait(1000)
                main()
        end if
end function
回覆

使用道具 舉報

takyu999 當前離線
UID
1079197
熱心
73 值
嘉獎
0 次
違規
0 次
在線時間
11 小時
經驗
59 點
積分
166
精華
0
最後登錄
2020-5-2
閱讀權限
20
註冊時間
2008-11-26
論壇幣
18 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 2Rank: 2
5
takyu999 2009-12-31 10:25:19
不是已經不可以用seraph腳本了嗎?大大還可以用到?可否請敎一下怎樣用到,謝謝YCT66B
回覆

使用道具 舉報

asaaaas 當前離線
UID
123364
熱心
66 值
嘉獎
0 次
違規
0 次
在線時間
86 小時
經驗
58 點
積分
547
精華
0
最後登錄
2019-4-18
閱讀權限
30
註冊時間
2006-12-21
論壇幣
326 幣
聯合幣
8 枚
幸運鑽
1 顆
招待卷
0 點
查看詳細資料
Rank: 4Rank: 4
6
asaaaas 2009-12-31 11:30:35
大大你好,關於輔助技能的部份,請問是如何判斷要多久施放一次呢??
回覆

使用道具 舉報

a9890123456 當前離線
UID
1361170
熱心
33 值
嘉獎
0 次
違規
0 次
在線時間
6 小時
經驗
26 點
積分
65
精華
0
最後登錄
2015-8-8
閱讀權限
20
註冊時間
2009-11-28
論壇幣
101 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
300 點
Yahoo!阿里旺旺 查看詳細資料
Rank: 2Rank: 2
7
a9890123456 2010-1-1 00:15:00
看不到耶~~~~~~~~~~~~~~~~~~~~~~~~~~~~
回覆

使用道具 舉報

louis219 當前離線
UID
38322
熱心
30 值
嘉獎
0 次
違規
0 次
在線時間
8 小時
經驗
29 點
積分
86
精華
0
最後登錄
2016-8-7
閱讀權限
20
註冊時間
2006-9-5
論壇幣
16 幣
聯合幣
3 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 2Rank: 2
8
louis219 2010-1-1 10:41:09
感謝大大熱心的分享 ~

感恩 待會來試試看
回覆

使用道具 舉報

pyng1975 當前離線
UID
1349972
熱心
92 值
嘉獎
0 次
違規
0 次
在線時間
54 小時
經驗
83 點
積分
229
精華
0
最後登錄
2015-9-19
閱讀權限
25
註冊時間
2009-11-12
論壇幣
13 幣
聯合幣
14 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 3
9
pyng1975 2010-1-1 22:37:52
不是已經不可以用seraph腳本了嗎?大大還可以用到?可否請敎一下怎樣用到,謝謝YCT66B
takyu999 發表於 2009-12-31 10:25

=========================================
12/30日經測試一天還沒問題唷
腳本一樣還可以套用.使用
回覆

使用道具 舉報

pyng1975 當前離線
UID
1349972
熱心
92 值
嘉獎
0 次
違規
0 次
在線時間
54 小時
經驗
83 點
積分
229
精華
0
最後登錄
2015-9-19
閱讀權限
25
註冊時間
2009-11-12
論壇幣
13 幣
聯合幣
14 枚
幸運鑽
0 顆
招待卷
0 點
查看詳細資料
Rank: 3
10
pyng1975 2010-1-1 22:55:58
本帖最後由 pyng1975 於 2010-1-1 23:06 編輯
大大你好,關於輔助技能的部份,請問是如何判斷要多久施放一次呢??
asaaaas 發表於 2009-12-31 11:30

針對技能施放部份我是以回覆時間為依據所寫的
拿守護者的 (防護提升) 來說 它是在480秒內提升18的防禦力
所以是4800*1000雖然它的冷卻時間才五秒如果以五秒施放一次就太浪費魔力值了
但以(戰鬥狂熱)來說 雖然它是184秒內提升近距離傷害
可是它的冷卻時間卻是200秒故應該是寫成2000*1000 而非1840*1000
目前技能部份分為 [=]  [-]  [0]  [9]  [8]  5個部份
你要看你所放置技能格所需回覆時間要多久
在相對應空格裡更改時間  
另外時間是以(毫秒)為單位
如果你的技能回覆時間是120秒  那就是改成 1200*1000
回覆

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

123下一頁

手機版 | Archiver | 外掛聯合國

GMT+8, 2024-4-28 18:21 , Processed in 0.061666 second(s), 16 queries , Memcache On.

版權說明:
  本站不會製作、經銷、代理外掛程式。僅免費提供外掛程式下載前之掃毒及掃木馬等安全檢測驗證,協助會員遠離盜號危險程式。本站所有資料均來自網際網路收集整理,說明文字暨下載連結轉載自原程 式開發站。站上出現之公司名稱、遊戲名稱、程式等,商標及著作權,均歸各公司及程式原創所有,本站程式所有權歸外掛聯合國所有。本程式所有權歸外掛聯合國所有.......

回頂部
第二步?
第三步?