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

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

س
ϵͳ.øѡ(ҳѡ.ʬ, false)

.л״̬Ϊ('Ϣ')
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 .Ʒ('*') > 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
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


ϵͳ.øѡ(ҳѡ.ʬ, true)

.л״̬Ϊ('')
.ߴߵ(565, 337)
.ߴߵ(538, 372)
.ߴߵ(549, 137)
.ߴߵ(529, 308)
.ߴߵ(48, 118)
.ߴߵ(588, 157)
.ߴߵ(68, 397)
.ߴߵ(627, 558)
.ߴߵ(297, 592)
.ߴߵ(453, 329)
.ߴߵ(535, 518)
.ߴߵ(380, 256)
.ߴߵ(48, 415)
.ߴߵ(657, 593)
.ߴߵ(422, 98)
.ߴߵ(597, 496)
.ߴߵ(160, 110)
.ߴߵ(276, 504)
.ߴߵ(663, 507)
.ߴߵ(235, 190)
.ߴߵ(613, 320)
.ߴߵ(224, 168)
.ߴߵ(69, 385)
.ߴߵ(174, 241)
.ߴߵ(97, 129)
.ߴߵ(385, 382)
.ߴߵ(263, 380)
.ߴߵ(582, 545)
.ߴߵ(545, 118)
.ߴߵ(85, 364)
ϵͳ.ת('')

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

ʹûسǾ:
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Ի('ֿԱ')
.ѡ('','@goback')
ϵͳ.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Ի('ϱ')
.ѡ('ȥ','@move3')
ϵͳ.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)




