¦¹ª©¦³~°{NPC~¤£·m©Ç~§¤¤U¤ÏÀ»~¥ð®§¤ÏÀ»¦A¤ÏÀ»¦A¤ÏÀ»~ÁÙ·|ºë·Ç¾ßÄ_ª«³á~¤j®a½Ð°O±o§ì¦â~ÁÙ¦³×§ï¾ßÄ_ª«¶ZÂ÷~¦pªG©È¥d©Ç~§ðÀ»¥i¥H¦A¥[Ó«á°h¡ã¥L´N·|¤@ª½«á°h¢±«e¶i¢²¤£©È¥d¦í搂¡ã¦³°ÝÃD¦A°Ý§Ú搂¡ã¢³ªA±¾¾÷¥Nªí¡ã
#[HOTKEY]HOME
function main
SetInputMode(3) //ÅX°Ê¼Ò¦¡,«Ü¦h¹CÀ¸·|ªý¾×SPªº³¡¥÷¥\¯à,¥i¥H®M¥Î¦¹¨ç¼Æ
while true //´`Àô¶}©l
State()//¤l¨ç¼Æª¬ºA
wend //ªð¦^while¶}©l´`Àô
end function
function State//¥ð®§§ðÀ»+³Ü¤ô
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
print("°õ¦æ§ðÀ»")
if not CheckColor(WinX0+228, WinY0+674, Color(193, 15, 45), 10) then
Wait(500)
KeyDown("x")
Wait(500)
KeyUp("x")
Wait(2000)
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10) then//©Ç¦å±ø«áºÝ¦pªGÃC¦â¥¿½T´N¤ÏÀ»
do
Print("¥D°Ê©Ç¤ÏÀ»°j°é")
KeyDown("1")
Wait(300)
KeyDown("2")
Wait(300)
KeyUp("2")
Wait(300)
KeyDown("3")
Wait(300)
KeyUp("3")
Wait(100)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
loop while CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10)//©Çª«¦å¶q©³³¡,¦pªGÁÙ¦³¦å´N¸õ¦^¥h¥X
KeyDown("1")
Wait(300)
KeyPress("F")
Wait(300)
KeyPress("F")
Wait(300)
Keypress("ESC")
Wait(100)
KeyDown("x")
Wait(500)
KeyUp("x")
Wait(2000)
end if
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10) then//©Ç¦å±ø«áºÝ¦pªGÃC¦â¥¿½T´N¤ÏÀ»
do
Print("¥D°Ê©Ç¤ÏÀ»°j°é")
KeyDown("1")
Wait(300)
KeyDown("2")
Wait(300)
KeyUp("2")
Wait(300)
KeyDown("3")
Wait(300)
KeyUp("3")
Wait(100)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
loop while CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10)//©Çª«¦å¶q©³³¡,¦pªGÁÙ¦³¦å´N¸õ¦^¥h¥X
KeyDown("1")
Wait(300)
KeyPress("F")
Wait(300)
KeyPress("F")
Wait(300)
Keypress("ESC")
Wait(100)
KeyDown("x")
Wait(500)
KeyUp("x")
Wait(2000)
end if
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10) then//©Ç¦å±ø«áºÝ¦pªGÃC¦â¥¿½T´N¤ÏÀ»
do
Print("¥D°Ê©Ç¤ÏÀ»°j°é")
KeyDown("1")
Wait(300)
KeyDown("2")
Wait(300)
KeyUp("2")
Wait(300)
KeyDown("3")
Wait(300)
KeyUp("3")
Wait(100)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
loop while CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10)//©Çª«¦å¶q©³³¡,¦pªGÁÙ¦³¦å´N¸õ¦^¥h¥X
KeyDown("1")
Wait(300)
KeyPress("F")
Wait(300)
KeyPress("F")
Wait(300)
Keypress("ESC")
Wait(100)
KeyDown("x")
Wait(500)
KeyUp("x")
end if
do //´`Àô
//µ¥«Ý2000²@¬í
Wait(2000)
//ª½¨ìµ¡¤f§¤¼Ð(188, 42)ªºÃC¦âµ¥©ó(166, 60, 23)
loop until CheckColor(WinX0+253, WinY0+674, Color(103, 9, 25), 10)
end if
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¦pªGµ¡¤f§¤¼Ð(86, 50)ªºÃC¦â¤£µ¥©ó(57, 121, 132) ¨º»ò
//¦pªG©Çª«ª¬ºA±øªºº¡¦å¦ì¸m§ä¤£¨ì?
if not CheckColor(WinX0+592, WinY0+30, Color(104, 17, 33), 10) then
//°õ¦æ¬q¤º»y¥y¡A·í¹B¦æ¦ÜLOOP®É¡A¦pªGªí¹F¦¡¬°false«h¸õ¦^DO¶i¦æ¤U¤@¦¸°õ¦æ¡A
//ª½¦ÜLOOP«áªºªí¹F¦¡¬°true(¯u)®É¹B¦æ§¹²¦¡C
do
KeyPress("TAB")
Wait(800)
loop until CheckColor(WinX0+592, WinY0+30, Color(104, 17, 33), 10)//©Çª«º¡¦åªº¦ì¸m
GetActiveWindowXY(WinX0, WinY0)
if not CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10) then//npc¯S©w¹Ï§Î§PÂ_
do
print("§PÂ_¬O§_¬°npc")
Keypress("tab")
Wait(100)
Wait(300)
loop until CheckColor(WinX0+585, WinY0+9, Color(164, 164, 163), 10)//¦pªG²Å¦X©Çªº¹Ï¦æ¤Î°õ¦æ¤U¤@¦æ
end if
else //§ä¨ìªº¸Ü¡K
do//°õ¦æ§ðÀ»
for ForCount = 1 to 3
KeyDown("1")
Wait(300)
KeyDown("2")
Wait(300)
KeyUp("2")
Wait(300)
KeyDown("3")
Wait(300)
KeyUp("3")
Wait(100)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
next
loop while CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10)//©Çª«¦å¶q©³³¡,¦pªGÁÙ¦³¦å´N¸õ¦^¥h
//µ¥«Ý500²@¬í
Print("¦º¤`")
KeyDown("1")//¸É¥´¤@¤U§Kªº»~§P
Wait(300)
KeyPress("F")
Wait(300)
KeyDown("w")
Wait(1600)
KeyUp("w")
KeyPress("F")
Wait(300)
KeyPress("F")
Wait(300)
Keypress("ESC")
Wait(2000)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
GetActiveWindowXY(WinX0, WinY0)
if CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10) then//©Ç¦å±ø«áºÝ¦pªGÃC¦â¥¿½T´N¤ÏÀ»
do
Print("¥D°Ê©Ç¤ÏÀ»°j°é")
KeyDown("1")
Wait(300)
KeyDown("2")
Wait(300)
KeyUp("2")
Wait(300)
KeyDown("3")
Wait(300)
KeyUp("3")
Wait(100)
//¨úµ¡¤fìÂI§¤¼Ð
GetActiveWindowXY(WinX0, WinY0)
//¸É¦å§Þ¯à,¨S¦³´N©ñ¬õ¤ô
//¦pªGµ¡¤f§¤¼Ð(176, 674)ªºÃC¦â¤£µ¥©ó(219, 18, 13) ¨º»ò
if not CheckColor(WinX0+185, WinY0+674, Color(222, 17, 50), 10) then
KeyDown("6")
Wait(300)
KeyUp("6")
end if
loop while CheckColor(WinX0+451, WinY0+30, Color(109, 37, 47), 10)//©Çª«¦å¶q©³³¡,¦pªGÁÙ¦³¦å´N¸õ¦^¥h¥X
KeyDown("1")
Wait(300)
KeyPress("F")
Wait(300)
KeyPress("F")
Wait(300)
Keypress("ESC")
end if
end if
end function |