=ȡ()
Ƿ=1
=1
ֻȡƷ=" ç ʯ ʯ  ˿   õ ƽ֮"
ﱣ()
()
ͼ="ħɽ"
="ħ"

function (,ͼ,npc,Ի)
    if (ȡ () == 2) then
           ()
          ȴ()
    end
    while (ȡ() == -1) do
        ٻ()
        Ѱ·2(ͼ,npc)
        (npc)
        ȴ()
        Ի(Ի)
        ȴ()
        if (Ѱı(ȡԻ(),"5") > 0) then
            ӡϢ("Ѿ5")
            return -1
        else
            ()
        end
        ȴ()
        
    end
           return 0
end

function (,ͼ,npc,Ի1,Ի2,ͼ)
    while(ȡ() == 0) do
        if(ȡͼ() == ͼ) then
            ٻ()
            Ѱ·2(ͼ,npc)
            ȴ()
            if((npc) == true) then
                ȴ()
                if(Ի(Ի1) == true) then
                      ȴ()
                     if(Ի(Ի2) == true) then 
                           ȴ()                       
                        if(Ѱı(ȡԻ(),"ʧ") > 0 ) then
                            ӡϢ("ʧ,")
                            ()
                            ȴ()
                        elseif (Ѱı(ȡԻ(),"")<= 0 ) then
                           жϵͼ()
                        end
                     end
                end
            end
          
        end
      if ȡͼ() == ͼ then
          break;
      end
    end    
end
function (,ͼ,npc,Ի,Ƿ)
 while(ȡ() == 1) do
        Ѱ·2(ͼ,npc)
        ȴ()
        (npc)
        ȴ()
        Ի()
        ȴ()
   if Ƿ~=nil then
        ()
        ȴ()
   end
        ()
        ȴ()
 end
 while(ȡ() == 2) do
        ӡϢ("ʧ,ȴ30Ӻ")
        ()
        ȴ()
 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 ()
    while(ȡ() == 0 and ȡͼ() == ͼ) do
        local ׶,listNum,killedNum,g_1_NiuQi_num,g_1_NiuQu_num=ȡ() 
        --ӡϢ(׶.."|"..listNum.."|"..killedNum.."|"..g_1_NiuQi_num.."|"..g_1_NiuQu_num)
        if ׶==1 or ׶==0 then
              if killedNum~=60 then
                ӳ(,ͼ,139,176)
                ӳ(,ͼ,128,166)
              end
              if g_1_NiuQi_num~=1 then
                ӳ(,ͼ,113,158)
              end
              if g_1_NiuQu_num~=1 then
                ӳ(,ͼ,114,180)
              end
                
                ӳ(,ͼ,92,184)
        elseif ׶==2 then
             if listNum==0 then
                ӳ(,ͼ,57,81)
             elseif listNum==1 then
                ӳ(,ͼ,78,68)
             elseif listNum==2 then
                ӳ(,ͼ,83,38)
             elseif listNum==3 then
                ӳ(,ͼ,52,31)
             elseif listNum==4 then
                ӳ(,ͼ,33,64)
             elseif listNum==5 then
                ӳ(,ͼ,55,56)
             end
        elseif ׶==3 then
                ӳ(,ͼ,214,40,"ħ")
        end 
    end
end


=ȡλ()
ӡϢ("λ"..tostring())

if(Ѱı(ͼ,ȡͼ()) <= 0) then
        ԶѪ(80)
end

if(ȡ(,1) == false or ȡ() == 0) then
    while(Ѱı(ͼ,ȡͼ()) == -1) do
        ٻ()
        ͼѰ·("¥",295,70)      
        if (,"¥","",)==-1 then
             goto en
        end  
        if(Ƿ==1) then
           while(ȡ() <  and ȡͼ() == "¥") do 
               ӡϢ("")
               ͼѰ·("¥",295,70)			   
               ȴ()
           end
           ӡϢ("")
        end
        (,"¥","",,"ǰ",ͼ)
    end 
     while(Ѱı(ͼ,ȡͼ()) ~= -1) do
         ()
         if  ȡ() == 1	then
             Ѱ·(210,47)
             ȴ()
             ("")
             ȴ()
             Ի("뿪")
             жϵͼ()
         end 
     end
end
(,"¥","",) 
::en::