--------------------------------------------
--һκⶼԷǵĴ
------------ǻһʱ㴦----------
--------------------------------------------

ϵͳ.óű()

жϵͼ
.л״̬Ϊ('')
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ') end
if ϵͳ.ǰͼ('D604') then ϵͳ.ת('һ2') end
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱') end
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ') end
if ϵͳ.ǰͼ('D611') then ϵͳ.ת('ɭʯ·') end
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش') end
.л״̬Ϊ('Ϣ')
if ϵͳ.ǰͼ('Ϣ') then ϵͳ.ת('Ϣ') end
if ϵͳ.ǰͼ('5') then ϵͳ.ת('س') end
if ϵͳ.ǰͼ('3') then ϵͳ.ת('Ʒ') end
if ϵͳ.ǰͼ('GA0') then ϵͳ.ת('ׯ԰') end
if ϵͳ.ǰͼ('4') then ϵͳ.ת('ħ') end
if ϵͳ.ǰͼ('2') then ϵͳ.ת('ɽ') end
if ϵͳ.ǰͼ('0') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('4') then ϵͳ.ת('ħ') end
if ϵͳ.ǰͼ('11') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('0159') then ϵͳ.ת('') end
ϵͳ.ת('ûԶس')

űļ('-ʡس.txt')


if ϵͳ.ǰͼ('3') then ϵͳ.ת('򼶴') end
if .ָľ(139,326) < 6 then ϵͳ.ת('غϱԻ') end
.ܵ(143, 329)
غϱԻ
.NPCԻ('ϱ')
.ѡ('ȥ','@back')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('5') then ϵͳ.ת('') end

򼶴
if .ܱΧ() then ϵͳ.ñ('Χ') end
if .ܱΧ() then ϵͳ.ñ('Χ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end

ϵͳ.sleep(1000)
1
_ʱ = os.clock()
if ϵͳ.ǰͼ('3') then ϵͳ.ת('жϵͼ') end
if .('˲Ϣƶ') then ϵͳ.ñ('ʡ򼶴ʦ˲ƶ') end
if .Ʒ('*') < 1 then ϵͳ.ת('') end
if .ָľ(130,130) < 100 then ϵͳ.ת('') end
ϵͳ.ñ('ʹ')
ϵͳ.ת('1')


.ܵ(140, 95, true)
.NPCԻ('ɽȴԱ')
.ѡ('ǰһ㶫','@Go_1')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('3') then ϵͳ.ת('') end
.л״̬Ϊ('')
ϵͳ.ת('жϵͼ')

һ㶫
.л״̬Ϊ('')
.ߴߵ(52, 15)
.߽ŵ㵽ͼ(52,14,'D607')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end

ݣ
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('жϵͼ') end
.ܵ(31, 9)
.߽ŵ㵽ͼ(31,8,'D602')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('') end

һ
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('жϵͼ') end
.ߴߵ(177, 34)
.߽ŵ㵽ͼ(177,33,'D611')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ') end

ɭʯ·
if ϵͳ.ǰͼ('D611') then ϵͳ.ת('жϵͼ') end
if .Ʒ('*') < 1 then ϵͳ.ת('ûԶس') end
if .ָľ(37,68) >= 100000 then ϵͳ.ñ('ɭʯ·ʹ') end
.ܵ(33, 70)
.߽ŵ㵽ͼ(32,71,'D604')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D611') then ϵͳ.ת('ɭʯ·') end

һ2
if ϵͳ.ǰͼ('D604') then ϵͳ.ת('жϵͼ') end
.ߴߵ(137, 138)
.ߴߵ(50, 40)
.ߴߵ(22, 34)
.ߴߵ(39, 156)
.ߴߵ(103, 129)
ϵͳ.ת('жϵͼ')

ûԶسǣ
if ϵͳ.ǰͼ('3') then ϵͳ.ñ('ֱ') end
if ϵͳ.ǰͼ('3') then ϵͳ.ת('жϵͼ') end
if .Ʒ('سǾ*') > 0 then ϵͳ.ת('ʹûسǾ') end
if .Ʒ('Ѿ') < 1 then ϵͳ.ת('߻ز') end
.ʹƷ('Ѿ')
ϵͳ.sleep(1000)
ϵͳ.ת('жϵͼ')

ʹûسǾ
if .Ʒ('سǾ') < 1 then ϵͳ.ñ('سǾ') end
.ʹƷ('سǾ')
ϵͳ.sleep(1000)
ϵͳ.ת('жϵͼ')

سǾ
.ʹƷ('سǾ')
ϵͳ.sleep(1000)


߻ز£
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('5') then ϵͳ.ת('жϵͼ') end
if ϵͳ.ǰͼ('D604') then ϵͳ.ת('һ߻2') end
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫߻') end
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('߻') end
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ߻') end
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱߻') end
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ߻') end

ڰش߻أ
.ܵ(200, 52)
.߽ŵ㵽ͼ(119,51,'D609')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش߻') end

ʯĹСϪ߻أ
.ܵ(15, 33)
.߽ŵ㵽ͼ(14,34,'D605')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ߻') end

һ㱱߻أ
.ܵ(172, 61)
.߽ŵ㵽ͼ(173,60,'D602')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱߻') end

һ߻أ
.ܵ(110, 87)
.߽ŵ㵽ͼ(110,86,'D607')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ߻') end

߻أ
.ܵ(16, 28)
.߽ŵ㵽ͼ(16,29,'D601')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('߻') end

һ㶫߻أ
.ܵ(207, 237)
.߽ŵ㵽ͼ(208,238,'3')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫߻') end
ϵͳ.ת('жϵͼ')

һ߻2:
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫߻1') end
if ϵͳ.ǰͼ('D610') then ϵͳ.ת('ɭʯ߻1') end
if ϵͳ.ǰͼ('D603') then ϵͳ.ת('һ㱱߻1') end
if ϵͳ.ǰͼ('D608') then ϵͳ.ת('ˮ߻1') end
if ϵͳ.ǰͼ('D604') then ϵͳ.ת('һ߻1') end
if ϵͳ.ǰͼ('D611') then ϵͳ.ת('ɭʯ·߻1') end

ڰش߻1
.ܵ(12, 16)
.߽ŵ㵽ͼ(11,15,'D611')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش߻1') end

ɭʯ·߻1
.ܵ(33, 70)
.߽ŵ㵽ͼ(32,71,'D604')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D611') then ϵͳ.ת('ɭʯ·߻1') end

һ߻1
.ܵ(149, 133)
.߽ŵ㵽ͼ(149,132,'D608')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D604') then ϵͳ.ת('һ߻1') end

ˮ߻1
.ܵ(19, 23)
.߽ŵ㵽ͼ(18,22,'D603')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D608') then ϵͳ.ת('ˮ߻1') end

һ㱱߻1
.ܵ(81, 82)
.߽ŵ㵽ͼ(81,81,'D610')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D603') then ϵͳ.ת('һ㱱߻1') end

ɭʯ߻1
.ܵ(30, 30)
.߽ŵ㵽ͼ(30,29,'D601')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D610') then ϵͳ.ת('ɭʯ߻1') end

һ㶫߻1
.ܵ(207, 237)
.߽ŵ㵽ͼ(208,238,'3')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫߻1') end
ϵͳ.ת('жϵͼ')

ɭʯ·ʹ:
if .ָľ(37,68) < 100 or .Ʒ(';') < 1  and .Ʒ('ո') < 6 then ϵͳ.ת('ʹ') end
if .Ʒ('*') < 1 then ϵͳ.ת('ʹ') end
if .Ʒ(';') < 1 and .Ʒ(';') > 0 and .Ʒ('ո') > 5 then ϵͳ.ñ('') end
.ʹƷ(';')
ϵͳ.sleep(1000)
ϵͳ.ת('ɭʯ·ʹ')

űļ('-ʡس.txt')


if ϵͳ.ǰͼ('5') then ϵͳ.ת('س') ϵͳ.д־('ǰͼ5תûԶس') ϵͳ.ӡ('ǰͼ5תûԶس') return true end
if ϵͳ.ǰͼ('3') then ϵͳ.ת('Ʒ') ϵͳ.д־('ǰͼ3תûԶس') ϵͳ.ӡ('ǰͼ3תûԶس') return true end

