Advertisement
intersys

Untitled

Jul 22nd, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.48 KB | None | 0 0
  1. dialog run {
  2.   title "Ultimate Runners Script - By interSys"
  3.   size -1 -1 199 238
  4.   option dbu
  5.   text "Runners Script - By intersys", 1, 60 7 71 8
  6.   box "Login details", 2, 110 23 86 70
  7.   text "Username:", 3, 7 33 28 8
  8.   edit "", 4, 40 33 64 8
  9.   text "Password:", 5, 7 44 26 8
  10.   edit "", 6, 40 44 64 8
  11.   check "Save details?", 7, 8 68 42 8
  12.   box "Login to the gatherbot", 8, 3 23 106 70
  13.   text "Username:", 9, 114 32 28 8, disable
  14.   text "Not enter yet", 10, 148 32 36 8, disable
  15.   text "Password:", 11, 114 42 26 8, disable
  16.   text "Not enter yet", 12, 148 42 36 8, disable
  17.   check "Auto login on connect", 14, 8 80 72 8
  18.   button "Login", 15, 55 67 37 10
  19.   text "Auto login:", 16, 114 71 28 8, disable
  20.   text "OFF", 17, 153 71 23 8, disable
  21.   text "Login Status:", 18, 114 82 35 8, disable
  22.   text "OFFLINE", 19, 153 82 31 8, disable
  23.   text "Details saving:", 13, 114 61 37 8, disable
  24.   text "OFF", 20, 153 61 23 8, disable
  25.   box "Run Gather", 21, 2 96 194 140
  26.   text "Gather Number", 22, 8 111 39 8
  27.   list 23, 7 121 86 82, size
  28.   text "Maps to run", 24, 104 111 31 8
  29.   list 25, 103 121 86 82, size
  30.   button "Run Gather", 26, 6 205 185 12
  31.   edit "Gather Status", 27, 6 221 184 10, disable center
  32.   text "Gbot name:", 28, 7 54 31 8
  33.   edit "", 29, 40 54 64 8
  34.   button "Add Map", 30, 141 109 46 10
  35.   button "Refresh", 31, 50 109 40 10
  36.   text "Gbot name:", 32, 114 51 31 8, disable
  37.   text "Bar - Gather", 33, 148 51 41 8, disable
  38. }
  39.  
  40.  
  41. on *:dialog:run:*:*: {
  42.   if ($devent == sclick) {
  43.     if ($did == 15) {
  44.       join #vgathers.crew
  45.       .timer 1 1 msg !login $iif(%r.gbot,%r.gbot,$did(29)) $iif(%r.user,%r.user,$did(4)) $iif(%r.pass,%r.pass,$did(6))
  46.       did -ra $dname 10 $iif(%r.user,%r.user,$did(4))
  47.       did -a $dname 12 $iif(%r.pass,%r.pass,$did(6))
  48.       did -a $dname 33 $iif(%r.gbot,%r.gbot,$did(29))
  49.       did -a $dname 20 $iif(%r.dsave == ON,ON,OFF)
  50.       did -a $dname 17 $iif(%r.autolog == ON,ON,OFF)
  51.       did -a $dname 19 loginstatus
  52.     }
  53.     elseif ($did == 7) {
  54.       set %r.dsave $iif($did(7).state == 1,ON,OFF)
  55.       did -a $dname 20 $iif($did(7).state == 1,ON,OFF)
  56.       if (%r.dsave == on) {
  57.         set %r.user $did(4)
  58.         set %r.pass $did(6)
  59.         set %r.gbot $did(29)
  60.       }
  61.       else { unset %r.* }
  62.     }
  63.     elseif ($did == 14) { set %r.autolog $iif($did(14).state == 1,ON,OFF) | did -a $dname 17 $iif($did(14).state == 1,ON,OFF) }
  64.   }
  65.   elseif ($devent == init) {
  66.     did -a $dname 4 %r.user
  67.     did -a $dname 6 %r.pass
  68.     did -a $dname 29 %r.gbot
  69.     did -a $dname 10 $iif(%r.user,%r.user,Not enter yet)
  70.     did -a $dname 12 $iif(%r.pass,%r.pass,Not enter yet)
  71.     did -a $dname 33 $iif(%r.gbot,%r.gbot,Not enter yet)
  72.     did -a $dname 20 $iif(%r.dsave == ON,ON,OFF)
  73.     did -a $dname 17 $iif(%r.autolog == ON,ON,OFF)
  74.     did $iif(%r.dsave == on,-c,-u) $dname 7
  75.     did $iif(%r.autolog == on,-c,-u) $dname 14
  76.     var %x = 1
  77.     while ($ini(RunGTR.ini,%x)) {
  78.       did -a $dname 23 Gather $ifmatch $+ : $readini(RunGTR.ini,$ifmatch,Gather $+ %x)
  79.       inc %x
  80.     }
  81.     var %x = 1
  82.     while ($read(RMaps.txt,%x)) {
  83.       did -a $dname 25 $ifmatch
  84.       inc %x
  85.     }
  86.   }
  87. }
  88. on *:text:*:#vGames.Gathers: {
  89.   if ($nick == vG|Rankbot) && (Gather 1: isin $strip($1-)) && (%msgon) {
  90.     echo -s $strip($1-)
  91.     noop $regsubex($strip($1-),/Gather (\d+): \((ON|OFF|Adding)(?:\|[^\x29]*)?\)/g, $rplaa(\1,\2))
  92.   }
  93. }
  94. alias rund {
  95.   echo -ag 14Please wait, its get the status gathers ...
  96.   msg #vGames.gathers ?status
  97.   set -u3 %msgon on
  98.   .timer 1 5 dialog -m run run
  99. }
  100. alias rplaa { writeini -n RunGTR.ini $1 Gather $+ $1 $2 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement