home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / COMM / QMWP20.ZIP / WESTPONT.QSC < prev    next >
Encoding:
Text File  |  1997-05-12  |  17.2 KB  |  539 lines

  1. dim Your_ID as string
  2. dim Your_Password as string
  3. dim Birthday as string
  4. dim League_Member as integer
  5. dim League_Member_Dues_AutoPay as integer
  6. dim League_Member_Dues_Paytime as string
  7. dim League_Member_Dues_Payto as string
  8. dim League_Member_Dues as integer
  9. dim League_Member_Brief as string
  10. dim Foundation_Wp as integer
  11. dim Foundation_Wp_AutoSave as integer
  12. dim Foundation_Wp_ID as string
  13. dim Foundation_Wp_Max as integer
  14. dim Foundation_Wp_Save as integer
  15. dim Foundation_Wp_Brief as String
  16. dim Xin_Liang_AutoSold as integer
  17. dim Xin_Liang_Max as integer
  18. dim Xin_Liang_Sold as integer
  19. dim Xyd_AutoSold as integer
  20. dim Xyd_AutoBuy as integer
  21. dim Xyd_Max as integer
  22. dim Xyd_Sold as integer
  23. dim Dun_Max as integer
  24. dim Xyd_Buy as integer
  25. dim Upload_Wanted as integer
  26. dim Upload_File_Name(6) as string
  27. dim Upload_File_Brief(6) as string
  28. dim Download_Wanted as integer
  29. dim Download_File_Area(6) as string
  30. dim Download_File_Name(6) as string
  31. dim Pkzip_Dir as string
  32. dim Temp_Dir as string
  33. dim Msg_Upload_Dir as string
  34. dim Msg_Download_Dir as string
  35.  
  36. dim MsgPack_file_name as string
  37. dim DownLoad_Ok(6) as string
  38. dim Upload_Ok(6) as string
  39. dim DownLoad_File_Number as integer
  40. dim subject as string
  41.  
  42. sub Read_Data
  43.     dim Rectemp as string
  44.     dim temp as string
  45.     dim Item as string
  46.     dim value as string
  47.     open configscriptpath+"\westpont.ini" for input as #1
  48.     read_next:
  49.     receive #1,Rectemp
  50.     temp=ltrim(rectemp)
  51.     if instr(temp,"=")=0 or len(temp)=0 or left(temp,1)=chr(13) or left(temp,1)=";" then goto read_next
  52.     if instr(temp,";")<>0 then temp=left(temp,instr(temp,";")-1)
  53.     item=rtrim(left(temp,instr(temp,"=")-1))
  54.     value=ltrim(rtrim(right(temp,len(temp)-instr(temp,"="))))
  55.     if item="Your_ID" then Your_ID=value
  56.     if item="Your_Password" then Your_Password=value
  57.     if item="Birthday" then Birthday=value
  58.     if item="League_Member" then  League_Member=val(value)
  59.     if item="League_Member_Dues_AutoPay" then League_Member_Dues_AutoPay=val(value)
  60.     if item="League_Member_Dues_Paytime" then League_Member_Dues_Paytime=value
  61.     if item="League_Member_Dues_Payto" then League_Member_Dues_Payto=value
  62.     if item="League_Member_Dues" then League_Member_Dues=val(value)
  63.     if item="League_Member_Brief" then League_Member_Brief=value
  64.     if item="Foundation_Wp" then  Foundation_Wp=val(value)
  65.     if item="Foundation_Wp_AutoSave" then Foundation_Wp_AutoSave=val(value)
  66.     if item="Foundation_Wp_ID" then Foundation_Wp_ID=value
  67.     if item="Foundation_Wp_Max" then Foundation_Wp_Max=val(value)
  68.     if item="Foundation_Wp_Save" then Foundation_Wp_Save=val(value)
  69.     if item="Foundation_Wp_Brief" then Foundation_Wp_Brief=value
  70.     if item="Xin_Liang_AutoSold" then Xin_Liang_AutoSold=val(value)
  71.     if item="Xin_Liang_Max" then Xin_Liang_Max=val(value)
  72.     if item="Xin_Liang_Sold" then Xin_Liang_Sold=val(value)
  73.     if item="Xyd_AutoSold" then XYD_AutoSold=val(value)
  74.     if item="Xyd_AutoBuy" then XYD_AutoBuy=val(value)
  75.     if item="Xyd_Max" then XYD_Max=val(value)
  76.     if item="Xyd_Sold" then XYD_Sold=val(value)
  77.     if item="Dun_Max" then Dun_Max=val(value)
  78.     if item="Xyd_Buy" then Xyd_Buy=val(value)
  79.     if item="Upload_Wanted" then  Upload_Wanted=val(value)
  80.     if item="Upload_File1_Name" then Upload_File_Name(1)=value
  81.     if item="Upload_File1_Brief" then Upload_File_Brief(1)=value
  82.     if item="Upload_File2_Name" then  Upload_File_Name(2)=value
  83.     if item="Upload_File2_Brief" then Upload_File_Brief(2)=value
  84.     if item="Upload_File3_Name" then Upload_File_Name(3)=value
  85.     if item="Upload_File3_Brief" then Upload_File_Brief(3)=value
  86.     if item="Upload_File4_Name" then Upload_File_Name(4)=value
  87.     if item="Upload_File4_Brief" then Upload_File_Brief(4)=value
  88.     if item="Upload_File5_Name" then Upload_File_Name(5)=value
  89.     if item="Upload_File5_Brief" then Upload_File_Brief(5)=value
  90.     if item="Upload_File6_Name" then Upload_File_Name(6)=value
  91.     if item="Upload_File6_Brief" then Upload_File_Brief(6)=value
  92.     if item="Download_Wanted" then  Download_Wanted=val(value)
  93.     if item="Download_File1_Area" then 
  94.         Download_File_Area(1)=value
  95.         if value<>"" then Download_File_Number=Download_File_Number+1
  96.     end if    
  97.     if item="Download_File1_Name" then Download_File_Name(1)=value
  98.     if item="Download_File2_Area" then 
  99.         Download_File_Area(2)=value
  100.         if value<>"" then Download_File_Number=Download_File_Number+1
  101.     end if    
  102.     if item="Download_File2_Name" then Download_File_Name(2)=value
  103.     if item="Download_File3_Area" then 
  104.         Download_File_Area(3)=value
  105.         if value<>"" then Download_File_Number=Download_File_Number+1
  106.     end if    
  107.     if item="Download_File3_Name" then Download_File_Name(3)=value
  108.     if item="Download_File4_Area" then 
  109.         Download_File_Area(4)=value
  110.         if value<>"" then Download_File_Number=Download_File_Number+1
  111.     end if    
  112.     if item="Download_File4_Name" then Download_File_Name(4)=value
  113.     if item="Download_File5_Area" then 
  114.         Download_File_Area(5)=value
  115.         if value<>"" then Download_File_Number=Download_File_Number+1
  116.     end if    
  117.     if item="Download_File5_Name" then Download_File_Name(5)=value
  118.     if item="Download_File6_Area" then 
  119.         Download_File_Area(6)=value
  120.         if value<>"" then Download_File_Number=Download_File_Number+1
  121.     end if    
  122.     if item="Download_File6_Name" then Download_File_Name(6)=value
  123.     if item="Pkzip_Dir" then Pkzip_Dir=value
  124.     if item="Temp_Dir" then Temp_Dir=value    
  125.     if item="Msg_Upload_Dir" then Msg_Upload_Dir=value
  126.     if item="Msg_Download_Dir" then Msg_Download_Dir=value    
  127.     if not eof(1) then goto Read_Next
  128.     close #1
  129. end sub
  130.  
  131. sub Sold_Xyd
  132.     dim xyd_You_Have as integer
  133.     xyd_You_Have=val(chr(screen(7,33))+chr(screen(7,34))+chr(screen(7,35)))
  134.     if xyd_You_Have>=Xyd_Max then
  135.         DELAY 0.1
  136.         SEND "2";
  137.         WAITFOR "╢α╔┘╕÷╨┼╙├╡π :"
  138.         DELAY 0.1
  139.         SEND  str(Xyd_Sold)
  140.         WAITFOR "╛═╛÷╢¿┬⌠┬≡? (Y/n)"
  141.         DELAY 0.1
  142.         SEND "y";
  143.         WAITFOR "╢▄         "
  144.         DELAY 0.1
  145.         SEND
  146.         WAITFOR "╖╓):"
  147.     end if
  148. end sub    
  149.  
  150. sub Buy_Xyd
  151.     dim dun_You_Have as integer
  152.     dun_You_Have=val(chr(screen(6,57))+chr(screen(6,58))+chr(screen(6,59))+chr(screen(6,60)))
  153.     if Dun_You_Have>=Dun_Max then
  154.         SEND "b";
  155.         WAITFOR "╥¬┬≥╢α╔┘╕÷╨┼╙├╡π :"
  156.         DELAY 0.1
  157.         SEND str(Xyd_Buy)
  158.         WAITFOR "╛÷╢¿╥¬┬≥┬≡? (Y/n)"
  159.         DELAY 0.1
  160.         SEND "y";
  161.         WAITFOR "): "
  162.     end if
  163. end sub
  164.  
  165. sub Sold_Xin_Liang
  166.     dim xin_liang_You_Have as integer
  167.     dim temp as string
  168.     SEND "5";
  169.     WAITFOR "╗╣─▄┬⌠"
  170.     receive temp
  171.     xin_liang_You_Have=val(ltrim(left(temp,5)))
  172.     if xin_liang_You_Have>=Xin_Liang_Max then
  173.       WAITFOR "╦π╥¬┬⌠│÷╢α╔┘╖Γ╨┼ :"
  174.       delay 0.1
  175.       SEND str(Xin_Liang_Sold)
  176.       WAITFOR "╛═╛÷╢¿┬⌠┬≡? (Y/n)"
  177.       delay 0.1
  178.       SEND "y";
  179.       WAITFOR "╢▄         "
  180.       delay 0.1
  181.       SEND
  182.       WAITFOR "╖╓):"
  183.     else
  184.       delay 0.1
  185.       SEND
  186.       WAITFOR "╖╓):"
  187.     end if
  188. end sub
  189.  
  190. sub Saveto_Foundation_Wp
  191.     dim dun_You_Have as integer
  192.     dun_You_Have=val(chr(screen(6,57))+chr(screen(6,58))+chr(screen(6,59))+chr(screen(6,60)))
  193.     if dun_You_Have>=Foundation_Wp_Max then
  194.         DELAY 0.1
  195.         SEND "t";
  196.         WAITFOR "░╤╟«╫¬╡╜╦¡╡─╒╩╗º :"
  197.         DELAY 0.1
  198.         SEND Foundation_Wp_ID
  199.         WAITFOR "╔┘╟«╡╜┤╦╚╦╡─╒╩╗º :"
  200.         DELAY 0.1
  201.         SEND Str(Foundation_Wp_Save)
  202.         WAITFOR "╝≥╡Ñ╡─╕╜╤╘: "
  203.         DELAY 0.1
  204.         SEND Foundation_Wp_Brief
  205.         WAITFOR  Foundation_Wp_ID
  206.         DELAY 0.1
  207.         SEND
  208.         WAITFOR "╖╓):"
  209.     end if
  210. end sub
  211.  
  212. sub Hand_In_League_Member_Dues
  213.     dim dun_You_Have as integer
  214.     dim Last_Dues_Month as integer
  215.     dim Last_Dues_Year as integer
  216.     dim This_Month as integer
  217.     dim This_Year as integer
  218.     dun_You_Have=val(chr(screen(6,57))+chr(screen(6,58))+chr(screen(6,59))+chr(screen(6,60)))
  219.     if  ltrim(League_Member_Dues_Paytime)<>"" then
  220.       Last_Dues_Month=val(mid(League_Member_Dues_Paytime,4,2))
  221.       Last_Dues_Year=val(left(League_Member_Dues_Paytime,2))
  222.     end if 
  223.     This_Month=val(mid(date,4,2))
  224.     This_Year=val(left(date,2))
  225.     
  226.     if Last_Dues_Month < This_Month+12*(This_Year-Last_Dues_Year) then
  227.       if dun_You_Have>=League_Member_Dues then
  228.         DELAY 0.1
  229.         SEND "t";
  230.         WAITFOR "░╤╟«╫¬╡╜╦¡╡─╒╩╗º :"
  231.         DELAY 0.1
  232.         SEND League_Member_Dues_Payto
  233.         WAITFOR "╔┘╟«╡╜┤╦╚╦╡─╒╩╗º :"
  234.         DELAY 0.1
  235.         SEND Str(League_Member_Dues)
  236.         WAITFOR "╝≥╡Ñ╡─╕╜╤╘: "
  237.         DELAY 0.1
  238.         SEND League_Member_Brief
  239.         WAITFOR  League_Member_Dues_Payto
  240.         DELAY 0.1
  241.         SEND
  242.         WAITFOR "╖╓):"
  243.         League_Member_Dues_Paytime=date
  244.       end if
  245.     end if
  246. end sub
  247.  
  248. sub Xyd_Enough
  249.     dim dun_You_Have as integer
  250.     dim xyd_You_Have as integer
  251.     dun_You_Have=val(chr(screen(6,57))+chr(screen(6,58))+chr(screen(6,59))+chr(screen(6,60)))
  252.     xyd_You_Have=val(chr(screen(7,33))+chr(screen(7,34))+chr(screen(7,35)))
  253.     if Xyd_You_Have<DownLoad_File_Number and Dun_You_Have>=5*(DownLoad_File_Number - Xyd_You_Have) then
  254.         SEND "b";
  255.         WAITFOR "╥¬┬≥╢α╔┘╕÷╨┼╙├╡π :"
  256.         DELAY 0.1
  257.         SEND str(DownLoad_File_Number - Xyd_You_Have)
  258.         WAITFOR "╛÷╢¿╥¬┬≥┬≡? (Y/n)"
  259.         DELAY 0.1
  260.         SEND "y";
  261.         WAITFOR "): "
  262.     end if
  263. end sub
  264.  
  265.  
  266. sub Download_Start
  267.     dim temp as string
  268.     dim Count as integer
  269.     SEND "f";
  270.     WAITFOR "): "
  271.     
  272.     for Count=1 to 6
  273.         if Download_File_Area(Count)="" then goto Next_Count
  274.         SEND "a";
  275.         WAITFOR "╝╠╨°(Y/n/=)?"
  276.         SEND "y";
  277.         WAITFOR "─·╧δ╤í╘±──╕÷╟°: "
  278.         SEND  Download_File_Area(Count)
  279.         WAITFOR "): "
  280.         SEND "d";
  281.         WAITFOR "╬─╝■: "
  282.         SEND Download_File_Name(Count)
  283.         receive temp
  284.         receive temp
  285.         receive temp
  286.         receive temp
  287.         receive temp
  288.         if len(temp) >= 4 then 
  289.             WAITFOR "(Yes/No/Quit): "
  290.             SEND "y";
  291.             WAITFOR "(Enter - ╝╠╨°):"
  292.             SEND
  293.             WAITFOR "┤½╦═╨¡╥Θ, (A)╖┼╞·: "
  294.             SEND "s";
  295.             WAITFOR "B00"
  296.             DOWNLOAD "", Zmodem
  297.             WAITFOR "): "
  298.             DownLoad_OK(Count)=Chr(13)+Chr(10)+Download_File_Name(Count)+" ╬─╝■╧┬╘╪│╔╣ª!  ┬╖╛╢╬¬ "+configdownloadpath+"\"+Download_File_Name(Count)
  299.             Download_File_Area(Count)=""
  300.             Download_File_Name(Count)=""
  301.         else
  302.             WAITFOR "╬─╝■: "
  303.             send
  304.             WAITFOR "): "
  305.             DownLoad_OK(Count)=Chr(13)+Chr(10)+Download_File_Name(Count)+" ╬─╝■╧┬╘╪╩º░▄!"
  306.         end if
  307.     Next_Count:
  308.     Next Count
  309.     
  310.     SEND "-";
  311.     WAITFOR "): "
  312. end sub
  313.  
  314. sub Upload_start
  315.     dim temp as string
  316.     dim Count as integer
  317.     SEND "f";
  318.     WAITFOR "): "
  319.     
  320.     for Count=1 to 6
  321.         if Upload_File_Name(Count)="" then goto Next_Count
  322.         SEND "u";
  323.         WAITFOR "protocol, (A)bort: "
  324.         SEND "s";
  325.         WAITFOR ""
  326.         UPLOAD Upload_File_Name(Count), Zmodem
  327.         receive temp
  328.         if instr(temp,"000") = 0 then
  329.             delay 4
  330.             SEND Upload_File_Brief(Count)
  331.             WAITFOR "): "
  332.             Upload_ok(Count)=Chr(13)+Chr(10)+Upload_File_Name(Count)+" ╬─╝■╔╧╘╪│╔╣ª!"
  333.             Upload_File_Name(Count)=""
  334.             Upload_File_Brief(Count)=""
  335.         else
  336.             SEND "";
  337.             delay 0.1
  338.             SEND "";
  339.             delay 0.1
  340.             SEND "";
  341.             delay 0.1
  342.             SEND "";
  343.             delay 0.1
  344.             SEND "";
  345.             WAITFOR "): "
  346.             Upload_ok(Count)=Chr(13)+Chr(10)+Upload_File_Name(Count)+" ╬─╝■╔╧╘╪╩º░▄!"
  347.         end if
  348.     Next_Count:
  349.     next Count
  350.     
  351.     SEND "-";
  352.     WAITFOR "): "
  353. end sub
  354.  
  355.  
  356. sub Money_Txt_Fix
  357.     dim i as integer
  358.     dim j as integer
  359.     dim z as string*1
  360.     dim lf as string*1
  361.     Dim Count as integer
  362.     lf=chr(10)
  363.     open Temp_Dir+"\money.txt" for random as #1 len=1
  364.     for i=1 to lof(1)
  365.     get #1,i,z
  366.     if z="┌" then
  367.         get #1,i+1,z
  368.         if z="─" then 
  369.             for j=0 to 17
  370.               put #1,i-1+80*j,lf
  371.             next j
  372.             put #1,i-1+80*18-1,lf
  373.             i=i-1+80*18-1
  374.         end if 
  375.     end if
  376.     next i
  377.     for Count=1 to 6
  378.         print #1,DownLoad_OK(Count)
  379.         print #1,Upload_OK(Count)
  380.     Next Count
  381.     close #1
  382. end sub
  383.  
  384. sub Write_TO_INI
  385.     open configscriptpath+"\westpont.ini" for output as #1
  386.     print #1,"Your_ID="+Your_ID
  387.     print #1,"Your_Password="+Your_Password
  388.     print #1,"Birthday="+Birthday
  389.     print #1,"League_Member="+str(League_Member)
  390.     print #1,"League_Member_Dues_AutoPay="+str(League_Member_Dues_AutoPay)
  391.     print #1,"League_Member_Dues_Paytime="+League_Member_Dues_Paytime
  392.     print #1,"League_Member_Dues_Payto="+League_Member_Dues_Payto
  393.     print #1,"League_Member_Dues="+str(League_Member_Dues)
  394.     print #1,"League_Member_Brief="+League_Member_Brief
  395.     print #1,"Foundation_Wp="+str(Foundation_Wp)
  396.     print #1,"Foundation_Wp_AutoSave="+str(Foundation_Wp_AutoSave)
  397.     print #1,"Foundation_Wp_ID="+Foundation_Wp_ID
  398.     print #1,"Foundation_Wp_Max="+str(Foundation_Wp_Max)
  399.     print #1,"Foundation_Wp_Save="+str(Foundation_Wp_Save)
  400.     print #1,"Foundation_Wp_Brief="+Foundation_Wp_Brief
  401.     print #1,"Xin_Liang_AutoSold="+str(Xin_Liang_AutoSold)
  402.     print #1,"Xin_Liang_Max="+str(Xin_Liang_Max)
  403.     print #1,"Xin_Liang_Sold="+str(Xin_Liang_Sold)
  404.     print #1,"Xyd_AutoSold="+str(Xyd_AutoSold)
  405.     print #1,"Xyd_AutoBuy="+str(Xyd_AutoBuy)
  406.     print #1,"Xyd_Max="+str(Xyd_Max)
  407.     print #1,"Xyd_Sold="+str(Xyd_Sold)
  408.     print #1,"Dun_Max="+str(Dun_Max)
  409.     print #1,"Xyd_Buy="+str(Xyd_Buy)
  410.     print #1,"Upload_Wanted="+str(Upload_Wanted)
  411.     print #1,"Upload_File1_Name="+Upload_File_Name(1)
  412.     print #1,"Upload_File1_Brief="+Upload_File_Brief(1)
  413.     print #1,"Upload_File2_Name="+Upload_File_Name(2)
  414.     print #1,"Upload_File2_Brief="+Upload_File_Brief(2)
  415.     print #1,"Upload_File3_Name="+Upload_File_Name(3)
  416.     print #1,"Upload_File3_Brief="+Upload_File_Brief(3)
  417.     print #1,"Upload_File4_Name="+Upload_File_Name(4)
  418.     print #1,"Upload_File4_Brief="+Upload_File_Brief(4)
  419.     print #1,"Upload_File5_Name="+Upload_File_Name(5)
  420.     print #1,"Upload_File5_Brief="+Upload_File_Brief(5)
  421.     print #1,"Upload_File6_Name="+Upload_File_Name(6)
  422.     print #1,"Upload_File6_Brief="+Upload_File_Brief(6)
  423.     print #1,"Download_Wanted="+str(Download_Wanted)
  424.     print #1,"Download_File1_Area="+Download_File_Area(1)
  425.     print #1,"Download_File1_Name="+Download_File_Name(1)
  426.     print #1,"Download_File2_Area="+Download_File_Area(2)
  427.     print #1,"Download_File2_Name="+Download_File_Name(2)
  428.     print #1,"Download_File3_Area="+Download_File_Area(3)
  429.     print #1,"Download_File3_Name="+Download_File_Name(3)
  430.     print #1,"Download_File4_Area="+Download_File_Area(4)
  431.     print #1,"Download_File4_Name="+Download_File_Name(4)
  432.     print #1,"Download_File5_Area="+Download_File_Area(5)
  433.     print #1,"Download_File5_Name="+Download_File_Name(5)
  434.     print #1,"Download_File6_Area="+Download_File_Area(6)
  435.     print #1,"Download_File6_Name="+Download_File_Name(6)
  436.     print #1,"Pkzip_Dir="+Pkzip_Dir
  437.     print #1,"Temp_Dir="+Temp_Dir
  438.     print #1,"Msg_Upload_Dir="+Msg_Upload_Dir
  439.     print #1,"Msg_Download_Dir="+Msg_Download_Dir
  440.     close #1
  441. end Sub
  442.  
  443.  
  444. timeout 100
  445.  
  446. Read_Data
  447.  
  448. del Temp_Dir+"\money.txt"
  449.  
  450. if Upload_Wanted=0 and Download_Wanted=0 then
  451.     dial Search "╬≈╡π"
  452. else
  453.     if timer>=5*3600 and timer<= 13*3600 then    
  454.         dial Search "╬≈╡π"
  455.     else 
  456.         dial search "╬≈╡π╢■╧▀"
  457.     end if
  458. end if
  459. WAITFOR "West-Point"
  460. SEND "";
  461. WAITFOR "your full name: "
  462. SEND Your_ID
  463. WAITFOR "├▄┬δ: "
  464. SEND Your_Password
  465. WAITFOR " (Enter) ╝ⁿ╝╠╨° ..."
  466. when match "MM-DD-YY" do send Birthday
  467. SEND
  468. WAITFOR "╕°─·╡─╨┼╝■Y (Y/n)? "
  469. SEND "n";
  470. WAITFOR "▓Θ╨┬╜°╬─╝■N (y/N)? "
  471. SEND "n";
  472. WAITFOR "╝╠╨°(Y/n/=)?"
  473. SEND "n";
  474. WAITFOR "): "
  475. if exists(Msg_Upload_Dir+"\Westpont.new") then
  476.   SEND "u";
  477.   WAITFOR ""
  478.   UPLOAD Msg_Upload_Dir+"\Westpont.new", Zmodem
  479.   DEL Msg_Upload_Dir+"\Westpont.new"
  480.   WAITFOR "): "
  481. end if
  482. SEND "d";
  483. WAITFOR "File Name:"
  484. receive MsgPack_file_name
  485. WAITFOR "B00"
  486. DOWNLOAD Msg_Download_Dir, Zmodem
  487. WAITFOR "): "
  488. SEND "k";
  489. WAITFOR "╖╓):",15
  490. capture Temp_Dir+"\money.txt"
  491. delay 1
  492. send
  493. WAITFOR "╖╓):"
  494.  
  495. if Xyd_AutoSold=1 then Sold_Xyd
  496.  
  497. if Xyd_AutoBuy=1 then Buy_Xyd
  498.  
  499. if Xin_Liang_AutoSold=1 then Sold_Xin_Liang
  500.  
  501. if Foundation_Wp_AutoSave=1 and Foundation_Wp=1 then SaveTo_Foundation_Wp
  502.  
  503. if League_Member_Dues_AutoPay=1 and League_Member=1  then Hand_In_League_Member_Dues
  504.  
  505. if Download_Wanted=1 then Xyd_Enough
  506.  
  507. capture off
  508. delay 2
  509. SEND "-";
  510. WAITFOR "): "
  511. delay 0.5
  512. goto f
  513.  
  514. catch Err_timeout
  515. f:
  516. if Upload_Wanted=1 then Upload_start 
  517. if Download_Wanted=1 then Download_start
  518.  
  519. Money_Txt_Fix
  520.  
  521. delay 2
  522. if instr(MsgPack_file_name,"WESTPONT")<>0 then
  523.   MsgPack_file_name=mid(MsgPack_file_name,instr(MsgPack_file_name,"WESTPONT"),12)
  524.   shell Pkzip_Dir+"\pkzip -a "+Msg_Download_Dir+"\"+MsgPack_file_name+" "+Temp_Dir+"\money.txt"
  525. end if
  526. delay 1
  527. SEND "!"; 
  528. WAITFOR "): "
  529.  
  530. Write_TO_INI
  531.  
  532. delay 2
  533. SEND "!"; 
  534. del Temp_Dir+"\money.txt"
  535. system
  536.  
  537.  
  538.  
  539.