--------------------------------------------
--һκⶼԷǵĴ
------------ǻһʱ㴦----------
--------------------------------------------
ϵͳ.óű()

жϵͼ
.л״̬Ϊ('')
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end
if ϵͳ.ǰͼ('E605') then ϵͳ.ת('ͨһ') end
if ϵͳ.ǰͼ('E604') then ϵͳ.ת('ͨ') end
if ϵͳ.ǰͼ('E603') then ϵͳ.ת('ͨ') end
if ϵͳ.ǰͼ('M001') 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 ϵͳ.ǰͼ('0103') then ϵͳ.ת('̵') end
if ϵͳ.ǰͼ('0106') then ϵͳ.ת('װ') end
if ϵͳ.ǰͼ('0105') then ϵͳ.ת('ε') end
ϵͳ.ת('ûԶس')


_ʱ = os.clock()
if ϵͳ.ǰͼ('3') then ϵͳ.ñ('ֱ') end
if ϵͳ.ǰͼ('3') then ϵͳ.ñ('ֱ') end
if .ܱΧ() then ϵͳ.ñ('ʹ') end
if .ܱΧ() then ϵͳ.ñ('ʹ') end
if .('˲Ϣƶ') then ϵͳ.ñ('ʡ򼶴ʦ˲ƶ') end
if .ָľ(130,130) > 100 then ϵͳ.ñ('ʡ򼶴ʹ') end
.ܵ(140, 86, true)
.߽ŵ㵽ͼ(139,85,'D601',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('3') then ϵͳ.ת('') end

һ㶫
.л״̬Ϊ('')
.ܵ(10, 198)
.߽ŵ㵽ͼ(9,197,'E605',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end

ͨһ㣺
.ܵ(13, 11)
.߽ŵ㵽ͼ(13,10,'E604',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E605') then ϵͳ.ת('ͨһ') end

ͨ㣺
.ܵ(91, 45)
.߽ŵ㵽ͼ(90,44,'E603',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E604') then ϵͳ.ת('ͨ') end

ͨ㣺
.ܵ(111, 181, true)
.ܵ(110, 182, true)
.ܵ(26, 185, true)
ϵͳ.sleep(1000)
δ֪
if .ָľ(110,182) < 10000 then ϵͳ.ת('ͨ') end
if .ָľ(31,192) < 10 then ϵͳ.ת('˶Ի') end
if .ָľ(25,184) >= 100000 then ϵͳ.ת('ͨ') end
.ܵ(26, 185, true)
˶Ի
.NPCԻ('')
.ѡ('Ի.','@talkwith_1')
.ѡ('ս','@talkwith_3')
.ѡ('ɽ','@talkwith_4')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E603') then ϵͳ.ת('ͨ') end

δ֪
.ߴߵ(183, 56)
.ߴߵ(17, 203)
.ߴߵ(197, 386)
.ߴߵ(389, 195)
.ߴߵ(204, 16)
.ߴߵ(103, 292)
.ߴߵ(292, 298)
.ߴߵ(295, 103)
.ߴߵ(104, 101)
.ߴߵ(137, 264)
.ߴߵ(263, 266)
.ߴߵ(264, 135)
.ߴߵ(135, 139)
ϵͳ.ת('жϵͼ')

ûԶسǣ
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)


߻ز£
if ϵͳ.ǰͼ('M001') then ϵͳ.ת('С') end
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫߻') end
if ϵͳ.ǰͼ('E605') then ϵͳ.ת('ͨһ߻') end
if ϵͳ.ǰͼ('E604') then ϵͳ.ת('ͨ߻') end

ͨ߻أ
.ܵ(9, 70)
.߽ŵ㵽ͼ(10,69,'E604')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E603') then ϵͳ.ת('ͨ߻') end

ͨ߻أ
.ܵ(11, 10)
.߽ŵ㵽ͼ(10,9,'E605')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E604') then ϵͳ.ת('ͨ߻') end

ͨһ߻أ
.ܵ(13, 64)
.߽ŵ㵽ͼ(13,63,'D601')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('E605') then ϵͳ.ת('ͨһ߻') end

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

Сˣ
ϵͳ.С()
ϵͳ.sleep(1000)
ϵͳ.()
ϵͳ.sleep(1000)
ϵͳ.ת('ûԶس')

űļ('-ʡֱɱ.txt')


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

