--һ
=ȡ()
Ƿ=ȡǷӳ()
=1
Ƿ=1
ﱣ()
()
ֻȡƷ="ç    "
function (,ͼ,npc,Ի)
    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
                            ӡϢ("ʧܣȴ30Ӻ")
                            ()
                        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 ()
 while (ȡ ("һ") == 0 and ȡͼ () == "ɱ߾") do
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (55, 45)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (42, 50)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (26, 54)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (37, 58)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (31, 72)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (23, 70)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (31, 80)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (43, 89)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (67, 80)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (80, 89)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (100, 83)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (101, 69)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (104, 56)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (84, 46)
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (70, 55)
            ȴ ()
            ɱ (0, 0,"αα")
            ȴ ()
            ɱ (0, 0,"αα")
        end
        if (ȡͼ () == "ɱ߾") then
            Ѱ· (55, 54)
            ȴ ()
            ɱ (0, 0,"αα")
            ȴ ()
            ɱ (0, 0,"αα")
        end
        =ȡλ()
        if (ȡͼ () == "ɱ߾") then
            if ( == 1) then
                Ѱ· (55, 74)
            elseif ( == 2) then
                Ѱ· (52, 68)
            elseif ( == 3) then
                Ѱ· (60, 68)
            elseif ( == 4) then
                Ѱ· (52, 72)
            elseif ( == 5) then
                Ѱ· (60, 72)
            elseif ( == 6) then
                Ѱ· (55, 68)
            end
            ()
            ȴ ()
            ɱ (0, 0)
            ȴ ()
            ɱ (0, 0)
        end
        ٻ()
		=ȡλ()
        if (ȡͼ () == "ɱ߾") then 
            if ( == 1 or  == 3 or  == 5) then
                Ѱ· (80, 104)
            elseif ( == 2 or  == 4 or  == 6) then
                Ѱ· (43, 104)
            end
             (50)
            ȴ ()
            ɱ (0, 0)
            ȴ ()
            ɱ (0, 0)
        end
        if (ȡͼ () == "ɱ߾") then 
            while (ȡ ("һ") == 0 and ȡͼ () == "ɱ߾") do
                if ( == 1) then
                    Ѱ· (55, 74)
                elseif ( == 2) then
                    Ѱ· (52, 68)
                elseif ( == 3) then
                    Ѱ· (60, 68)
                elseif ( == 4) then
                    Ѱ· (52, 72)
                elseif ( == 5) then
                    Ѱ· (60, 72)
                elseif ( == 6) then
                    Ѱ· (55, 68)
                end
                ()
                ȴ ()
                ɱ (0, 0)
                ȴ ()
                ɱ (0, 0)
                ȴ ()
                2 (ֻȡƷ)
            end
        end
     
          
       if ȡ ("һ") == 2 then
          ("һ")
          ȴ (1900)
       end
       local n=0
       while n<10 do
             2 (ֻȡƷ)
             n=n+1
             ȴ ()
       end 
    end

end


function ()
  while(ȡ("һ") == 0 and ȡͼ() == "ɱ߾") do
    ӳ()
    2(ֻȡƷ)
    ȴ()
  end
       local n=0
       while n<15 do
             2 (ֻȡƷ)
             n=n+1
             ȴ ()
       end 
end

 if (Ѱı ("ɱ߾ Ұկ ",ȡͼ ()) <= 0) then
        ٻ()
        ԶѪ(30)
        Ѱ·2("","Ǯ")
 end

 if (Ƿ==1) then
  ӡϢ("ʼ")
   while (ȡ () <  and ȡͼ () == "") do 
    ȴ ()
   end
  ӡϢ("")
 end

 
 
 ӡϢ()
while (ȡ ("һ",1) == false or ȡ ("һ") == 0) do

    while(Ѱı("ɱ߾  Ұկ",ȡͼ()) <= 0) do
        ٻ()
        Ѱ·2("","Ǯ")
        if (ȡ ("һ") == 2) then
           ("һ")
          ȴ (1800)
        end
        if ("һ","","Ǯ","һ")==-1 then
             goto en
        end  
        ("һ","","Ǯ","һ","ǰ߾","ɱ߾")
    end 

    --if Ƿ~=true then
         ()
    --else
         --()
    --end
 

end
 while (ȡ ("һ") == 1 and ȡͼ () == "ɱ߾") do
        ٻ()
        Ѱ· (30, 13)
        жϵͼ()
 end

 if ȡ ("һ") == 2 then
          ("һ")
          ȴ (1900)
 end

("һ","","Ǯ","һ",1)  

::en::