home *** CD-ROM | disk | FTP | other *** search
/ InterCD 1998 August / august_1998.iso / Win95Software / GameSpy / GameSpyInstaller202.EXE / %MAINDIR% / gamespy.mirc < prev    next >
Encoding:
Text File  |  1998-08-05  |  1.6 KB  |  44 lines

  1. ; Example mIRC script to read LaunchInfo.txt
  2. ;
  3. ; To load copy this file to your scripts directory and type
  4. ; /load -rs <pathname>gamespy.mirc
  5. ; in any mIRC window and click yes when the warning appears.
  6. ;
  7. ; Don't e-mail me about how it works (or doesn't)
  8. ;
  9. ; Feel free to improve on it!
  10. ; If you want to send me a copy. It might even get included with GameSpy!
  11. ; Kevin "Zob the Slayer" Brown
  12. ; techsupport@gamespy.com    
  13. ;
  14.  
  15. alias gs_check { if $exists(C:\Program Files\GameSpy\LaunchInfo.txt) == $true doGsLaunch }
  16.  
  17. ON 1:START { .timergs_timer 0 2 gs_check }
  18.  
  19. on 1:INPUT:#: if (%gs_active = 1) /back
  20.  
  21. alias doGsLaunch { 
  22.    .timergs_timer off
  23.    set %gs_game $read -l1 "C:\Program Files\GameSpy\LaunchInfo.txt"
  24.    set %gs_game $remove( %gs_game , GameType )
  25.    set %gs_serv $read -l2 "C:\Program Files\GameSpy\LaunchInfo.txt"
  26.    set %gs_serv $remove( %gs_serv ,ServerName )
  27.    set %gs_add  $read -l3 "C:\Program Files\GameSpy\LaunchInfo.txt"
  28.    set %gs_add  $remove( %gs_add ,ServerAddr )    
  29.    set %gs_mod  $read -l4 "C:\Program Files\GameSpy\LaunchInfo.txt"
  30.    set %gs_mod  $remove( %gs_mod ,ServerMod )
  31.    msg #gamespy Playing %gs_game %gs_mod at %gs_serv - %gs_add
  32.    .AWAY Playing %gs_game %gs_mod at %gs_serv - %gs_add
  33.    .remove C:\Program Files\GameSpy\LaunchInfo.txt 
  34.    .echo -a You are marked AWAY - Type /BACK when you return
  35.    set %gs_active 1
  36. }
  37.  
  38. alias back {
  39.    me is back, fresh from the kill!
  40.    away
  41.    if $exists(C:\Program Files\GameSpy\LaunchInfo.txt) { .remove C:\Program Files\GameSpy\LaunchInfo.txt }
  42.       .timergs_timer 0 1 gs_check
  43.       set %gs_active 0
  44.  }