Advertisement
intersys

vGames Gathers Alert - By interSys

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