MessageBox
"测试,脚本启动运行中。。。"
EndScript
Dim
血键
Select
Case
Form1.
补血热键.ListIndex
Case
0
血键 = 0
Case
1
血键 = 112
Case
2
血键 = 113
Case
3
血键 = 114
Case
4
血键 = 115
Case
5
血键 = 116
Case
6
血键 = 117
Case
7
血键 = 118
Case
8
血键 = 119
Case
9
血键 = 120
End
Select
Dim
蓝键
Select
Case
Form1.
补蓝热键.ListIndex
Case
0
蓝键 = 0
Case
1
蓝键 = 112
Case
2
蓝键 = 113
Case
3
蓝键 = 114
Case
4
蓝键 = 115
Case
5
蓝键 = 116
Case
6
蓝键 = 117
Case
7
蓝键 = 118
Case
8
蓝键 = 119
Case
9
蓝键 = 120
End
Select
Dim
技能键
Select
Case
Form1.
技能加血热键.ListIndex
Case
0
技能键 = 0
Case
1
技能键 = 112
Case
2
技能键 = 113
Case
3
技能键 = 114
Case
4
技能键 = 115
Case
5
技能键 = 116
Case
6
技能键 = 117
Case
7
技能键 = 118
Case
8
技能键 = 119
Case
9
技能键 = 120
End
Select
Rem
登录
RunApp
Form1.
游戏路径.Text
Do
Delay
1000
Hwnd =
Plugin.
Window.
Find(0,
"【游戏标题】请自行修改"
)
If
Hwnd <> 0
Then
Exit
Do
End
If
Loop
SayString
Form1.
游戏帐号.Text
Delay
1000
KeyPress
"Tab"
, 1
Delay
1000
SayString
Form1.
游戏密码.Text
Delay
1000
Select
Case
Form1.
网络.ListIndex
Case
0
MoveTo
50, 50
Case
1
MoveTo
50, 100
Case
2
MoveTo
50, 150
End
Select
Delay
1000
LeftClick
1
Delay
1000
Select
Case
Form1.
服务器.ListIndex
Case
0
MoveTo
100, 50
Case
1
MoveTo
100, 100
End
Select
Delay
1000
LeftClick
1
Delay
1000
Select
Case
Form1.
角色.ListIndex
Case
0
MoveTo
100, 100
Case
1
MoveTo
200, 100
Case
2
MoveTo
300, 100
End
Select
Delay
1000
LeftClick
1
Delay
1000
Do
Delay
1000
IfColor
50,5,
"0000FF"
,0
Then
Exit
Do
End
If
Loop
Dim
t1
t1=
now
Rem
开始
Call
人物状态保护
Rem
找怪
KeyPress
"Tab"
,1
Delay
500
Delay
500
IfColor
50,5,
"0000FF"
,0
Then
Do
KeyPress
"A"
, 1
Delay
200
Call
人物状态保护
If
DateDiff
(
"s"
,t1,
now
) >=
Form1.
等待.Text
Then
t1=
now
Exit
Do
End
If
Delay
200
Loop
End
If
If
Form1.
复活方式.ListIndex > 0
Then
IfColor
0,0,
"0"
,0
Then
If
Form1.
复活方式.ListIndex = 1
Then
ElseIf
Form1.
复活方式.ListIndex = 2
Then
ElseIf
Form1.
复活方式.ListIndex = 3
Then
End
If
End
If
End
If
If
Form1.
死亡处理.ListIndex > 0
Then
IfColor
0,0,
"0"
,0
Then
If
Form1.
死亡处理.ListIndex = 1
Then
Call
Plugin.
Media.
Play(
Form1.
路径.Text)
Delay
5000
Goto
结束
ElseIf
Form1.
死亡处理.ListIndex = 2
Then
ElseIf
Form1.
死亡处理.ListIndex = 3
Then
End
If
End
If
End
If
Delay
200
Goto
开始
Rem
结束
EndScript
Sub
OnScriptExit
()
Call
Plugin.
Media.
Stop
()
MessageBox
"测试结束,脚本停止!"
End
Sub
Sub
人物状态保护()
If
血键 > 0
Then
IfColor
5+(10-5)*补血,5,
"0000FF"
,0
Then
KeyPress
血键, 1
Delay
200
End
If
End
If
If
蓝键 > 0
Then
IfColor
5+(10-5)*补蓝,10,
"FF0000"
,0
Then
KeyPress
蓝键, 1
Delay
200
End
If
End
If
If
技能键 > 0
Then
IfColor
5+(10-5)*补血,20,
"0000FF"
,0
Then
KeyPress
技能键, 1
Delay
1000
End
If
End
If
End
Sub
Event
Form1.
Button6.
Click
KeyPress
"F10"
, 1
End
Event
Event
Form1.
Button2.
Click
Form1.
游戏路径.Text=
""
Form1.
游戏帐号.Text=
""
Form1.
游戏密码.Text=
""
Form1.
网络.ListIndex = 0
Form1.
服务器.ListIndex = 0
Form1.
角色.ListIndex = 0
End
Event
Event
Form1.
Button1.
Click
Form1.
Container1.
Visible =
False
Form1.
Container2.
Visible =
True
Form1.
状态.Text = 1
End
Event
Event
Form1.
Button4.
Click
Form1.
Container1.
Visible =
True
Form1.
Container2.
Visible =
False
Form1.
状态.Text = 0
End
Event
Event
Form1.
Button5.
Click
Form1.
TabControl1.
Tab = 1
End
Event
Event
Form1.
Button7.
Click
Form1.
TabControl1.
Tab = 0
Form1.
Container1.
Visible =
False
Form1.
Container2.
Visible =
True
End
Event
Event
Form1.
LoadOver
Form1.
TabControl1.
Tab = 0
If
Form1.
状态.Text = 0
then
Form1.
Container1.
Visible =
true
Form1.
Container2.
Visible =
false
else
Form1.
Container1.
Visible =
false
Form1.
Container2.
Visible =
true
End
if
End
Event
Event
Form1.
Button3.
Click
Dim
filepath
filepath =
Plugin.
File.
SelectFile()
If
UCase
(
Right
(filepath,4)) =
".EXE"
Then
Form1.
游戏路径.Text = filepath
Else
If
filepath <>
""
Then
MsgBox
"请选择“.exe”可执行程序文件!"
End
If
End
If
End
Event
Event
Form1.
网络.SelectChange
Select
Case
Form1.
网络.ListIndex
Case
0
Form1.
服务器.List =
"桂林山水|鼓浪闻涛"
Case
1
Form1.
服务器.List =
"云南大理|云南丽江"
Case
2
Form1.
服务器.List =
"盘古开天|女娲造人"
End
Select
End
Event
Event
Form1.
死亡处理.SelectChange
Dim
索引
索引 =
Form1.
死亡处理.ListIndex
Select
Case
索引
Case
1
Form1.
选择.Enabled =
True
Form1.
路径.Enabled =
True
Form1.
播放.Enabled =
True
Form1.
停止.Enabled =
True
Case
Else
Form1.
选择.Enabled =
False
Form1.
路径.Enabled =
False
Form1.
播放.Enabled =
False
Form1.
停止.Enabled =
False
End
Select
End
Event
Event
Form1.
选择.Click
Dim
MP3
MP3 =
Plugin.
File.
SelectFile()
If
UCase
(
Right
(MP3,4)) =
".MP3"
Or
UCase
(
Right
(MP3,4)) =
".WAV"
Then
Form1.
路径.Text = MP3
Else
If
MP3 <>
""
Then
MsgBox
"请选择“.mp3或者.wav”音乐格式的文件!"
End
If
End
If
End
Event
Event
Form1.
播放.Click
Call
Plugin.
Media.
Play(
Form1.
路径.Text)
End
Event
Event
Form1.
停止.Click
Call
Plugin.
Media.
Stop
()
End
Event
Event
Form1.
UnLoad
Call
Plugin.
Media.
Stop
()
End
Event
Event
Form1.
Load
PutAttachment
"C:\","
*.wav"
End
Event