Advertisement
intersys

Untitled

Mar 5th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.81 KB | None | 0 0
  1. ;;;; Auto Connecting To Server Gather - interSys Script ;;;;
  2.  
  3. ;;;dialog;;;
  4.  
  5. alias AGJ $iif(!$dialog(AGJ),dialog -m AGJ AGJ,echo -a 04Error! 14The dialog already open ...)
  6. dialog AGJ {
  7.   title "interSys Gather Auto-Connect"
  8.   size -1 -1 136 261
  9.   option dbu
  10.   box "Steam Location", 1, 4 38 128 68
  11.   button "Find automatic location", 2, 7 52 60 11
  12.   radio "X64", 3, 75 52 23 10
  13.   radio "X32", 4, 108 52 23 10
  14.   text "Windows Bit", 5, 84 43 33 8
  15.   button "Find manually location", 6, 7 66 60 11
  16.   text "Location", 7, 56 81 25 8
  17.   edit "", 8, 8 90 122 10, disable
  18.   box "Server Nickname", 9, 4 108 129 95
  19.   button "Enter the type of the tag-team", 10, 11 119 116 10
  20.   text "Tag-team A", 11, 9 131 31 8
  21.   edit "", 12, 40 131 41 10, disable
  22.   text "Tag-team B", 13, 9 142 31 8
  23.   edit "", 14, 40 142 41 10, disable
  24.   button "Enter your nickname in the server", 15, 9 159 116 10
  25.   text "Nickname:", 16, 8 172 25 8
  26.   edit "", 17, 36 172 63 10, disable
  27.   check "Enable automatic nickname change", 18, 16 185 112 10
  28.   box "Anti-Cheat location", 19, 4 201 129 56
  29.   button "Find manually anti-cheat location", 20, 22 210 89 11
  30.   text "Location:", 21, 51 224 25 8
  31.   edit "", 22, 8 232 122 10, disable
  32.   check "Enable automatic run anti-cheat", 23, 16 243 95 10
  33.   check "Enable Gather-Autojoin", 25, 10 25 95 10
  34.   box "General", 24, 4 17 129 20
  35.   text "interSys Gather Auto-Connect", 26, 28 7 78 8
  36. }
  37. ;;;dialog-event;;;
  38.  
  39. On *:Dialog:AGJ:*:*: {
  40.   if ($devent == init) {
  41.     if (%Windows == 64) did -c $dname 3
  42.     if (%Windows == 32) did -c $dname 4
  43.     if (%SLocation) did -a $dname 8 %SLocation
  44.     if (%anick == on) did -c $dname 18
  45.     if (%acheat == on) did -c $dname 23
  46.     if (%AGJ == on) did -c $dname 25
  47.     if (%tag.a) did -a $dname 12 %tag.a
  48.     if (%tag.b) did -a $dname 14 %tag.b
  49.     if (%nickn) did -a $dname 17 %nickn
  50.     if (%ACLocation) did -a $dname 22 %ACLocation
  51.   }
  52.   if ($devent == sclick) {
  53.     if ($did == 2) {
  54.       if ($did(3).state) || ($did(4).state) {
  55.         FindS
  56.       }
  57.       else { did -ra $dname 8 You need to select the bit of your windows }
  58.     }
  59.     elseif ($did(3).state) { set %Windows 64 }
  60.     elseif ($did(4).state) { set %Windows 32 }
  61.     if ($did == 6) {
  62.       set %SLocation $$sfile(C:\*Steam.exe,Find your Steam.exe)
  63.       if ($dialog(AGJ)) {
  64.         did -ra AGJ 8 %SLocation
  65.       }
  66.       echo -a 1(12AGJ1) Steam location found:4 %SLocation
  67.     }
  68.     if ($did == 10) {
  69.       set %tag.a $input(Type tag team A,eg,Tag Settings)
  70.       set %tag.b $input(Type tag team B,eg,Tag Settings)
  71.       did -ra AGJ 12 %tag.a | did -ra AGJ 14 %tag.b
  72.     }
  73.     elseif ($did == 15) { set %nickn $input(Type your nickname on the server,eg,Nickname Settings) | did -ra AGJ 17 %nickn }
  74.     elseif ($did == 18) {  Set %anick $iif($did(18).state == 1,ON,OFF) }
  75.     elseif ($did == 20) {
  76.       set %ACLocation $$sfile(C:\,Find your Anti-Cheat.exe/AntiCheat.exe)
  77.       if ($dialog(AGJ)) {
  78.         did -ra AGJ 22 %ACLocation
  79.       }
  80.     }
  81.     elseif ($did == 23) { Set %acheat $iif($did(23).state == 1,ON,OFF) }
  82.     elseif ($did == 25) { Set %AGJ $iif($did(25).state == 1,ON,OFF) }
  83.   }
  84. }
  85.  
  86. ;;;on-text;;;
  87.  
  88. On *:text:*:? : {
  89.   if (server isin $1-) && (autorun isin $1-) && (%AGJ == on) {
  90.     noop $regex($strip($1-),Gather (.+?): \(Team-(.+?)\) Server: (.+?) $chr(44) $+ pass: (\d{3})) $chr(44) $+ Vent:/i)
  91.     if (%anick == on) { $iif($regml(2) == A,$NameChanger(%tag.a $+ %nickn), $NameChanger(%tag.b $+ %nickn)) }
  92.     if (%acheat == on) { run %ACLocation }
  93.     echo -ag 14Connecting to the gather, please wait ...
  94.     .timer 1 40 .msg #vGames.Gathers 14 Auto connect to server gather 04(12interSys Script04)
  95.     $iif(%acheat == on,.timer 1 10,.timer 1 5) run $+(steam://connect/,$regml(3),/,$regml(4))
  96.   }
  97. }
  98. ;;;aliases;;;
  99.  
  100. alias NameChanger {
  101.   var %path = " $+ $remove(%SLocation,steam.exe) $+ steamapps\common\Half-Life\cstrike\config.cfg"
  102.   noop $read(%path, s, name)
  103.   write $+(-l,$readn) %path name $+($chr(34),$1,$chr(34))
  104.   return
  105. }
  106. alias FindS {
  107.   if (!$1) {
  108.     var %x = 1
  109.     while ($disk(%x) != $null) {
  110.       if ($disk(%x).type == fixed) && ($findfile($+($disk(%x).path,$iif(%Windows == 64,Program Files (x86),Program Files)\),Steam.exe,0)) {
  111.         set %SLocation $findfile($+($disk(%x).path,$iif(%Windows == 64,Program Files (x86),Program Files)\),Steam.exe,1)
  112.         break
  113.       }
  114.       inc %x
  115.     }
  116.     if ($dialog(AGJ)) && (%SLocation) { did -ra AGJ 8 %SLocation }
  117.     if (%SLocation) echo -a 14 Steam location found:4 %SLocation
  118.     elseif (!%SLocation) {
  119.       echo -a 14 Steam Location not found automatic ,try the manually way.
  120.       if ($dialog(AGJ)) { did -ra AGJ 8 Steam Location not found automatic ,try the manually way. }
  121.     }
  122.   }
  123.   elseif ($1 == Manual) { set %SLocation $$sfile(C:\*Steam.exe,Find your Steam.exe) | if ($dialog(AGJ)) { did -ra AGJ 8 %SLocation } | echo -a 14) Steam location found:4 %SLocation }
  124. }
  125.  
  126. menu * {
  127.   Auto Gather-Server Connect:AGJ
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement