Advertisement
SRU

TOP10 [ALiASES] (overlayer EDiT)

SRU
Feb 27th, 2013
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 7.62 KB | None | 0 0
  1. ;**************************************************************************************************************************************
  2. ;*** ####### ####### ######        #     ###       #####  #######  #####  #######   ####### #     #
  3. ;***    #    #     # #     #      ##    #   #     #     # #       #     #    #    # #     # ##    #
  4. ;***    #    #     # #     #     # #   #     #    #       #       #          #    # #     # # #   #
  5. ;***    #    #     # ######        #   #     #     #####  #####   #          #    # #     # #  #  #
  6. ;***    #    #     # #             #   #     #          # #       #          #    # #     # #   # #
  7. ;***    #    #     # #             #    #   #     #     # #       #     #    #    # #     # #    ##
  8. ;***    #    ####### #           #####   ###       #####  #######  #####     #    # ####### #     #
  9. ;**************************************************************************************************************************************
  10. ;*** LIST *****************************************************************************************************************************
  11. TOP10-LiST {
  12.   ;************************************************************************************************************************************************************************************************************************************************************************
  13.   set -u7 %TOP-REQ $iif(!TTOP isin $1,TODAY,$iif(TODAY isin $1-2,TODAY,TOTAL))
  14.   ;************************************************************************************************************************************************************************************************************************************************************************
  15.   ;*** !TOPJOiN / PART / QUiT
  16.   if (JOiN isin $1-) || (PART isin $1-) || (QUiT isin $1-) { set -u7 %TOP-STATS $v1 }
  17.   ;************************************************************************************************************************************************************************************************************************************************************************
  18.   ;*** !TOPUNBAN
  19.   elseif (UNBAN isin $1-) { set -u7 %TOP-STATS $+(UNBANN,$iif(eD isin $1-2,eD)) }
  20.   ;************************************************************************************************************************************************************************************************************************************************************************
  21.   ;*** !TOPBAN
  22.   elseif (BAN isin $1-) { set -u7 %TOP-STATS $+(BANN,$iif(eD isin $1-2,eD)) }
  23.   ;************************************************************************************************************************************************************************************************************************************************************************
  24.   ;*** !TOPKiCK
  25.   elseif (KiCKeD isin $1-) || (LAMERs isin $1-) { set -u7 %TOP-STATS rKiCK }
  26.   ;************************************************************************************************************************************************************************************************************************************************************************
  27.   ;*** !TOPKiCK
  28.   elseif (KiCK isin $1-) { set -u7 %TOP-STATS KiCK }
  29.   ;************************************************************************************************************************************************************************************************************************************************************************
  30.   ;*** !TOPTEXT / WORD / LiNE / Characters
  31.   else { set -u7 %TOP-STATS TEXT | set -u7 %TOP-STATS+ $iif(Line isin $1-2,Lines,$iif(Char isin $1-2,Characters,Words)) }
  32.   ;************************************************************************************************************************************************************************************************************************************************************************
  33.   $iif(!%TOP-LOCATiON,TOP-20-LOCATiON $strip($1-),$iif(!%TOP-iNFO,set %TOP-iNFO $iif(%TOP-STATS+,$v1,%TOP-STATS)))
  34.   $iif(!%TOP-READ,set %TOP-READ $iif(%TOP-STATS+ != $null,$v1,%TOP-STATS))
  35.   ;************************************************************************************************************************************************************************************************************************************************************************
  36.   TOP-20 %TOP-iNFO
  37. }
  38. ;***********************************************************************************
  39. TOP-20-LOCATiON {
  40.   if ($me ison $2) || (CHAN isin $2-) { set -u7 %TOP-LOCATiON+ $iif($me ison $2,$2,$chan) }
  41.   elseif (NET isin $2-) { set -u7 %TOP-LOCATiON $network }
  42.   elseif (TOTAL isin $2-) { set -u7 %TOP-LOCATiON TOTAL }
  43.   else { set -u7 %TOP-LOCATiON $iif(%TOP-REQ,$v1,TODAY) }
  44. }
  45. ;***********************************************************************************
  46. ;*** TOP20
  47. TOP-20 { btrunc temp 0 | var %i = 1
  48.   msg # Reading from $+(SRU\TOP10\0-,%TOP-LOCATiON,.ini) %TOP-READ
  49.   ;*** LiNEs / TEXT - TOP10
  50.   $iif(%TOP-LOCATiON+,set %TOP-LOCATiON $+($network,$v1))
  51.   while ($ini($+(SRU\TOP10\0-,%TOP-LOCATiON,.ini),%TOP-READ,%i)) { if ($v1 != t.date) write temp $v1 $readini($+(SRU\TOP10\0-,%TOP-LOCATiON,.ini),n,%TOP-READ,$v1) | inc %i }
  52.   filter -cteuff 2 32 temp temp | var %p = 1 | %top10 = ""
  53.   while ($lines(temp) >= %p) && (%p <= 10) { %top10 = %top10 $($+(8#,%p,),2) $+(13,$replace($read(temp,%p),$chr(32),$+(,$chr(32),$chr(40),4)),,$chr(41),$chr(32),) | inc %p }
  54.   ;*********************************************************
  55.   $iif(!%TOP-iNFO,set %TOP-iNFO $iif(%TOP-STATS+,$v1,%TOP-STATS))
  56.   $iif(!%top10,set %TOP-ERROR Holy bandwidth Robin... there's no 8TOP-10 yet 4ΓΆ.Γ–)
  57.   ;******* Messages
  58.   .msg $iif(%!TOP-CHAN,$v1,$nick) $iif(%TOP-REQ != TOTAL,[ 8TODAYs ]-[,[ 8TOP-10 ]-[) $&
  59.     $replacex(%TOP-STATS,JOiN,9JOiNERs ] $iif(!%top10,%TOP-ERROR,List of most common people to drop in),$&
  60.     PART,4QUiTTERs ] $iif(!%top10,%TOP-ERROR,List of most common 4QUiTTERs),$&
  61.     KiCK,4KiCKERs ] $iif(!%top10,%TOP-ERROR,List of people that have toshed most wankers),$&
  62.     UNBAN,9UN4BANNERs ] $iif(!%top10,%TOP-ERROR,List of people that have un-banned most users),$&
  63.     BANNeD,4BANNeD ] $iif(!%top10,%TOP-ERROR,List of wankers... the people most commonly being banned),$&
  64.     BANN,4BANNERs ] $iif(!%top10,%TOP-ERROR,List of people that have banned most wankers),$&
  65.     TEXT,8TOP-TEXTER(s) ] $iif(!%top10,%TOP-ERROR,People with most written %TOP-STATS+),$&
  66.     $+($network,$chan),8TOP-TEXTER(s) ] $iif(!%top10,%TOP-ERROR,People with most written %TOP-STATS+),$&
  67.     $network,8TOP-TEXTER(s) ] $iif(!%top10,%TOP-ERROR,People with most written %TOP-STATS+),$&
  68.     $chan,8TOP-TEXTER(s) ] $iif(!%top10,%TOP-ERROR,People with most written %TOP-STATS+)) ->
  69.   ;*********************************************************
  70.   if (%!TOP-CHAN != $null) {
  71.     if (!%FLOOD-TOP10) { $replacex(%top10,8#10,8#10,8#1,.msg %!TOP-CHAN 8#1) }
  72.     else { $replacex(%top10,8#10,8#10,8#1,.notice $nick 8#1) }
  73.     set -u660 %FLOOD-TOP10 $nick
  74.   }
  75.   ;*** UNSETTiNG
  76.   unset %TOP* %!TOP-CHAN
  77. }
  78. ;*** END TOP 10 SECTiON *************************************************************************************************************************************************************************************************************************************************
  79. ;***********************************************************************************************************************************************************************************************************************************************************************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement