我條好一開 就談出 ((使用回歸捲軸,停止腳本))
哪位大大可以幫我解 YCT48B YCT64B 搞不懂...
Plugin hwnd=Window.Foreground()
UserVar as1=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【補HP熱鍵】
UserVar hpt=DropList{無:0|10%補HP:0.1|20%補HP:0.2|30%補HP:0.3|40%補HP:0.4|50%補HP:0.5|60%補HP:0.6|70%補HP:0.7|80%補HP:0.8|90%補HP:0.9}=0 【補HP%數】
UserVar as2=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【補MP熱鍵】
UserVar mpt=DropList{無:0|10%補MP:0.1|20%補MP:0.2|30%補MP:0.3|40%補MP:0.4|50%補MP:0.5|60%補MP:0.6|70%補MP:0.7|80%補MP:0.8|90%補MP:0.9}=0 【補MP%數】
UserVar as3=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【攻擊技能1】
UserVar as4=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【攻擊技能2】
UserVar as5=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【攻擊技能3】
UserVar as6=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【攻擊技能4】
UserVar as7=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【攻擊技能5】
UserVar ad1=DropList{無:0|按鍵1:49|按鍵2:50|按鍵3:51|按鍵4:52|按鍵5:53|按鍵6:54|按鍵7:55|按鍵8:56|按鍵9:57|按鍵0:48|按鍵-:189|按鍵=:187}=0 【輔助技能1】
UserVar ta1=0 【技能延遲(秒)】
UserVar ad2=DropList{無:0|按鍵1:49|按鍵2:50|按鍵3:51|按鍵4:52|按鍵5:53|按鍵6:54|按鍵7:55|按鍵8:56|按鍵9:57|按鍵0:48|按鍵-:189|按鍵=:187}=0 【輔助技能2】
UserVar ta2=0 【技能延遲(秒)】
UserVar ad3=DropList{無:0|按鍵1:49|按鍵2:50|按鍵3:51|按鍵4:52|按鍵5:53|按鍵6:54|按鍵7:55|按鍵8:56|按鍵9:57|按鍵0:48|按鍵-:189|按鍵=:187}=0 【輔助技能3】
UserVar ta3=0 【技能延遲(秒)】
UserVar ad4=DropList{無:0|按鍵1:49|按鍵2:50|按鍵3:51|按鍵4:52|按鍵5:53|按鍵6:54|按鍵7:55|按鍵8:56|按鍵9:57|按鍵0:48|按鍵-:189|按鍵=:187}=0 【輔助技能4】
UserVar ta4=0 【技能延遲(秒)】
UserVar ad5=DropList{無:0|按鍵1:49|按鍵2:50|按鍵3:51|按鍵4:52|按鍵5:53|按鍵6:54|按鍵7:55|按鍵8:56|按鍵9:57|按鍵0:48|按鍵-:189|按鍵=:187}=0 【輔助技能5】
UserVar ta5=0 【技能延遲(秒)】
UserVar as12=DropList{無:0|按鍵F1:112|按鍵F2:113|按鍵F3:114|按鍵F4:115|按鍵F5:116|按鍵F6:117|按鍵F7:118|按鍵F8:119|按鍵F9:120|按鍵F10:121|按鍵F11:122|按鍵F12:123}=0 【歸還卷熱鍵】
UserVar hptt=DropList{死都不回:0|HP10%歸還:0.1|HP20%歸還:0.2|HP30%歸還:0.3|HP40%歸還:0.4|HP50%歸還:0.5|HP60%歸還:0.6|HP70%歸還:0.7|HP80%歸還:0.8|HP90%歸還:0.9}=0 【歸還HP%數】
t1=time:t2=time:t3=time:t4=time:t5=time:a=0
Rem 開始
Gosub 偵測HPMP
Gosub 輔助技能
Gosub 戰鬥
Delay 100
Goto 開始
Sub 偵測HPMP
Gosub 記憶體
If Clng(HP)<=Clng(HPM)*hpt
Plugin Bkgnd.KeyPress(hwnd,as1)
EndIf
If Clng(MP)<=Clng(MPM)*mpt
Plugin Bkgnd.KeyPress(hwnd,as2)
EndIf
Return 偵測HPMP
Sub 戰鬥
Rem 不搶怪
Plugin Bkgnd.KeyPress(hwnd,9)
pkt=time
Gosub 記憶體
If Clng(ETHP)<>Clng(ETHPM) and Clng(TT)<>5
Delay 300
Goto 不搶怪
EndIf
Rem 打怪中
Gosub 記憶體
If Clng(QT)>=Clng(QTM)*0.9 or Clng(HP)<=Clng(HPM)*hptt
Plugin Bkgnd.KeyPress(hwnd,as12)
Delay 1000
MessageBox 使用歸還卷軸 , 停止腳本
EndIf
Gosub 偵測HPMP
If Clng(ETHP)>0
If as3<>0
Plugin Bkgnd.KeyPress(hwnd,as3)
Delay 1000
EndIf
If as4<>0
Plugin Bkgnd.KeyPress(hwnd,as4)
Delay 1000
EndIf
If as5<>0
Plugin Bkgnd.KeyPress(hwnd,as5)
Delay 1000
EndIf
If as6<>0
Plugin Bkgnd.KeyPress(hwnd,as6)
Delay 1000
EndIf
If as7<>0
Plugin Bkgnd.KeyPress(hwnd,as7)
Delay 1000
EndIf
Gosub 記憶體
If Clng(ETHP)=0
For 5
Plugin Bkgnd.KeyPress(hwnd,32)
Delay 150
EndFor
Goto 開始
EndIf
If DateDiff("s",pkt,time)>=30 and Clng(ETHP)>0 and Clng(TT)=0
Plugin Bkgnd.KeyPress(hwnd,27)
Delay 300
pkt=time
Goto 不搶怪
EndIf
Goto 打怪中
ElseIf Clng(ETHP)=0
Plugin Bkgnd.KeyPress(hwnd,9)
Goto 打怪中
EndIf
Return 戰鬥
Sub 輔助魔法
If DateDiff("s",t1,time)>=ta1 or a=0
Delay 100
KeyPress ad1 1
t1=time
EndIf
If DateDiff("s",t2,time)>=ta2 or a=0
Delay 100
KeyPress ad2 1
t2=time
EndIf
If DateDiff("s",t3,time)>=ta3 or a=0
Delay 100
KeyPress ad3 1
t3=time
EndIf
If DateDiff("s",t4,time)>=ta4 or a=0
Delay 100
KeyPress ad4 1
t4=time
EndIf
If DateDiff("s",t5,time)>=ta5 or a=0
Delay 100
KeyPress ad5 1
t5=time
EndIf
a=1
Return 輔助魔法
Sub 記憶體
Plugin PK=MemoryS3.ReadInt(hwnd,"[10A8BF8]",1)
Plugin QTM=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+240]",1)
Plugin QT=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+242]",1)
Plugin HP=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+262]",1)
Plugin HPM=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+25C]",1)
Plugin MP=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+266]",1)
Plugin MPM=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+260]",1)
Plugin ETHP=MemoryS3.ReadInt(hwnd,"[[10A8B48]+470]",1)
Plugin ETHPM=MemoryS3.ReadInt(hwnd,"[[10A8B48]+474]",1)
Plugin TT=MemoryS3.ReadInt(hwnd,"[[E1B9C4]+2E4F0]",1)
Return 記憶體 |