[AutoHotkey Script 1]
#NoEnv
#SingleInstance force
SetKeyDelay, -1
SetWinDelay,-1
SetBatchLines,-1
SetControlDelay,-1
CoordMode, Pixel, Screen
FileMoveDir, Baram03, C:\Baram03, 2
psw=2
Gui,1: +AlwaysOnTop -Caption +Border +ToolWindow
Gui,1: Add, Picture, x20 y15 BackgroundTrans, C:\Baram03\Bground.png
Gui,1: Color, FFFFFF
Gui,1: Add, Button, x280 y20 w77 h23 vexit Disabled Hidden, Exit
Gui,1: Add, Button, x280 y20 w77 h23 vstart, Start
Gui,1: Add, Button, x364 y20 w77 h23 gBrm, Baram
Gui,1: Add, Tab, x150 y45 w295 h210, 술사 ' 도사
Gui,1: Tab, 술사 ' 도사
Gui,1: Add, GroupBox, x161 y70 w132 h175 cgreen , Skill
Gui,1: Add, GroupBox, x301 y70 w132 h125 cgreen, Buff
Gui,1: Add, CheckBox, x171 y90 w50 h20 vC1, 공격1
Gui,1: Add, CheckBox, x171 y115 w50 h20 vC2, 공격2
Gui,1: Add, CheckBox, x171 y140 w50 h20 vC3, 공격3
Gui,1: Add, CheckBox, x171 y165 w50 h20 vC4, 시폭
Gui,1: Add, CheckBox, x171 y190 w50 h20 vC5, 지폭
Gui,1: Add, CheckBox, x171 y215 w50 h20 vC6, 폭류
Gui,1: Add, CheckBox, x311 y90 w50 h20 vC7, 마기
Gui,1: Add, CheckBox, x311 y115 w50 h20 vC8, 명상
Gui,1: Add, CheckBox, x311 y140 w50 h20 checked, 기원
Gui,1: Add, CheckBox, x311 y165 w50 h20 checked, 공증
Gui,1: Add, DropDownList, x222 y92 w60 h60 vD1, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x222 y117 w60 h60 vD2, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x222 y142 w60 h60 vD3, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x222 y167 w60 h60 vD4, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x222 y192 w60 h60 vD5, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x222 y217 w60 h60 vD6, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x361 y92 w60 h60 vD7, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x361 y117 w60 h60 vD8, |1|2|3|4|5|6|7|8|9|
Gui,1: Add, DropDownList, x361 y142 w60 h30 , 0||
Gui,1: Add, DropDownList, x361 y167 w60 h30 , 2||
Gui,1: Add, CheckBox, x311 y205 w53 h20 vC9, 십억경
Gui,1: Add, DropDownList, x371 y205 w52 h60 vD9, a|b|c|d|e|f|g
Gui,1: Show, x600 y310 h261 w458, Baram03
OnMessage(0x201, "WM_LBUTTONDOWN")
WM_LBUTTONDOWN()
{
PostMessage, 0xA1, 2,,, A
}
WinSet, Transparent, 230 , Baram03
WinSet, Region, R35-35 W458 H261 0-0
IniRead, L_C1, C:/Baram03/save.ini, ini, C1, 0
GuiControl,,C1, %L_C1%
IniRead, L_C2, C:/Baram03/save.ini, ini, C2, 0
GuiControl,,C2, %L_C2%
IniRead, L_C3, C:/Baram03/save.ini, ini, C3, 0
GuiControl,,C3, %L_C3%
IniRead, L_C4, C:/Baram03/save.ini, ini, C4, 0
GuiControl,,C4, %L_C4%
IniRead, L_C5, C:/Baram03/save.ini, ini, C5, 0
GuiControl,,C5, %L_C5%
IniRead, L_C6, C:/Baram03/save.ini, ini, C6, 0
GuiControl,,C6, %L_C6%
IniRead, L_C7, C:/Baram03/save.ini, ini, C7, 0
GuiControl,,C7, %L_C7%
IniRead, L_C8, C:/Baram03/save.ini, ini, C8, 0
GuiControl,,C8, %L_C8%
IniRead, L_D1, C:/Baram03/save.ini, ini, D1, 0
L_D1a:=L_D1+1
GuiControl, Choose,D1, %L_D1a%
IniRead, L_D2, C:/Baram03/save.ini, ini, D2, 0
L_D2a:=L_D2+1
GuiControl, Choose,D2, %L_D2a%
IniRead, L_D3, C:/Baram03/save.ini, ini, D3, 0
L_D3a:=L_D3+1
GuiControl, Choose,D3, %L_D3a%
IniRead, L_D4, C:/Baram03/save.ini, ini, D4, 0
L_D4a:=L_D4+1
GuiControl, Choose,D4, %L_D4a%
IniRead, L_D5, C:/Baram03/save.ini, ini, D5, 0
L_D5a:=L_D5+1
GuiControl, Choose,D5, %L_D5a%
IniRead, L_D6, C:/Baram03/save.ini, ini, D6, 0
L_D6a:=L_D6+1
GuiControl, Choose,D6, %L_D6a%
IniRead, L_D7, C:/Baram03/save.ini, ini, D7, 0
L_D7a:=L_D7+1
GuiControl, Choose,D7, %L_D7a%
IniRead, L_D8, C:/Baram03/save.ini, ini, D8, 0
L_D8a:=L_D8+1
GuiControl, Choose,D8, %L_D8a%
return
;###########################################################################
Brm:
return
ButtonExit:
GuiControl,disable,exit
GuiControl,hide,exit
GuiControl,enable,start
GuiControl,Show,start
IniWrite, 0, C:/Baram03/save.ini, ini, FG
ExitApp
return
ButtonStart:
Gui,Submit,nohide
GuiControl,disable,start
GuiControl,hide,start
GuiControl,enable,exit
GuiControl,Show,exit
WinWait, 바람의나라,
IfWinNotActive, 바람의나라, , WinActivate, 바람의나라,
WinWaitActive, 바람의나라,
Winmove, 0, 0
GuiControlGet, C1
If C1 = 1
{
Settimer, Ms1, 340
}
GuiControlGet, C2
If C2 = 1
{
Settimer, Ms2, 1000
}
GuiControlGet, C3
If C3 = 1
{
Settimer, Ms3, 1783
}
GuiControlGet, C4
If C4 = 1
{
Settimer, Ms4, 3000
}
GuiControlGet, C7
If C7 = 1
{
Settimer, Ms7, 10700
}
Settimer, Ms5, 8000
Settimer, Mpt, 5138
Settimer, Hel, 250
Settimer, Buf, 3050
Settimer, Out, 3100
pause
return
;###########################################################################
Mpt:
Thread, NoTimers
Imagesearch, vx, vy, 200, 10, 610, 500, *15 C:/Baram03/potal2.bmp
If Errorlevel = 0
{
IniWrite, 2, C:/Baram03/save.ini, ini, FG
gosub, Exp
Sleep, 500
ControlSend,, {Esc}, 바람의나라
ControlSend,, {Ctrl down}, 바람의나라
ControlSend,, {r}, 바람의나라
ControlSend,, {Ctrl up}, 바람의나라
Sleep,2800
va:=vx+161
vb:=vy
a:= (vb*65536)+va
PostMessage, 0x200, 0, %a%, , 바람의나라
PostMessage, 0x201, 1, %a%, , 바람의나라
PostMessage, 0x202, 0, %a%, , 바람의나라
Sleep,100
k:= (62*65536)+459
PostMessage, 0x200, 0, %k%, , 바람의나라
PostMessage, 0x201, 1, %k%, , 바람의나라
PostMessage, 0x202, 0, %k%, , 바람의나라
Sleep, 1000
ControlSend,, {Down}, 바람의나라
ControlSend,, {Enter}, 바람의나라
Sleep, 500
Imagesearch, VX, VY, 300, 1, 540, 80, *15 C:/Baram03/Room1.bmp
If Errorlevel = 0
{
Sleep, 77
ControlSend,, {Up}, 바람의나라
Sleep, 78
ControlSend,, {3}, 바람의나라
Sleep, 597
ControlSend,, {3}, 바람의나라
IniWrite, 1, C:/Baram03/save.ini, ini, FG
}
}
return
Exp:
Gui,Submit,Nohide
Thread, NoTimers
GuiControlGet, C9
if C9=1
{
Imagesearch, vx, vy, 890, 738, 915, 750, *10 C:/Baram03/Exp.bmp
If Errorlevel = 0
{
Loop, 4
{
ControlSend,,{u},바람의나라
Sleep, 50
ControlSend,,{%D3%},바람의나라
Sleep, 800
ControlSend,,{Down},바람의나라
Sleep, 150
ControlSend,,{Enter},바람의나라
Sleep, 800
ControlSend,,{Esc},바람의나라
}
}
}
return
Out:
Thread, NoTimers
Imagesearch, VX, VY, 10, 30, 820, 750, *100 C:/Baram03/out.bmp
If Errorlevel = 0
{
Controlsend,, {down}, 바람의나라
}
return
;###########################################################################
Hel:
Thread, NoTimers
Imagesearch, VX, VY, 300, 1, 540, 80, *15 C:/Baram03/Room1.bmp
If Errorlevel = 0
{
Imagesearch, VX, VY, 800, 600, 1024, 750, *30 C:/Baram03/hph.bmp
If Errorlevel = 0
{
Controlsend,,{0}, 바람의나라
Controlsend,,{Home}, 바람의나라
Controlsend,,{Enter}, 바람의나라
}
Imagesearch, VX, VY, 800, 600, 1024, 750, *30 C:/Baram03/mph.bmp
If Errorlevel = 0
{
Controlsend,,{2}, 바람의나라
Controlsend,,{2}, 바람의나라
}
}
return
Buf:
Gui,Submit,Nohide
Thread, NoTimers
Guicontrolget, C8
if C8 = 1
{
Imagesearch, VX, VY, 300, 1, 540, 80, *15 C:/Baram03/Room1.bmp
If Errorlevel = 0
{
Imagesearch, VX, VY, 30, 30, 300, 400, *30 C:/Baram03/명상.bmp
If Errorlevel = 1
{
IniWrite, 2, C:/Baram03/save.ini, ini, FG
Sleep, 500
ControlSend,, {%D8%}, 바람의나라
Sleep,1600
IniWrite, 1, C:/Baram03/save.ini, ini, FG
}
}
}
return
;###########################################################################
Ms1:
Gui,Submit,Nohide
Thread, NoTimers
Imagesearch, VX, VY,10, 30, 815, 655, *10 C:/Baram03/mob.bmp
If Errorlevel = 0
{
Controlsend,,{%D1%}, 바람의나라
Controlsend,,{Right}, 바람의나라
Controlsend,,{Enter}, 바람의나라
}
return
Ms2:
Gui,Submit,Nohide
Thread, NoTimers
Imagesearch, VX, VY,10, 30, 815, 655, *10 C:/Baram03/mob.bmp
If Errorlevel = 0
{
Controlsend,,{%D2%}, 바람의나라
Controlsend,,{Home}, 바람의나라
Controlsend,,{Right}, 바람의나라
Controlsend,,{Enter}, 바람의나라
}
return
Ms3:
Gui,Submit,Nohide
Thread, NoTimers
Controlsend,,{%D3%}, 바람의나라
Controlsend,,{%D3%}, 바람의나라
return
Ms4:
Gui,Submit,Nohide
Thread, NoTimers
Imagesearch, VX, VY, 340, 200, 470, 350, *10 C:/Baram03/mob.bmp
If Errorlevel = 0
{
Random, ran, 1, 3
if ran = 1
{
Controlsend,, {Left}, 바람의나라
Controlsend,, {%D4%}, 바람의나라
}
if ran = 2
{
Controlsend,, {Right}, 바람의나라
Controlsend,, {%D4%}, 바람의나라
}
if ran = 3
{
Controlsend,, {Down}, 바람의나라
Controlsend,, {%D4%}, 바람의나라
}
}
return
Ms5:
Gui,Submit,nohide
Guicontrolget, C5
if C5 = 1
{
Imagesearch, vx, vy, 980, 760, 1001, 780, *100 C:/Baram03/12.bmp
If Errorlevel = 0
{
Controlsend,,{%D5%}, 바람의나라
}}
Guicontrolget, C6
if C6 = 1
{
Imagesearch, vx, vy, 980, 760, 1001, 780, *100 C:/Baram03/12.bmp
If Errorlevel = 0
{
Controlsend,,{%D6%}, 바람의나라
}}
return
Ms7:
Gui,Submit,Nohide
Thread, NoTimers
Controlsend,,{%D7%}, 바람의나라
return
;###########################################################################
GuiClose:
IniWrite, 0, C:/Baram03/save.ini, ini, FG
ExitApp
return
GuiContextMenu:
Gui,Submit,Nohide
GuiControlget,C1
IniWrite,%C1%, C:/Baram03/save.ini, ini, C1
GuiControlget,C2
IniWrite,%C2%, C:/Baram03/save.ini, ini, C2
GuiControlget,C3
IniWrite,%C3%, C:/Baram03/save.ini, ini, C3
GuiControlget,C4
IniWrite,%C4%, C:/Baram03/save.ini, ini, C4
GuiControlget,C5
IniWrite,%C5%, C:/Baram03/save.ini, ini, C5
GuiControlget,C6
IniWrite,%C6%, C:/Baram03/save.ini, ini, C6
GuiControlget,C7
IniWrite,%C7%, C:/Baram03/save.ini, ini, C7
GuiControlget,C8
IniWrite,%C8%, C:/Baram03/save.ini, ini, C8
GuiControlget,C13
IniWrite,%C8%, C:/Baram03/save.ini, ini, C13
GuiControlget,D1
IniWrite,%D1%, C:/Baram03/save.ini, ini, D1
GuiControlget,D2
IniWrite,%D2%, C:/Baram03/save.ini, ini, D2
GuiControlget,D3
IniWrite,%D3%, C:/Baram03/save.ini, ini, D3
GuiControlget,D4
IniWrite,%D4%, C:/Baram03/save.ini, ini, D4
GuiControlget,D5
IniWrite,%D5%, C:/Baram03/save.ini, ini, D5
GuiControlget,D6
IniWrite,%D6%, C:/Baram03/save.ini, ini, D6
GuiControlget,D7
IniWrite,%D7%, C:/Baram03/save.ini, ini, D7
GuiControlget,D8
IniWrite,%D8%, C:/Baram03/save.ini, ini, D8
IniWrite, 0, C:/Baram03/save.ini, ini, FG
ExitApp
return
]::
Pause,off
If (psw=1)
{
IniWrite, 2, C:/Baram03/save.ini, ini, FG
psw=2
Pause,on
return
}
If (psw=2)
{
IniWrite, 1, C:/Baram03/save.ini, ini, FG
psw=1
}
return
[AutoHotkey Script 2]
#NoEnv
#SingleInstance force
SetKeyDelay, -1
SetWinDelay,-1
SetBatchLines,-1
SetControlDelay,-1
CoordMode, Pixel, Screen
IniWrite, 2, C:/Baram03/save.ini, ini, FG
Settimer, Xmv, 311
Settimer, Ymv, 60
return
;###########################################################################
Xmv:
IniRead, RFG, C:/Baram03/save.ini, ini, FG, 0
if (RFG=0)
{
ExitApp
}
IniRead, RFG, C:/Baram03/save.ini, ini, FG, 0
if (RFG=1)
{
gosub,Lax2
Imagesearch, VX, VY, 300, 1, 540, 80, *15 C:/Baram03/Room1.bmp
If Errorlevel = 0
{
if (x<16)
ControlSend,,{Right},바람의나라
if (x>16)
ControlSend,,{Left},바람의나라
}
Imagesearch, VX, VY, 300, 1, 540, 80, *15 C:/Baram03/Room2.bmp
If Errorlevel = 0
{
if(x<18)
ControlSend,,{Right},바람의나라
if(x>18)
ControlSend,,{Left},바람의나라
}
}
return
Ymv:
IniRead, RFG, C:/Baram03/save.ini, ini, FG, 0
if (RFG=1)
{
Imagesearch, vx, vy, 980, 760, 993, 780, *20 C:/Baram03/0.bmp
If Errorlevel = 0
{
ControlSend,,{Down},바람의나라
return
}
Imagesearch, vx, vy, 980, 760, 1001, 780, *10 C:/Baram03/09.bmp
If Errorlevel = 0
{
ControlSend,,{Down},바람의나라
return
}
Imagesearch, vx, vy, 980, 760, 1001, 780, *10 C:/Baram03/10.bmp
If Errorlevel = 0
{
ControlSend,,{Down},바람의나라
return
}
Imagesearch, vx, vy, 980, 760, 1001, 780, *10 C:/Baram03/11.bmp
If Errorlevel = 0
{
ControlSend,,{Down},바람의나라
return
}
Imagesearch, vx, vy, 980, 760, 1001, 780, *10 C:/Baram03/12.bmp
If Errorlevel = 1
{
ControlSend,,{Up},바람의나라
Sleep, 123
ControlSend,,{Up},바람의나라
}
}
return
;##########################################################################################
Lax2:
number = 0,1,2
loop,parse,number,`,
{
ImageSearch, ooVX, ooVY, 923, 762, 936, 774, *51 C:/Baram03/%A_LoopField%.bmp
If Errorlevel = 0
{
ax2 = %A_LoopField%
goto, Lax1
} }
Lax1:
number = 0,1,2,3,4,5,6,7,8,9
loop,parse,number,`,
{
ImageSearch, oVX, oVY, 931, 762, 944, 774, *51 C:/Baram03/%A_LoopField%.bmp
If Errorlevel = 0
{
ax1 = %A_LoopField%
goto, Crd
} }
Crd:
x:=ax2*10 + ax1
return
;###########################################################################
#q::
return