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

жϵͼ
.л״̬Ϊ('')
if ϵͳ.ǰͼ('2') then ϵͳ.ת('ɽ') end
.л״̬Ϊ('Ϣ')
if ϵͳ.ǰͼ('0103') then ϵͳ.ת('̵') end
if ϵͳ.ǰͼ('0106') then ϵͳ.ת('װ') end
if ϵͳ.ǰͼ('0105') then ϵͳ.ת('ε') end
if ϵͳ.ǰͼ('0') then ϵͳ.ת('س') end
if ϵͳ.ǰͼ('GA0') then ϵͳ.ת('ׯ԰') end
if ϵͳ.ǰͼ('3') then ϵͳ.ת('ʡ') end
if ϵͳ.ǰͼ('5') then ϵͳ.ת('µ') end
if ϵͳ.ǰͼ('4') then ϵͳ.ת('ħ') end
if ϵͳ.ǰͼ('11') then ϵͳ.ת('') end
ϵͳ.ת('ûԶس')

س
.л״̬Ϊ('Ϣ')
if .Ʒ('') > 4500000 then ϵͳ.ת('ׯ԰') end
if .ƷҪ('Ǯ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('Ʒ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('װ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('ָ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('鼮') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('ҩƷ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('ӻ') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ׯ԰') end
if .ƷҪ('') then ϵͳ.ת('ȥ') end
if .װҪ('') then ϵͳ.ת('ȥ') end
if .ƷҪ('װ') then ϵͳ.ת('ȥ·') end
if .ƷҪ('ͷ') then ϵͳ.ת('ȥ·') end
if .װҪ('·') then ϵͳ.ת('ȥ·') end
if .װҪ('ͷ') then ϵͳ.ת('ȥ·') end
if .װҪ('') then ϵͳ.ת('ȥ·') end
if .װҪ('ѥ') then ϵͳ.ת('ȥ·') end
if .ƷҪ('') then ϵͳ.ת('ȥε') end
if .ƷҪ('') then ϵͳ.ת('ȥε') end
if .ƷҪ('ָ') then ϵͳ.ת('ȥε') end
if .װҪ('') then ϵͳ.ת('ȥε') end
if .װҪ('') then ϵͳ.ת('ȥε') end
if .װҪ('') then ϵͳ.ת('ȥε') end
if .װҪ('ָ') then ϵͳ.ת('ȥε') end
if .װҪ('ҽָ') then ϵͳ.ת('ȥε') end
if .Ʒ('*') > 0 then ϵͳ.ñ('') end
if .ƷҪ('鼮') then ϵͳ.ñ('鼮') end
if .ƷҪ('ҩƷ') then ϵͳ.ñ('ҩ') end
if .ƷҪ('ҩ') then ϵͳ.ñ('ҩ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('ӻ') end


.л״̬Ϊ('')
.ܵ(673, 84, true)
.߽ŵ㵽ͼ(672,81,'2',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('0') then ϵͳ.ת('') end

ɽ:
.л״̬Ϊ('')
.ߴߵ(551, 100)
.ߴߵ(377, 92)
.ߴߵ(459, 180)
.ߴߵ(373, 178)
.ߴߵ(453, 260)
.ߴߵ(333, 256)
.ߴߵ(327, 479)
.ߴߵ(204, 537)
.ߴߵ(98, 415)
.ߴߵ(272, 347)
.ߴߵ(286, 429)
.ߴߵ(220, 266)
.ߴߵ(56, 301)
.ߴߵ(102, 134)
.ߴߵ(238, 178)
.ߴߵ(186, 222)
.ߴߵ(282, 280)
.ߴߵ(242, 68)
.ߴߵ(495, 313)
.ߴߵ(433, 427)
ϵͳ.ת('жϵͼ')

ûԶس:
if ϵͳ.ǰͼ('0') then ϵͳ.ת('س') end
if .Ʒ('سǾ*') > 0 then ϵͳ.ת('ʹûسǾ') end
.ʹƷ('Ѿ')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('2') then ϵͳ.ת('ɽȥ') end
ϵͳ.ת('жϵͼ')

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

ȥ꣺
if .Ʒ('Ѿ') < 1 then ϵͳ.ñ('׼1') end
.ܵ(326, 272)
.NPCԻ('ϱ')
.ѡ('˲ƶ','@talkwith')
.ѡ('̵','@move0')
.ѡ('','@move02')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('0') then ϵͳ.ת('ȥ') end

̵꣺
if .ƷҪ('') then ϵͳ.ñ('') end
if .װҪ('') then ϵͳ.ñ('') end
if .Ʒ('') > 0 then ϵͳ.ñ('޺') end
_ʱ = os.clock()

꣺
.ܵ(5, 12)
.߽ŵ㵽ͼ(4,13,'0')
ϵͳ.sleep(1000)
if os.clock() - _ʱ > 60 then ϵͳ.ת('ûԶس') end
if ϵͳ.ǰͼ('0103') then ϵͳ.ת('') end
if .ְҵ() == 'ʿ' then ϵͳ.ñ('氲ȫ') end
if ϵͳ.ǰͼ('0') then ϵͳ.ת('س') end

ȥ·꣺
if .Ʒ('Ѿ') < 1 then ϵͳ.ñ('׼1') end
.ܵ(330, 275)
.NPCԻ('ϱ')
.ѡ('˲ƶ','@talkwith')
.ѡ('̵','@move0')
.ѡ('װ','@move01')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('0') then ϵͳ.ת('ȥ·') end

װ꣺
if .ƷҪ('װ') then ϵͳ.ñ('·') end
if .ƷҪ('ͷ') then ϵͳ.ñ('·') end
if .װҪ('·') then ϵͳ.ñ('·') end
if .װҪ('ͷ') then ϵͳ.ñ('ͷ') end
if .װҪ('') then ϵͳ.ñ('') end
if .װҪ('ѥ') then ϵͳ.ñ('ѥ') end
_ʱ = os.clock()

װ꣺
.ܵ(20, 12)
.߽ŵ㵽ͼ(21,13,'0')
ϵͳ.sleep(1000)
if os.clock() - _ʱ > 60 then ϵͳ.ת('ûԶس') end
if ϵͳ.ǰͼ('0106') then ϵͳ.ת('װ') end
if .ְҵ() == 'ʿ' then ϵͳ.ñ('氲ȫ') end
ϵͳ.ת('жϵͼ')

ȥε꣺
if .Ʒ('Ѿ') < 1 then ϵͳ.ñ('׼1') end
.ܵ(330, 275)
.NPCԻ('ϱ')
.ѡ('˲ƶ','@talkwith')
.ѡ('̵','@move0')
.ѡ('ε','@move03')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('0') then ϵͳ.ת('ȥε') end

ε꣺
if .ƷҪ('') then ϵͳ.ñ('') end
if .ƷҪ('') then ϵͳ.ñ('') end
if .ƷҪ('ָ') then ϵͳ.ñ('ָ') end
if .װҪ('') then ϵͳ.ñ('') end
if .װҪ('') then ϵͳ.ñ('') end
if .װҪ('') then ϵͳ.ñ('') end
if .װҪ('ָ') then ϵͳ.ñ('ָ') end
if .װҪ('ҽָ') then ϵͳ.ñ('ҽָ') end
_ʱ = os.clock()

ε꣺
.ܵ(20, 12)
.߽ŵ㵽ͼ(21,13,'0')
ϵͳ.sleep(1000)
if os.clock() - _ʱ > 60 then ϵͳ.ת('ûԶس') end
if ϵͳ.ǰͼ('0105') then ϵͳ.ת('ε') end
if .ְҵ() == 'ʿ' then ϵͳ.ñ('氲ȫ') end
ϵͳ.ת('жϵͼ')

ָ
.ܵ(18, 10)
.NPCԻ('ָϰ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('ָ')


ҽָ
.ܵ(18, 10)
.NPCԻ('ָϰ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('ҽָ')



.ܵ(13, 17)
.NPCԻ('ϰ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')



.ܵ(13, 17)
.NPCԻ('ϰ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')



.ܵ(13, 17)
.NPCԻ('ϰ')
.ѡ('','@sell')
.('')


ָ
.ܵ(13, 17)
.NPCԻ('ָϰ')
.ѡ('','@sell')
.('ָ')



.ܵ(13, 17)
.NPCԻ('ϰ')
.ѡ('','@sell')
.('')



.ܵ(13, 17)
.NPCԻ('ϰ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')


ͷ
.ܵ(18, 11)
.NPCԻ('Ҳ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('ͷ')


·
.ܵ(18, 11)
.NPCԻ('Ҳ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('·')



.ܵ(18, 11)
.NPCԻ('Ҳ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')


ѥ
.ܵ(18, 11)
.NPCԻ('Ҳ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('ѥ')


·
.ܵ(18, 11)
.NPCԻ('Ҳ')
.ѡ('','@sell')
ϵͳ.sleep(1000)
.('װ')
.('ͷ')



.ܵ(14, 20)
.NPCԻ('ҵ')
.ѡ('','@sell')
.('')



.ܵ(14, 20)
.NPCԻ('ҵ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')


޺:
.ܵ(14, 20)
ϵͳ.sleep(1000)
.Ʒָλ('','')
.NPCԻ('ҵ')
ϵͳ.sleep(1000)
if ϵͳ.NPC˵():find('ȫ') then ϵͳ.ת('ȫ') end
.ѡ('','@s_repair')
.װ('')


ҩ
.ܵ(323, 282)
.NPCԻ('ļҵϰ')
.ѡ('','@sell')
ϵͳ.sleep(1000)
.('ҩƷ')


ҩ
.ܵ(323, 282)
.Ʒ('ļҵϰ','ҩ') 


ӻ
.ܵ(374, 300)
.NPCԻ('ӻϰ')
.ѡ('','@sell')
ϵͳ.sleep(1000)
.('ӻ')


:
.ܵ(320, 271)
.NPCԻ('')
.ѡ('','@sell')
ϵͳ.sleep(1000)
.('')
.('')


ӻ
.ܵ(374, 300)
.Ʒ('ӻϰ','ӻ') 


鼮
.ܵ(325, 263)
.ܵ(325, 261)
ϵͳ.sleep(1000)
.NPCԻ('ϰ')
.ѡ('','@sell')
ϵͳ.sleep(1000)
.('鼮')


ׯ԰
.ܵ(325, 271)
.NPCԻ('ϱ')
.ѡ('ׯ԰Ԫ','@baodian')
.ѡ('ׯ԰','@zhuangyuan')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('0') then ϵͳ.ת('ׯ԰') end

ׯ԰
if .Ʒ('') > 1300000 then ϵͳ.ñ('') end
if .Ʒ('') > 4 then ϵͳ.ñ('ש') end
if .ƷҪ('Ǯ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('Ʒ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('װ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('ָ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('鼮') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('ҩƷ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('ӻ') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('') then ϵͳ.ñ('Ʒ') end
if .ƷҪ('') then ϵͳ.ñ('Ʒ') end

ر棺
.ܵ(71, 71)
.NPCԻ('Ԫʹ')
.ѡ('귨½','@gomafa')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('GA0') then ϵͳ.ת('жϵͼ') end
.NPCԻ('Ա')
.ѡ('귨½','@gomafa')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('GA0') then ϵͳ.ת('ر') end
if ϵͳ.ǰͼ('0') then ϵͳ.ת('س') end
ϵͳ.ת('жϵͼ')


.ܵ(71, 71)
.NPCԻ('ֿԱ')
.ѡ('','@mbind')
ϵͳ.sleep(1000)
.ѡ('һ.','@chgtobar')
.ѡ('һ.','@chgtobar')
.ѡ('һ.','@chgtobar')
.ѡ('һ.','@chgtobar')


ש
.ܵ(71, 71)
.NPCԻ('ֿԱ')
.ѡ('','@mbind')
ϵͳ.sleep(1000)
.ѡ('ש.','@chgtobrick')
.ѡ('ש.','@chgtobrick')
.ѡ('ש.','@chgtobrick')
.ѡ('ש.','@chgtobrick')


Ʒ
.ܵ(71, 71)
.NPCԻ('ֿԱ')
.ѡ('','@storage')
ϵͳ.sleep(1000)
.('Ǯ')
.('Ʒ')
.('װ')
.('ͷ')
.('')
.('')
.('')
.('ָ')
.('鼮')
.('ҩƷ')
.('ӻ')
.('')
.('')


µ
.ܵ(139, 328)
.NPCԻ('ϱ')
.ѡ('ȥ','@back')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('5') then ϵͳ.ת('µ') end

ʡ
.ܵ(513, 776)
.߽ŵ㵽ͼ(512,777,'2')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('3') then ϵͳ.ת('ʡ') end

ɽȥ棺
.ܵ(416, 566)
.߽ŵ㵽ͼ(415,567,'0')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('2') then ϵͳ.ת('ɽȥ') end
.ܵ(326, 272)
ϵͳ.ת('жϵͼ')

ħǣ
.ܵ(139, 328)
.NPCԻ('ħϱ')
.ѡ('ȥ','@leave')
.ѡ('ƶ','@pay1')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('4') then ϵͳ.ת('ħ') end
ϵͳ.ת('жϵͼ')

ţ
.ܵ(139, 328)
.NPCԻ('')
.ѡ('ȥ','@talkwith')
.ѡ('ص','@move1')
.ѡ('ƶ','@pay1')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('11') then ϵͳ.ת('') end
ϵͳ.ת('жϵͼ')

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


氲ȫ:
.ܵ(327, 276)
ϵͳ.sleep(200)


׼1Σ
.ܵ(374, 300)
.NPCԻ('ӻϰ')
.ѡ('','@buy')
ϵͳ.sleep(1000)
.('Ѿ', 1)
ϵͳ.sleep(1000)
if .Ʒ('Ѿ') < 1 then ϵͳ.ת('׼1') end


ȫ:
.ѡ('ȫ','@t_repair')
ϵͳ.sleep(1000)



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

