--

=ȡ()
Ƿ=ȡǷӳ()
=1
Ƿ=1
ﱣ()
()
񸱱=""

if (ȡƷ ("") ==0 and ȡ ("",1) == false) then
   ӡϢ("Ҫ")
   goto en;
end

 if (Ѱı ("ɱ߾ ",ȡͼ ()) <= 0) then
        ٻ()
        Ѱ·2("","")
 end

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

ֻȡƷ="ç ˿   "

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
        Ѱ· (70,110)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (52,115)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (29,110)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (39,96)
        ɱ (0,0)
         (ֻȡƷ)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (54,91)
        ɱ (0,0)
         (ֻȡƷ)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (72,87)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (97,88)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (106,86)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (92,63)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (74,67)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (89,62)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (105,63)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (47,75)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (21,72)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (42,50)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (78,47)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (83,47)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (107,32)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (100,22)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (105,34)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (76,26)
        ɱ (0,0)
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (46,35)
        ɱ (0,0,"Ұ")
    end
    if (ȡͼ () == 񸱱) then
        Ѱ· (40,35)
        ɱ (0,0)
         (ֻȡƷ)
    end
    ȴ (5)
 end
  local ƴ=0;
  while (ȡͼ () == "" ) do
    ƴ = ƴ + 1
    2 (ֻȡƷ)
    ɱ (0,0)
    ȴ (1)
  end
end

function ()
  while(ȡ("") == 0 and ȡͼ() == "") do
    ӳ()
    2(ֻȡƷ)
    ȴ()
  end
  while (ȡͼ () == "" ) do
    2 (ֻȡƷ)
    ɱ (0,0)
    ȴ (1)
  end
end

=ȡλ()
ӡϢ()
while (ȡ ("",1) == false or ȡ ("") == 0) do
    while (Ѱı (" ɱ߾",ȡͼ ()) <= 0) do
         ٻ()
         ԶѪ(80)
         Ѱ·2("","")
         if ("","","","")==-1 then
            goto en
         end  
         ("","","","","ǰ","")
    end   
   
    if Ƿ~=true then
         ()
    else
         ()
    end
 
    

end

  while (ȡ ("") == 1 and ȡͼ () ~= "") do
    ȴ (1)
  end

  ("","","","",1)  
::en::

ӡϢ("")