=ȡ()
Ƿ=1
=1
ֻȡƷ="ç ҩ  ޲"
ﱣ()
()

ͼ=""

NPC="Ǯ"
NPC=""

function (ͼ,npc,Ի1,ͼ) 
    ӡϢ("")
    while(ȡͼ() == ͼ) then
            ٻ()
            Ѱ·2(ͼ,npc)
            ȴ()
            if((npc) == true) then
                ȴ()
                if(Ի(Ի1) == true) then
                      ȴ()                     
                        if(Ѱı(ȡԻ(),"ʧ") > 0 ) then
                            ӡϢ("ʧ,")
                            ()
                            ȴ(3)
                        elseif (Ѱı(ȡԻ(),"")<= 0 ) then
                           жϵͼ()
                        end
                end
            end
          
      if ȡͼ() == ͼ then
          break;
      end
    end    
end

function ӳ(,ͼ,x,y,˴)
       if(ȡͼ() == ͼ) then
          while(ȡΧ()>0 and ȡ() == 0) do
	       ɱ(0,1,˴)
	       ȴ()
               (ֻȡƷ)
	  end
            ٻ()            
	    Ѱ·(x,y)
          while(ȡΧ()>0 and ȡ() == 0) do
	       ɱ(0,1,˴)
	       ȴ()
               (ֻȡƷ)
	  end
       end
end

function (ͼ,npc)
     if(Ƿ==1 and ȡͼ() == ͼ) then
        while(ȡ() <  and ȡͼ() == "¥") do 
            ӡϢ("")
            Ѱ·2(ͼ,npc)			   
            ȴ()
        end
        ӡϢ("")
     end
end

function ()
    while(ȡͼ() == ͼ) do
               ӳ(,ͼ,148,65)
               ӳ(,ͼ,137,76)
               ӳ(,ͼ,130,46)
               ӳ(,ͼ,106,51)
               ӳ(,ͼ,97,41)
               ӳ(,ͼ,68,56)
               ӳ(,ͼ,64,66)
               ӳ(,ͼ,64,36)
               ӳ(,ͼ,54,43)
    end
end

(NPC,NPC)
(,NPC,NPC,"",ͼ)
()
