Advertisement
intersys

Untitled

Oct 31st, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 3.24 KB | None | 0 0
  1.  
  2. ;;;;;;; vGames Gathers Alert - By interSys ;;;;;;;;;
  3.  
  4. dialog GAlert {
  5.   title "Gathers Alert - By interSys"
  6.   size -1 -1 113 93
  7.   option dbu
  8.   text "- vGames Gather Alert - By interSys -", 17, 4 1 104 8, center
  9.   text "Start-in:", 2, 2 16 25 8
  10.   text "Map:", 3, 2 25 25 8
  11.   text "Admin:", 4, 2 34 25 8
  12.   button "Push to join the gather (Add)", 6, 15 53 85 10
  13.   text "", 7, 29 16 72 8
  14.   text "", 8, 29 25 72 8
  15.   text "", 9, 29 34 72 8
  16.   text "Gather-Num:", 12, 2 43 34 8
  17.   text "", 13, 38 43 12 8
  18.   button "Reset All", 14, 36 65 41 10
  19.   check "Gathers-Alert", 5, 2 76 42 10, left
  20.   check "Enable Beep Sound", 10, 49 76 57 10, left
  21.   text "Sign:", 11, 66 43 17 8
  22.   text "", 15, 86 43 12 8
  23.   text $chr(149) $chr(149) , 16, 52 43 8 8, center
  24.   text "_______________________________________", 1, 0 8 112 7, center
  25. }
  26.  
  27. on *:dialog:GAlert:*:*: {
  28.   if ($devent == init) {
  29.     $iif(%GA.Map,did -a $dname 7 $time,did -a $dname 7 Gather not adding right now)
  30.     $iif(%GA.Map,did -a $dname 8 %GA.Map,did -a $dname 8 Gather not adding right now)
  31.     $iif(%GA.Admin,did -a $dname 9 %GA.Admin,did -a $dname 9 Gather not adding right now)
  32.     $iif(%GA.Num,did -a $dname 13 $gettok(%GA.Num,1,32),did -a $dname 13 OFF)
  33.     $iif(%GA.Num,did -a $dname 15 $gettok(%GA.Num,2,32),did -a $dname 15 OFF)
  34.     if (%Ga.Turn) { did -c $dname 5 }
  35.     if (%Ga.STurn) { did -c $dname 10 }
  36.   }
  37.   if ($devent == sclick) {
  38.     $iif($did(5).state,set %GA.Turn ON,unset %GA.Turn)
  39.     $iif($did(10).state,set %GA.STurn ON,unset %GA.STurn)
  40.     if ($did == 6) && (%GA.Map) { msg #vGames.Adv $gettok(%GA.Num,2,32) $+ Add }
  41.     elseif ($did == 14) { unset %GA.* | did -u $dname 5,10 | did -a $dname 7-9 Gather not adding right now | did -a $dname 13,15 OFF }
  42.   }
  43. }
  44. on *:text:*:#vGames.Adv: {
  45.   if (*!*@VgamesADV.users.quakenet.org == $address($nick,2)) && (%GA.Turn) {
  46.     if (Starting the isin $1-) {
  47.       flash -wb4 Gather-Alert
  48.       set %GA.Admin $10
  49.     }
  50.     elseif (are: isin $6)  {
  51.       if (%GA.STurn) { beep 4 }
  52.       set %GA.Map $4
  53.       if ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 7) { set %GA.Num 1 $chr(33) }
  54.       elseif ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 11) { set %GA.Num 2 $chr(64) }
  55.       elseif ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 4) { set %GA.Num 3 $chr(43) }
  56.       elseif ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 9) { set %GA.Num 4 $chr(42) }
  57.       elseif ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 8) { set %GA.Num 5 $chr(45) }
  58.       elseif ($remove($gettok($1-,1,44),$chr(2),$chr(3)) == 10) { set %GA.Num 6 $chr(94) }
  59.       ga
  60.     }
  61.     elseif (Mixing teams isin $1-) || (Has been stopped isin $1-) {
  62.       if  ($dialog(GAlert)) {
  63.         did -a GAlert 7-9 Gather not adding right now | did -a GAlert 13,15 OFF
  64.       }
  65.       unset %GA.Map %GA.Admin %GA.Map %GA.Num
  66.     }
  67.   }
  68. }
  69. alias ga { $iif($dialog(GAlert),sga,dialog -m GAlert GAlert) }
  70. alias sga {
  71.   $iif(%GA.Map,did -a GAlert 7 $time,did -a GAlert 7 Gather not adding right now)
  72.   $iif(%GA.Map,did -a GAlert 8 %GA.Map,did -a GAlert 8 Gather not adding right now)
  73.   $iif(%GA.Admin,did -a GAlert 9 %GA.Admin,did -a GAlert 9 Gather not adding right now)
  74.   $iif(%GA.Num,did -a GAlert 13 $gettok(%GA.Num,1,32),did -a $dname 13 OFF)
  75.   $iif(%GA.Num,did -a GAlert 15 $gettok(%GA.Num,2,32),did -a $dname 15 OFF)
  76. }
  77.  
  78. menu * {
  79.   Gather-Alert:GA
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement