home *** CD-ROM | disk | FTP | other *** search
/ PC-X 1997 October / pcx14_9710.iso / shutils / internet / irc / script / bw10b1.exe / aliases.ini next >
Encoding:
INI File  |  1997-08-26  |  24.3 KB  |  435 lines

  1. [aliases]
  2. n0=/alt {
  3. n1=  unset %newtext %type %text %i %len | set %text $1- | set %len $len(%text) | set %i 1 | set %type lower
  4. n2=  :loop | if (%i > %len) goto end | if ($mid(%i,1,%text) == $chr(32)) { set %newtext %newtext $+ á | inc %i | goto loop }
  5. n3=  if (%type == lower) { set %newtext %newtext $+ $lower($mid(%i,1,%text)) | set %type upper | inc %i | goto loop }
  6. n4=  if (%type == upper) { set %newtext %newtext $+ $upper($mid(%i,1,%text)) | set %type lower | inc %i | goto loop }
  7. n5=  :end | say %newtext | halt
  8. n6=}
  9. n7=/aolscan {
  10. n8=  if ($1 == -e) { set %msg echo 1 -a }
  11. n9=  if ($1 == -c) { set %msg msg # }
  12. n10=  if ($1 == -w) { window @áAOLáScaná@ 100 100 350 150 | set %msg echo 1 @áAOLáScaná@ }
  13. n11=  %msg Scanning for AOL Users on #
  14. n12=  set %numaol 0 | set %syncstart $ticks | set %i 0 | :loop | inc %i | if (%i > $nick(0,#)) goto end
  15. n13=  if (aol.com isin $address($nick(%i,#),1)) {
  16. n14=    inc %numaol | %msg AOL User : $nick(%i,#) $+  $address($nick(%i,#),3)
  17. n15=    if ((%aolkick == on) && ($me isop #)) { kick # $nick(%i,#) $logo AOL Kicker }
  18. n16=  }
  19. n17=  goto loop | :end | set %synctime $ticks
  20. n18=  set %sync [ %synctime - %syncstart ]
  21. n19=  %msg %numaol Aol user(s) found
  22. n20=  if ($len(%sync) == 4) {
  23. n21=    set %sync-1 $right(%sync,3)
  24. n22=    set %sync-2 $left(%sync,1)) $+ . $+ %sync-1 secs
  25. n23=    %msg Finished in %sync-2    
  26. n24=  }
  27. n25=  if ($len(%sync) == 3) {
  28. n26=    set %sync-3 0. $+ %sync secs
  29. n27=    %msg Finished in %sync-3
  30. n28=  }
  31. n29=  if ($len(%sync) == 2) {
  32. n30=    set %sync-3 0.0 $+ %sync secs
  33. n31=    %msg Finished in %sync-3
  34. n32=  }
  35. n33=  if ($len(%sync) == 1) {
  36. n34=    set %sync-3 0.00 $+ %sync secs
  37. n35=    %msg Finished in %sync-3
  38. n36=  }
  39. n37=  unset %sync*
  40. n38=}
  41. n39=/autochanjoin {
  42. n40=  set %i 0 | %numb = $count(%chanstojoin,$chr(32)) + 1 | :loop | inc %i | if (%i > %numb) halt
  43. n41=  join $ [ $+ [ %i ] ] | goto loop
  44. n42=}
  45. n43=/away1 {
  46. n44=  %at = $ctime - %awaystart
  47. n45=  ame is 5Away ñ2 $+ %reason $+ ñ Pager : ñ2 $+ %pager $+ ñ (usage : /ctcp $me page <message>) Logging : ñ2 $+ %awayloggin $+ ñ been away for $duration(%at) so far. $logo
  48. n46=}
  49. n47=/awayscript {
  50. n48=  .timer12 off
  51. n49=  set %awa1 Y
  52. n50=  set %awaystart $ctime
  53. n51=  set %awaytime $clock on $day $adate
  54. n52=  ame is now 5Away ñ2 $+ %reason $+ ñ Pager : ñ2 $+ %pager $+ ñ (usage : /ctcp $me page <message>) Logging : ñ2 $+ %awayloggin $+ ñ $logo
  55. n53=  .timer10 0 900 /away1
  56. n54=}
  57. n55=/blacks {
  58. n56=  unset %text %newtext %i %len %type | set %text $replace($1-,$chr(32),) | set %len $len(%text) | set %i 0 | set %type lg | :loop
  59. n57=  inc %i | if (%i > %len) { say %newtext | halt } | if ($mid(%i,1,%text) == ) { set %newtext %newtext $+ á | goto loop }
  60. n58=  if (%type == lg) { set %newtext %newtext $+ 15 $+ $mid(%i,1,%text) | set %type dg | goto loop }
  61. n59=  if (%type == dg) { set %newtext %newtext $+ 14 $+ $mid(%i,1,%text) | set %type b | goto loop }
  62. n60=  if (%type == b) { set %newtext %newtext $+ 1 $+ $mid(%i,1,%text) | set %type dg1 | goto loop }
  63. n61=  if (%type == dg1) { set %newtext %newtext $+ 14 $+ $mid(%i,1,%text) | set %type lg | goto loop }
  64. n62=}
  65. n63=/block {
  66. n64=  unset %text %newtext %len %i | set %text $replace($1-,$chr(32),) | set %len $len(%text) | set %i 0 | :loop
  67. n65=  inc %i | if (%i > %len) { set %newtext $replace(%newtext,,$chr(32)) | say %newtext | halt }
  68. n66=  if ($mid(%i,1,%text) == ) { set %newtext %newtext $+ áá | goto loop } | set %newtext %newtext $+ $chr(91) $+ $mid(%i,1,%text) $+ $chr(93) | goto loop
  69. n67=}
  70. n68=/chat /dcc chat $1
  71. n69=/chanstats {
  72. n70=  if ($1 == -e) set %msg echo 5 -a
  73. n71=  if ($1 == -c) set %msg msg #
  74. n72=  if ($1 == -w) { window @áChanneláStatsá@ 100 100 290 100 | set %msg echo 5 @áChanneláStatsá@ }
  75. n73=  %msg _____________________________________
  76. n74=  %msg Channel stats : # < $+ $nick(0,#) total>
  77. n75=  %msg OPs : $opnick(0,#) < $+ $percent($opnick(0,#),$nick(0,#)) $+ $chr(37) $+ >áááá|| NonOps : $nopnick(0,#) < $+ $percent($nopnick(0,#),$nick(0,#)) $+ $chr(37) $+ >
  78. n76=  %msg Voice'd : $vnick(0,#) < $+ $percent($vnick(0,#),$nick(0,#)) $+ $chr(37) $+ >á|| NonVoice : $nvnick(0,#) < $+ $percent($nvnick(0,#),$nick(0,#)) $+ $chr(37) $+ >
  79. n77=  %msg »»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
  80. n78=}
  81. n79=/clock {
  82. n80=  set %hrs $left(2,$time) 
  83. n81=  if ($chr(58) isin %hrs) { set %hrs $left(1,%hrs) }
  84. n82=  set %min1 $right(5,$time) 
  85. n83=  set %min2 $remove(%min1,$right(3,%min1)) 
  86. n84=  if (%hrs = 0) { set %hrs 12 | set %add am } 
  87. n85=  if (%hrs > 12) {
  88. n86=    %hrs = %hrs - 12 
  89. n87=    set %add pm
  90. n88=  } 
  91. n89=  else { set %add am }
  92. n90=  return %hrs $+ : $+ %min2 $+ %add 
  93. n91=}
  94. n92=/clock1 {
  95. n93=  set %hrs $left(2,$time) 
  96. n94=  if ($chr(58) isin %hrs) { set %hrs $left(1,%hrs) }
  97. n95=  set %min1 $right(5,$time) 
  98. n96=  set %min2 $remove(%min1,$right(3,%min1)) 
  99. n97=  if (%hrs = 0) { set %hrs 12 | set %add am } 
  100. n98=  if (%hrs > 12) {
  101. n99=    %hrs = %hrs - 12 
  102. n100=    set %add pm
  103. n101=  } 
  104. n102=  else { set %add am }
  105. n103=  return %hrs $+ : $+ %min2 $+ %add $right($time,2) $+ s
  106. n104=}
  107. n105=/clonecheck {
  108. n106=  if ($1 == -e) { set %msg echo 2 -a }
  109. n107=  if ($1 == -c) { set %msg msg # }
  110. n108=  if ($1 == -w) { set %msg aline @áCloneáDetectorá@ | /window -l @áCloneáDetectorá@ 100 0 400 200 arial 12 }
  111. n109=  set %syncstart $ticks
  112. n110=  set %clonechan #
  113. n111=  set %clonenum 0
  114. n112=  set %people $people
  115. n113=  if (%clonechan == $null) { %msg Cannot do clone search when not on a channel | halt }
  116. n114=  %msg Searching for clones on : %clonechan
  117. n115=  set %clonenick 0
  118. n116=  :loop
  119. n117=  inc %clonenick
  120. n118=  if (%clonenick >= $nick(0,%clonechan)) { goto end }
  121. n119=  set %clone1 $nick(%clonenick,%clonechan)
  122. n120=  set %cloneaddress $address($nick(%clonenick,%clonechan),2)
  123. n121=  %clones = %clonenick
  124. n122=  :start
  125. n123=  inc %clones
  126. n124=  if (%clones > $nick(0,%clonechan)) { goto next }
  127. n125=  if ($nick(%clones,%clonechan) !isin %people) { goto start }
  128. n126=  if ($address($nick(%clones,%clonechan),2) == %cloneaddress) { inc %clonenum | set %people $remove(%people,$nick(%clones,%clonechan)) | set %clone1 %clone1 $+ , $nick(%clones,%clonechan) | goto start }
  129. n127=  else { goto start }
  130. n128=  :next
  131. n129=  if (%clone1 == $nick(%clonenick,%clonechan)) goto loop
  132. n130=  else { %msg $token(0,32,%clone1) Clones found on %cloneaddress : %clone1 | goto loop }
  133. n131=  :end
  134. n132=  if (%clonenum == 0) { %msg 0 Clones found on %clonechan }
  135. n133=  set %synctime $ticks
  136. n134=  set %sync [ %synctime - %syncstart ]
  137. n135=  if ($len(%sync) == 4) {
  138. n136=    set %sync-1 $right(%sync,3)
  139. n137=    set %sync-2 $left(%sync,1) $+ . $+ %sync-1 secs
  140. n138=    %msg Finished in %sync-2    
  141. n139=  }
  142. n140=  if ($len(%sync) == 3) {
  143. n141=    set %sync-3 0. $+ %sync secs
  144. n142=    %msg Finished in %sync-3
  145. n143=  }
  146. n144=  if ($len(%sync) == 2) {
  147. n145=    set %sync-3 0.0 $+ %sync secs
  148. n146=    %msg Finished in %sync-3
  149. n147=  }
  150. n148=  if ($len(%sync) == 1) {
  151. n149=    set %sync-3 0.00 $+ %sync secs
  152. n150=    %msg Finished in %sync-3
  153. n151=  }
  154. n152=  unset %clone* | halt
  155. n153=}
  156. n154=/clonejoin {
  157. n155=  if (%clonemsg == halt) halt
  158. n156=  %i = 0
  159. n157=  %nick = $nick
  160. n158=  :begin
  161. n159=  inc %i
  162. n160=  if (%i > $nick(0,$chan)) {
  163. n161=    if (%nick == $nick) { halt }
  164. n162=    if ((%kick-da-clone == on) && ($me isop $chan)) { kick $chan $nick Automatic Clone Removal.  $logo }
  165. n163=    notice $nick Clones Detected -=(2 $+ $1 $+ )=- %nick | echo 5 -a Clones Detected -=(2 $+ $1 $+ )=- %nick | halt
  166. n164=  }
  167. n165=  if ($nick(%i,$chan) == $nick) { goto begin }
  168. n166=  if ($address($nick(%i,$chan),2) == $1) { set %nick %nick $+ , $nick(%i,$chan) | goto begin }
  169. n167=  else { goto begin }
  170. n168=}
  171. n169=/clonenick {
  172. n170=  if ($1 == -e) { set %msg echo 1 -a }
  173. n171=  if ($1 == -c) { set %msg msg # }
  174. n172=  if ($1 == -w) { set %msg aline @áCloneáDetectorá@ | /window -l @áCloneáDetectorá@ 100 0 400 200 arial 12 }
  175. n173=  set %whoclone yes
  176. n174=  who #
  177. n175=  %i = 2
  178. n176=  set %nick $2
  179. n177=  if ($ial($address($2,2),2) == $null) { %msg CloneSearch -=( $+ $2 $+ )=- | %msg 0 Clones found on $address($2,2) | halt }
  180. n178=  :loop
  181. n179=  set %nick %nick $+ , $ial($address($2,2),%i).nick
  182. n180=  inc %i
  183. n181=  if ($ial($address($2,2),%i) == $null) { %msg Clone Search -=( $+ $2 $+ )=- | %msg Clones Found on -=( $+ $address($2,2) $+ )=- %nick | unset %nick }
  184. n182=  else { goto loop }
  185. n183=}
  186. n184=colorchart {
  187. n185=  window @áColoráChartá@ 40 50 550 285
  188. n186=  echo 0 @áColoráChartá@ 0,0áá0,0á 0,1áá 0,1á 0,2á 0,2á 0,3á 0,3á 0,4á 0,4á 0,5 áá0,5á 0,6 á0,6 á0,7 á0,7á 0,8 áá0,8á 0,9 á0,9á 0,10 á0,10á 0,11 áá0,11á 0,12á 0,12á 0,13 á0,13á 0,14áá 0,14á 0,15á 0,15á 
  189. n187=  echo 0 @áColoráChartá@ 1,0áá1,0 á1,1á á1,1 á1,2á 1,2á 1,3á 1,3á 1,4á 1,4á 1,5 áá1,5á 1,6 á1,6á 1,7 á1,7á 1,8 áá1,8á 1,9 á1,9áá1,10 á1,10 á1,11á á1,11á 1,12 á1,12 á1,13 á1,13 á1,14á á1,14á 1,15á 1,15á 
  190. n188=  echo 0 @áColoráChartá@ 2,0 á2,0 á2,1á á2,1á 2,2á 2,2á 2,3á 2,3á 2,4á 2,4á 2,5 áá2,5á 2,6 á2,6á 2,7 á2,7á 2,8áá 2,8á 2,9á 2,9áá2,10 á2,10 á2,11á á2,11á 2,12 á2,12 á2,13á 2,13 á2,14á á2,14á 2,15á 2,15á 
  191. n189=  echo 0 @áColoráChartá@ 3,0 á3,0 á3,1á á3,1á 3,2á 3,2á 3,3á 3,3á 3,4á 3,4á 3,5 áá3,5á 3,6 á3,6á 3,7 á3,7á 3,8áá 3,8á 3,9á 3,9áá3,10 á3,10 á3,11á á3,11á 3,12 á3,12 á3,13á 3,13á 3,14á á3,14á 3,15á 3,15á 
  192. n190=  echo 0 @áColoráChartá@ 4,0 á4,0 á4,1á á4,1 á4,2á 4,2á 4,3á 4,3á 4,4á 4,4á 4,5 áá4,5á 4,6 á4,6á 4,7 á4,7á 4,8áá 4,8á 4,9á 4,9áá4,10 á4,10 á4,11á á4,11á 4,12 á4,12 á4,13á 4,13 á4,14á á4,14á 4,15á 4,15á 
  193. n191=  echo 0 @áColoráChartá@ 5,0 á5,0 á5,1á á5,1á 5,2á 5,2á 5,3 á5,3á 5,4á 5,4á 5,5 áá5,5á 5,6 á5,6á 5,7 á5,7á 5,8áá 5,8á 5,9á 5,9 á5,10 á5,10 á5,11á á5,11á 5,12 á5,12 á5,13á 5,13 á5,14á á5,14á 5,15á 5,15á 
  194. n192=  echo 0 @áColoráChartá@ 6,0 á6,0 á6,1á á6,1 á6,2á 6,2á 6,3 á6,3á 6,4 á6,4á 6,5 áá6,5á 6,6 á6,6á 6,7 á6,7á 6,8áá 6,8á 6,9á 6,9áá6,10 á6,10 á6,11á á6,11á 6,12 á6,12 á6,13á 6,13 á6,14á á6,14á 6,15á 6,15á 
  195. n193=  echo 0 @áColoráChartá@ 7,0 á7,0 á7,1á á7,1á 7,2á 7,2á 7,3 á7,3á 7,4 á7,4á 7,5 áá7,5á 7,6 á7,6á 7,7 á7,7á 7,8áá 7,8á 7,9á 7,9áá7,10 á7,10 á7,11á á7,11á 7,12 á7,12 á7,13á 7,13 á7,14á á7,14á 7,15á 7,15á 
  196. n194=  echo 0 @áColoráChartá@ 8,0 á8,0 á8,1á á8,1á 8,2á 8,2á 8,3 á8,3á 8,4 á8,4á 8,5 áá8,5á 8,6 á8,6á 8,7 á8,7á 8,8áá 8,8á 8,9á 8,9áá8,10 á8,10 á8,11á á8,11á 8,12 á8,12 á8,13á 8,13 á8,14á á8,14á 8,15á 8,15á 
  197. n195=  echo 0 @áColoráChartá@ 9,0 á9,0 á9,1á á9,1 á9,2á 9,2á 9,3 á9,3á 9,4 á9,4á 9,5 áá9,5á 9,6 á9,6á 9,7 á9,7á 9,8áá 9,8á 9,9á 9,9áá9,10 á9,10 á9,11á á9,11á 9,12 á9,12 á9,13á 9,13 á9,14á á9,14á 9,15á 9,15á 
  198. n196=  echo 0 @áColoráChartá@ 10,0 10,0 10,1 10,1 10,2 10,2 10,3 10,3 10,4 10,4 10,5 10,5 10,6 10,6 10,7 10,7 10,8 10,8 10,9 10,9 10,10 10,10 10,11 10,11 10,12 10,12 10,13 10,13 10,14 10,14 10,15 10,15 
  199. n197=  echo 0 @áColoráChartá@ 11,0 11,0 11,1 11,1 11,2 11,2 11,3 11,3 11,4 11,4 11,5 11,5 11,6 11,6 11,7 11,7 11,8 11,8 11,9 11,9 11,10 11,10 11,11 11,11 11,12 11,12 11,13 11,13 11,14 11,14 11,15 11,15 
  200. n198=  echo 0 @áColoráChartá@ 12,0 12,0 12,1 12,1 12,2 12,2 12,3 12,3 12,4 12,4 12,5 12,5 12,6 12,6 12,7 12,7 12,8 12,8 12,9 12,9 12,10 12,10 12,11 12,11 12,12 12,12 12,13 12,13 12,14 12,14 12,15 12,15 
  201. n199=  echo 0 @áColoráChartá@ 13,0 13,0 13,1 13,1 13,2 13,2 13,3 13,3 13,4 13,4 13,5 13,5 13,6 13,6 13,7 13,7 13,8 13,8 13,9 13,9 13,10 13,10 13,11 13,11 13,12 13,12 13,13 13,13 13,14 13,14 13,15 13,15 
  202. n200=  echo 0 @áColoráChartá@ 14,0 14,0 14,1 14,1 14,2 14,2 14,3 14,3 14,4 14,4 14,5 14,5 14,6 14,6 14,7 14,7 14,8 14,8 14,9 14,9 14,10 14,10 14,11 14,11 14,12 14,12 14,13 14,13 14,14 14,14 14,15 14,15 
  203. n201=  echo 0 @áColoráChartá@ 15,0 15,0á15,1á15,1á15,2 15,2 15,3 15,3 15,4 15,4 15,5á15,5 15,6á15,6 15,7á15,7 15,8 15,8 15,9á15,9 15,10á15,10 15,11 15,11 15,12á15,12 15,13á15,13 15,14 15,14 15,15á15,15 
  204. n202=}
  205. n203=/cool {
  206. n204=  unset %text %newtext %i %len | set %text $replace($1-,$chr(32),) | set %color1 $rand(1,7) | set %color2 $rand(8,16)
  207. n205=  set %i 0 | set %len $len(%text) | :loop | inc %i | if (%i > %len) { set %newtext $replace(%newtext,,$chr(32)) | say %newtext | halt }
  208. n206=  if (2 // %i) { set %newtext %newtext $+  $+ %color1 $+ , $+ %color2 $+ $mid(%i,1,%text) | goto loop }
  209. n207=  set %newtext %newtext $+  $+ %color2 $+ , $+ %color1 $+ $mid(%i,1,%text) | goto loop
  210. n208=}
  211. n209=/dalnetcheck {
  212. n210=  if ($right(7,$server) != dal.net) echo 2 -a 0,2Error: Cannot Use DalNet services when not on Dal.Net! 0,2:Error | halt
  213. n211=}
  214. n212=/deop /mode # -ooo $$1 $2 $3
  215. n213=/dwt {
  216. n214=  unset %text %newtext %i %len | set %text $replace($1-,$chr(32),) | set %len $len(%text) | set %i 0 | :loop
  217. n215=  inc %i | if (%i > %len) goto end | if (2 // %i) goto 2 | set %newtext %newtext $+ 2 $+ $mid(%i,1,%text) | goto loop | :2
  218. n216=  set %newtext %newtext $+ 5 $+ $mid(%i,1,%text) | goto loop | :end | set %newtext $replace(%newtext,,$chr(32))
  219. n217=  say %newtext | halt
  220. n218=}
  221. n219=/durate {
  222. n220=  unset %numb %min %hour %day %week
  223. n221=  set %numb $1 | if (%numb < 60) { return %numb $+ s | goto end }
  224. n222=  :minloop | if (%numb >= 10000000) { %numb = %numb - 9999960 | inc %week 16 | inc %day 3 | inc %hour 17 | inc %min 46 | goto minloop }
  225. n223=  if (%numb >= 100000) { %numb = %numb - 99960 | inc %min 46 | inc %hour 3 | inc %day | goto minloop }
  226. n224=  if (%numb >= 10000) { %numb = %numb - 9960 | inc %min 46 | inc %hour 2 | goto minloop }
  227. n225=  if (%numb >= 60) { %numb = %numb - 60 | inc %min | goto minloop } 
  228. n226=  :hourloop | if (%min >= 60) { %min = %min - 60 | inc %hour | goto hourloop }
  229. n227=  :dayloop | if (%hour >= 24) { %hour = %hour - 24 | inc %day | goto dayloop }
  230. n228=  :weekloop | if (%day >= 7) { %day = %day - 7 | inc %week | goto weekloop }
  231. n229=  if (%hour == $null) { return %min $+ m %numb $+ s | goto end }
  232. n230=  if (%day == $null) { return %hour $+ h %min $+ m %numb $+ s | goto end }
  233. n231=  if (%week == $null) { return %day $+ d %hour $+ h %min $+ m %numb $+ s | goto end }
  234. n232=  else { return %week $+ w %day $+ d %hour $+ h %min $+ m %numb $+ s | goto end }
  235. n233=}
  236. n234=/elmer { say $replace($1-,r,w) }
  237. n235=/f2 window -l @Channels@ 200 0 250 200 chanjoin.bio | /loadbuf 1- $+ $lines(chans.txt) @Channels@ chans.txt
  238. n236=/f5 {
  239. n237=  if ($timer(3).com == $null) { echo 2 -s Auto-Join Has Already Occured/Stopped }
  240. n238=  else { echo 2 -s Auto-Join Halted | .timer15 off }
  241. n239=}
  242. n240=/find {
  243. n241=  unset %find*
  244. n242=  if ($1 == $null) { echo 12 -a Error : you must specify a file : /find <filename> | halt }
  245. n243=  if ($2 != $null) { echo 12 -a Error : you can only specify 1 file at a time | halt }
  246. n244=  set %findfile * $+ $1 | set %f-file $1 | if ($chr(46) !isin %findfile) { set %findfile %findfile $+ *.* }
  247. n245=  echo 12 -a Searching for %f-file
  248. n246=  set %findnum $findfile(c:\,%findfile,0) | if (%findnum > 15) { echo 12 -a Cannot Process Request : over 15 matches found ( $+ %findnum in all $+ ) | halt }
  249. n247=  if (%findnum == 0) { echo 12 -a No matches found | halt } | set %findi 0 | :loop | inc %findi
  250. n248=  if (%findi > %findnum) { echo 12 -a Finished searching for %f-file | halt } | echo 2 -a  $+ $chr(35) $+ %findi :5 $findfile(c:\,%findfile,%findi)
  251. n249=  goto loop
  252. n250=}
  253. n251=getmail {
  254. n252=  set %gmailip $$?="Enter your incoming e-mail server:"
  255. n253=  set %mailuser $$?="Enter your user name:"
  256. n254=  set %mailpass $$?="Enter you password:"
  257. n255=  .auser getmail $me
  258. n256=  gmailip %gmailip
  259. n257=}
  260. n258=gmailip {
  261. n259=  .enable #gmaillookup
  262. n260=  echo -a 5-=(2▀\\'5)=- Looking up %gmailip $+ ...
  263. n261=  .dns $1
  264. n262=}
  265. n263=/htmleditor { window -el @áHTMLáEditorá@ html.bio times new roman | aline @áHTMLáEditorá@ <html> | aline @áHTMLáEditorá@ <head> | aline @áHTMLáEditorá@ <title>Created With BioWar</title> | aline @áHTMLáEditorá@ </head> | aline @áHTMLáEditorá@ <body> }
  266. n264=/idlecheck { 
  267. n265=  if (%auto-idle == on) {
  268. n266=    if ($idle > %idleafter) { set %popup.LoggingOn/PagerOn ñ Logging ON / Pager ON | set %popup.awayback Back | timer11 off | set %pager on | set %awayloggin on | set %reason Auto-Away after Idle for $duration($idle) | awayscript }
  269. n267=  }
  270. n268=}
  271. n269=/j /join #$$1 | set %jt $ctime
  272. n270=/join /join #$$1 | set %jt $ctime
  273. n271=/k /kick # $$1
  274. n272=/logo return 5-=(2▀io\\'ar5)=-
  275. n273=/logo1 return 2-=(5▀io\\'ar2)=-
  276. n274=/logo2 return -=(▀io\\'ar)=-
  277. n275=/massdeoppro {
  278. n276=  if (%mdeopvar1 >= 2) {
  279. n277=    if ($me isop $chan) { mode $1 -o $2 | msg $1 Mass Deop Protection }
  280. n278=    else { echo -a Mass Deop Detected by $2 on $1 }
  281. n279=  }
  282. n280=}
  283. n281=/moveclock {
  284. n282=  window -l @Clock@  0 0 290 10 clock.bio [ times new roman [ 54 ] ]
  285. n283=  .timer5078 0 1 moveclock1
  286. n284=  .timer5079 0 1 moveclock1 -1
  287. n285=  moveclock1
  288. n286=}
  289. n287=/mmiddir return %mididir
  290. n288=/wdir return %wavdir
  291. n289=/moveclock1 {
  292. n290=  if ($1 == -1) { if (@Clock@ !isin $active) { window -c @Clock@ | .timer5078 off | .Timer5079 off | halt } }
  293. n291=  clear @Clock@ | aline @Clock@ $Clock1
  294. n292=  halt
  295. n293=}
  296. n294=/notaway {
  297. n295=  %at = $ctime - %awaystart
  298. n296=  if (%awayloggin == on) { /window -l @áLogsá@ 100 0 400 300 | if ($exists(logs.txt)) { /loadbuf 1- $+ $lines(logs.txt) @áLogsá@ logs.txt } | else { /aline @áLogsá@ You did not Get any Messages } }
  299. n297=  ame is 5back ñ2 $+ %reason $+ ñ Was away for ñ2 $+ $duration(%at) $logo
  300. n298=  set %awa1 N
  301. n299=  unset %reason %awaystart %at %pager %awayloggin
  302. n300=  .timer10 off | .remove logs.txt
  303. n301=  if (%auto-idle == on) { .timer11 0 1 /idlecheck | .timer12 0 1 titleidle }
  304. n302=}
  305. n303=/op /mode # +ooo $$1 $2 $3
  306. n304=/opnotice {
  307. n305=  if ($left(1,$active) != $chr(35)) { echo 2 -a 0,2Error: Cannot Use Opnotice, not on a channel 0,2:Error }
  308. n306=  else {
  309. n307=    set %numops $opnick(0,#)
  310. n308=    set %i 0    
  311. n309=    :loop
  312. n310=    inc %i
  313. n311=    if (%i > %numops) { echo 1 -a -> Ops # : $1- | halt }
  314. n312=    if ($opnick(%i,#) == $me) { goto loop }
  315. n313=    .notice $opnick(%i,#) 12@2 $+ # $+ : $1-
  316. n314=    goto loop
  317. n315=  }
  318. n316=}
  319. n317=/p /part #
  320. n318=/people {
  321. n319=  if ($1 != $null) { goto next }
  322. n320=  unset %peopleinchan | set %numpeople 0 | :loop | inc %numpeople | if (%numpeople > $nick(0,#)) { return %peopleinchan }
  323. n321=  set %peopleinchan %peopleinchan $nick(%numpeople,#) | goto loop
  324. n322=  :next | unset %peopleinchan | set %numpeople 0 | :loop1 | inc %numpeople | if (%numpeople > $nick(0,$1)) { return %peopleinchan }
  325. n323=  set %peopleinchan %peopleinchan $nick(%numpeople,$1) | goto loop1
  326. n324=}
  327. n325=/percent {
  328. n326=  %a = $1 | %b = $2 | %a = %a * 1000 | %a = %a / %b
  329. n327=  %l = $left(%a,2) | if ($len(%a) == 4) { %l = $left(%a,3) } | %r = $right(%a,1) | return %l $+ . $+ %r
  330. n328=}
  331. n329=/ping /ctcp $$1 ping
  332. n330=/pl {
  333. n331=  unset %text %newtext %left %right %vowels %numwords
  334. n332=  set %vowels a e i o u
  335. n333=  %i = 1
  336. n334=  set %text $1-
  337. n335=  set %numwords $token(0,32,$1-)
  338. n336=  :loop
  339. n337=  if (%i > %numwords) { say %newtext | halt }
  340. n338=  set %path $ [ $+ [ %i ] ]
  341. n339=  set %left $remove(%path,$left(1,%path))
  342. n340=  if ($len(%path) == 1) { set %newtext %newtext %path | inc %i | goto loop }
  343. n341=  if ($left(1,%path) isin %vowels) { set %newtext %newtext %path $+ ay | inc %i | goto loop }
  344. n342=  else { set %right $left(1,%path) $+ ay | set %newtext %newtext %left $+ %right | inc %i | goto loop }
  345. n343=}
  346. n344=/q /query $$1
  347. n345=rawchat .raw privmsg $me :DCC CHAT CHAT $1 $2 $+ 
  348. n346=/s /sound $$1.wav < $$1.wav >
  349. n347=/send /dcc send $1 $2
  350. n348=/size {
  351. n349=  unset %len | set %size $lof($1-) | set %len $len(%size)
  352. n350=  if (%len > 6) {
  353. n351=    set %right1 $right(%size,6)
  354. n352=    set %right $remove(%right1,$right(%right1,3))
  355. n353=    set %left $remove(%size,%right1)
  356. n354=    return %left $+ . $+ %right $+ megs | halt
  357. n355=  }
  358. n356=  if (%len > 3) {
  359. n357=    set %right $right(%size,3) | set %left $remove(%size,%right)
  360. n358=    return %left $+ . $+ %right $+ kb | halt
  361. n359=  }
  362. n360=  else { return %size bytes }
  363. n361=}
  364. n362=/textfloodpro {
  365. n363=  unset %tempfloodread1
  366. n364=  if ($2 == $null) { halt }
  367. n365=  if (%chanfloodpro == on) {
  368. n366=    set %tempflood12 $2 [ $+ [ num ] ]
  369. n367=    set %tempfloodread $readini flood.ini $2 $1
  370. n368=    if (%tempfloodread == $null) { writeini flood.ini $2 $1 $ctime | writeini flood.ini %tempflood12 $1 1 | halt }
  371. n369=    set %tempfloodread1 $readini flood.ini %tempflood12 $1
  372. n370=    %tempflood = $ctime - %tempfloodread
  373. n371=    if (%tempflood >= 3) { remini flood.ini $2 $1 | writeini flood.ini $2 $1 $ctime | remini flood.ini %tempflood12 $1 | writeini flood.ini %tempflood12 $1 1 | halt }
  374. n372=    if ((%tempflood <= 2) && (%tempfloodread1 >= 8)) {
  375. n373=      if ($me isop $2) { ban -u30 $2 $1 2 | kick $2 $1 $logo Text Flood Protection, 30 second ban. | goto rem }
  376. n374=      else { .ignore -u30 $1 2 | .notice $1 Text Flood Detected, 30 second ignore | echo 12 -a Text Flood Detected : $1 with 8 lines in under 2 seconds. (30sec ignore) | goto rem }
  377. n375=    }
  378. n376=    inc %tempfloodread1 | writeini flood.ini %tempflood12 $1 %tempfloodread1 | halt
  379. n377=    :rem | remini flood.ini $2 $1 | remini flood.ini %tempflood12 $1 | halt
  380. n378=  }
  381. n379=}
  382. n380=/timofday {
  383. n381=  if ($chr(58) isin $left(2,$time)) {
  384. n382=    if ($left(1,$time) isnum 0-3) { return Evening | halt }
  385. n383=    if ($left(1,$time) isnum 4-9) { return Morning | halt }
  386. n384=  }
  387. n385=  else {
  388. n386=    if ($left(2,$time) == 10) { return Morning | halt }
  389. n387=    if ($left(2,$time) isnum 11-15) { return Afternoon | halt }
  390. n388=    if ($left(2,$time) isnum 16-18) { return Day | halt }
  391. n389=    if ($left(2,$time) isnum 19-24) { return Evening | halt }
  392. n390=  }
  393. n391=}
  394. n392=/title1 { set %itime $duration($idle) | titlebar It is Currently $clock [Away/ $+ %awa1 $+ ] [Online/ $+ $durate($online) $+ ] [Idle/ $+ $durate($idle) $+ ] $logo2 }
  395. n393=/undernetcheck {
  396. n394=  if ($right(12,$server) != Undernet.Org) echo 2 -a 0,2Error: Cannot Use X/W when not on Undernet! 0,2:Error
  397. n395=  if ((W !ison #) && (X !ison #)) echo 2 -a 0,2Error: cannot Use X/W when not on the channel! 0,2:Error
  398. n396=}
  399. n397=/uv /mode # -vvv $$1 $2 $3
  400. n398=/v /mode # +vvv $$1 $2 $3
  401. n399=/votestart {
  402. n400=  if ($1 == -y) {
  403. n401=    set %voteron yes
  404. n402=    set %vote-type y
  405. n403=    set %vote-topic $$?="Enter a Yes/No Question to vote on:"
  406. n404=    set %vote-channel $$?="Enter Channel to vote in:"
  407. n405=    :looper | if ($me !ison %vote-channel) { set %vote-channel $$?="Must be on channel! Enter channel :" | goto looper }
  408. n406=    set %vote-time $$?="How many seconds can they have to vote?"
  409. n407=    msg %vote-channel $logo Voter, voting topic : %vote-topic áòtype /ctcp $me Vote yes (to vote yes on the subject)ò áòtype /ctcp $me Vote no (to vote no)ò You have $duration(%vote-time) to vote.
  410. n408=    .timer121 1 %vote-time voteend
  411. n409=    set %vote-people $people(%vote-channel)
  412. n410=  }
  413. n411=  if ($1 == -r) {
  414. n412=    set %voteron yes
  415. n413=    set %vote-type r
  416. n414=    set %vote-topic $$?="Enter a Question to vote on:"
  417. n415=    set %vote-answer1 $$?="Enter The First Answer:"
  418. n416=    set %vote-answer2 $$?="Enter The Second Answer:"
  419. n417=    set %vote-answer3 $$?="Enter The Thrird Answer:"
  420. n418=    set %vote-channel $$?="Enter a channel to vote in:"
  421. n419=    :looper | if ($me !ison %vote-channel) { set %vote-channel $$?="Must be on channel! Enter channel :" | goto looper }
  422. n420=    set %vote-time $$?="How many seconds can they have to vote?"
  423. n421=    msg %vote-channel $logo Voter, voting topic : %vote-topic áòtype /ctcp $me Vote 1 (to vote on the answer : %vote-answer1 $+ )ò áòtype /ctcp $me Vote 1 (to vote on the answer : %vote-answer2 $+ )ò áòtype /ctcp $me Vote 3 (to vote on the answer : %vote-answer3 $+ )ò You have $duration(%vote-time) to vote.
  424. n422=    .timer121 1 %vote-time voteend
  425. n423=    set %vote-people $people(%vote-channel)
  426. n424=  }
  427. n425=}
  428. n426=/voteend {
  429. n427=  /rlevel 2
  430. n428=  set %vote-result-ok yes
  431. n429=  .msg %vote-channel $logo Voter, results are in! Type /ctcp $me Vote results (to view the results of the voting) You have 30 seconds to view
  432. n430=  .timer122 1 60 unset %vote*
  433. n431=}
  434. n432=/w /whois $$1
  435.