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

ϵͳ.óű()

жϵͼ
.л״̬Ϊ('')
if ϵͳ.ǰͼ('D2000') then ϵͳ.ת('ħ') end
if ϵͳ.ǰͼ('D2001') then ϵͳ.ת('·') end
if ϵͳ.ǰͼ('D2002') then ϵͳ.ת('ͨ') end
if ϵͳ.ǰͼ('D2004') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('D2005') then ϵͳ.ת('â') end
if ϵͳ.ǰͼ('D2006') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('D2007') then ϵͳ.ת('֮·') end
if ϵͳ.ǰͼ('D2008') then ϵͳ.ת('ߴ') end
if ϵͳ.ǰͼ('D2009') then ϵͳ.ת('ڤ') end
if ϵͳ.ǰͼ('D2010') then ϵͳ.ת('ݺ') end
if ϵͳ.ǰͼ('D2011') then ϵͳ.ת('ħ') end
if ϵͳ.ǰͼ('D2012') then ϵͳ.ת('') end
if ϵͳ.ǰͼ('D2013') then ϵͳ.ת('ħ') end
.л״̬Ϊ('Ϣ')
if ϵͳ.ǰͼ('5') then ϵͳ.ת('ʡ') end
if ϵͳ.ǰͼ('3') then ϵͳ.ת('ʡ') end
if ϵͳ.ǰͼ('GA0') 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
ϵͳ.ת('ûԶس')

űļ('-س.txt')

ħȥ:
.ܵ(326, 272)
.NPCԻ('ϱ')
.ѡ('˲ƶ','@talkwith')
.ѡ('ħƶ','@move3')
.ѡ('ƶ','@pay3')
ϵͳ.sleep(1500)


_ʱ = os.clock()
if .('˲Ϣƶ') then ϵͳ.ñ('ħȷʦ˲ƶ') end
if .ָľ(57,67) > 70 then ϵͳ.ñ('ħʹ') end
if ϵͳ.ǰͼ('4') then ϵͳ.ת('жϵͼ') end
.ܵ(57, 67, true)
.߽ŵ㵽ͼ(56,66,'D2000',true)
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('4') then ϵͳ.ת('') end

ħ
.л״̬Ϊ('')
.ߴߵ(77, 14)
.߽ŵ㵽ͼ(76,15,'D2001')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2000') then ϵͳ.ת('ħ') end

·
.ߴߵ(18, 98)
.߽ŵ㵽ͼ(18,97,'D2002')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2001') then ϵͳ.ת('·') end

ͨ
.ߴߵ(13, 29)
.ߴߵ(19, 20)
.ߴߵ(29, 12)
.߽ŵ㵽ͼ(29,11,'D2004')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2002') then ϵͳ.ת('ͨ') end


.ߴߵ(19, 17)
.߽ŵ㵽ͼ(19,16,'D2005')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2004') then ϵͳ.ת('') end

âȣ
.ߴߵ(19, 21)
.߽ŵ㵽ͼ(18,21,'D2006')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2005') then ϵͳ.ת('â') end


.ߴߵ(15, 22)
.߽ŵ㵽ͼ(15,21,'D2007')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2006') then ϵͳ.ת('') end

֮·
.ߴߵ(39, 27)
.߽ŵ㵽ͼ(38,26,'D2008')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2007') then ϵͳ.ת('֮·') end

ߴ:
.ߴߵ(26, 24)
.߽ŵ㵽ͼ(26,23,'D2009')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2008') then ϵͳ.ת('ߴ') end

ڤ:
.ߴߵ(21, 22)
.߽ŵ㵽ͼ(18,21,'D2010')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2009') then ϵͳ.ת('ڤ') end

ݺ:
.ߴߵ(171, 37)
.߽ŵ㵽ͼ(170,36,'D2011')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2010') then ϵͳ.ת('ݺ') end

ħ:
.ߴߵ(19, 21)
.߽ŵ㵽ͼ(19,20,'D2012')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2011') then ϵͳ.ת('ħ') end

:
.ߴߵ(73, 75)
.ߴߵ(58, 77)
.ߴߵ(76, 55)
.ߴߵ(44, 17)
.ߴߵ(79, 35)
.ߴߵ(37, 81)
.ߴߵ(12, 53)
.ߴߵ(50, 54)
.ߴߵ(22, 25)
ϵͳ.ת('жϵͼ')

ħ:
.ߴߵ(80, 83)
.߽ŵ㵽ͼ(81,84,'D2012')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2013') then ϵͳ.ת('ħ') end
ϵͳ.ת('жϵͼ')

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

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

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


߻طħ
if ϵͳ.ǰͼ('D2000') then ϵͳ.ת('ħ߻') end
if ϵͳ.ǰͼ('D2001') then ϵͳ.ת('·߻') end
if ϵͳ.ǰͼ('D2002') then ϵͳ.ת('ͨ߻') end
if ϵͳ.ǰͼ('D2004') then ϵͳ.ת('߻') end
if ϵͳ.ǰͼ('D2005') then ϵͳ.ת('â߻') end
if ϵͳ.ǰͼ('D2006') then ϵͳ.ת('߻') end
if ϵͳ.ǰͼ('D2007') then ϵͳ.ת('֮·߻') end
if ϵͳ.ǰͼ('D2008') then ϵͳ.ת('ߴ߻') end
if ϵͳ.ǰͼ('D2009') then ϵͳ.ת('ڤ߻') end
if ϵͳ.ǰͼ('D2010') then ϵͳ.ת('ݺ߻') end
if ϵͳ.ǰͼ('D2011') then ϵͳ.ת('ħ߻') end
if ϵͳ.ǰͼ('D2012') then ϵͳ.ת('߻') end

ħ߻:
.ܵ(80, 83)
.߽ŵ㵽ͼ(81,84,'D2012')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2013') then ϵͳ.ת('ħ߻') end

߻:
.ܵ(83, 84)
.߽ŵ㵽ͼ(84,85,'D2011')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2012') then ϵͳ.ת('߻') end

ħ߻:
.ܵ(86, 90)
.߽ŵ㵽ͼ(86,91,'D2010')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2011') then ϵͳ.ת('ħ߻') end
if ϵͳ.ǰͼ('D2008') then ϵͳ.ת('ߴ߻') end

ݺ߻:
.ܵ(285, 280)
.߽ŵ㵽ͼ(286,281,'D2009')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2010') then ϵͳ.ת('ݺ߻') end

ڤ߻:
.ܵ(84, 87)
.߽ŵ㵽ͼ(85,88,'D2008')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2009') then ϵͳ.ת('ڤ߻') end

ߴ߻:
.ܵ(83, 84)
.߽ŵ㵽ͼ(84,85,'D2007')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2008') then ϵͳ.ת('ߴ߻') end

֮·߻أ
.ܵ(182, 178)
.߽ŵ㵽ͼ(183,180,'D2006')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2007') then ϵͳ.ת('֮·߻') end

߻أ
.ܵ(74, 79)
.߽ŵ㵽ͼ(75,80,'D2005')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2006') then ϵͳ.ת('߻') end

â߻أ
.ܵ(84, 86)
.߽ŵ㵽ͼ(85,88,'D2004')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2005') then ϵͳ.ת('â߻') end

߻أ
.ܵ(75, 75)
.߽ŵ㵽ͼ(77,77,'D2002')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2004') then ϵͳ.ת('߻') end

ͨ߻أ
.ܵ(33, 39)
.߽ŵ㵽ͼ(34,39,'D2001')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2002') then ϵͳ.ת('ͨ߻') end

·߻أ
.ܵ(258, 269)
.߽ŵ㵽ͼ(259,270,'D2000')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2001') then ϵͳ.ת('·߻') end

ħ߻أ
.ܵ(178, 108)
.߽ŵ㵽ͼ(179,109,'4')
ϵͳ.sleep(1000)
if ϵͳ.ǰͼ('D2000') then ϵͳ.ת('ħ߻') end
ϵͳ.ת('жϵͼ')

űļ('-س.txt')


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

