----һκⶼԷǵĴ-----
-------űĬΪͣŻᴫͽ----------
------ҪͰ ʹô = false Ϊ---------
------------------ʹô = true------------------
----޸ĽűǰȰ ޸Ľű -----
---޸ϺҪнűл֧----

ʹô = false
Ҫٽ = 20000  --ΪͣôԾжٽҲŴͣ޸

ϵͳ.óű()

жϵͼ
.л״̬Ϊ('')
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end
if ϵͳ.ǰͼ('D607') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ') end
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱') end
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ') end
if ϵͳ.ǰͼ('D612') 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Ի('ϱ')
.ѡ('ȥ','@move3')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('5') then ϵͳ.ת('') end

򼶴
_ʱ = os.clock()

if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end
ϵͳ.sleep(1000)
if .('˲Ϣƶ') then ϵͳ.ñ('ʡ򼶴ʦ˲ƶ') end
if .ָľ(130,130) > 200 then ϵͳ.ñ('ʡ򼶴ʹ') end
.ܵ(143, 95, true)
if ʹô == false or .Ʒ('') < Ҫٽ then ϵͳ.ת('߽') end
.NPCԻ('Ա')
.ѡ('ǰɽ','@move')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('3') then ϵͳ.ת('򼶴') end
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end

߽:
.ܵ(140, 86, true)
if (ϵͳ.ָվ(139,85) > 0 or .ָľ(139,85) > 10000) and .Ʒ('') > 10000 then ϵͳ.ñ('ͽɽ') end
if ϵͳ.ǰͼ('D601') then ϵͳ.ת('һ㶫') end
.߽ŵ㵽ͼ(139,85,'D601',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('3') then ϵͳ.ת('򼶴') end

һ㶫
.л״̬Ϊ('')
.ߴߵ(199, 214)
.ߴߵ(19, 165)
.ߴߵ(63, 126)
.ߴߵ(16, 105)
.ߴߵ(52, 15)
.߽ŵ㵽ͼ(52,14,'D607',true)
ϵͳ.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
.ߴߵ(116, 108)
.ߴߵ(160, 184)
.ߴߵ(42, 165)
.ߴߵ(72, 66)
.ߴߵ(186, 38)
.ߴߵ(139, 156)
.ߴߵ(45, 23)
.߽ŵ㵽ͼ(45,22,'D605',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ') end

һ㱱
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('жϵͼ') end
.ߴߵ(177, 116)
.ߴߵ(122, 27)
.ߴߵ(45, 27)
.ߴߵ(49, 145)
.ߴߵ(42, 125)
.߽ŵ㵽ͼ(42,124,'D609',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱') end

ʯĹСϪ
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('жϵͼ') end
.ܵ(18, 21)
if ʹô == false or .Ʒ('') < Ҫٽ then ϵͳ.ת('߽5') end
.NPCԻ('Ա')
.ѡ('ǰһ','@move')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش') end
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ') end

߽5:
.ܵ(22, 14)
if (ϵͳ.ָվ(2,13) > 0 or .ָľ(2,13) > 10000) and .Ʒ('') > 10000 then ϵͳ.ñ('ͽ') end
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش') end
.߽ŵ㵽ͼ(22,13,'D612')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D609') then ϵͳ.ת('ʯĹСϪ') end

ڰش
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('жϵͼ') end
.ߴߵ(240, 62)
.ߴߵ(22, 26)
.ߴߵ(17, 162)
.ߴߵ(10, 185)
.ߴߵ(21, 273)
.ߴߵ(189, 134)
.ߴߵ(171, 233)
.ߴߵ(217, 189)
.ߴߵ(150, 272)
.ߴߵ(282, 235)
.ߴߵ(254, 34)
.ߴߵ(383, 190)
.ߴߵ(199, 52)
.߽ŵ㵽ͼ(199,51,'D609',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D612') then ϵͳ.ת('ڰش') end

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

һ㱱أ
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('жϵͼ') end
.ߴߵ(46, 141)
.ߴߵ(49, 31)
.ߴߵ(122, 25)
.ߴߵ(177, 119)
.ߴߵ(172, 61)
.߽ŵ㵽ͼ(173,60,'D602')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D605') then ϵͳ.ת('һ㱱') end

һأ
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('жϵͼ') end
.ߴߵ(72, 63)
.ߴߵ(50, 169)
.ߴߵ(163, 182)
.ߴߵ(180, 35)
.ߴߵ(45, 23)
.߽ŵ㵽ͼ(45,22,'D605',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D602') then ϵͳ.ת('һ') end
ϵͳ.ת('жϵͼ')

ûԶسǣ
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 ϵͳ.ǰͼ('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
ϵͳ.ת('жϵͼ')

űļ('-ʡس.txt')


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

