Advertisement
_MM_IKKE

AFK.ini

Nov 21st, 2018
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 12.43 KB | None | 0 0
  1. [script]
  2. n0=on 500,543:TEXT:*:#: { halt }
  3. n1=on *:START: {
  4. n2=  set %afk 0
  5. n3=  set %attempt 1
  6. n4=  set %time 0
  7. n5=  set %ig 0
  8. n6=}
  9. n7=on *:LOAD: {
  10. n8=  set %afk 0
  11. n9=  set %attempt 1
  12. n10=  set %time 0
  13. n11=  set %ig 0
  14. n12=  echo -at Loaded AFK script
  15. n13=  echo -at No new variables added, all are global
  16. n14=}
  17. n15=on *:UNLOAD: {
  18. n16=  unset %afknicks
  19. n17=  unset %afk
  20. n18=  unset %attempt
  21. n19=  unset %time
  22. n20=  unset %ig
  23. n21=  echo -at Unloaded AFK script
  24. n22=  echo -at Unset afknicks, attempt, time, ig
  25. n23=}
  26. n24=on *:TEXT:*ikke*:#: {
  27. n25=
  28. n26=  if ($me == %owner && !$mybots($nick)) { inc %saidmyname }
  29. n27=
  30. n28=  if (kikkelinkivittaja !isin $1-) {
  31. n29=
  32. n30=    if (%afk == 1 && $me == %owner) {
  33. n31=      if (%ig == 0 && $nick isin $read(lists\bots.txt,w, $nick)) {
  34. n32=        if ($strip($1) == %owner || $strip($1) == [MM]IKKE) { halt }
  35. n33=        elseif ($1 isin $read(lists\cmdlist.txt,w,$1 $+ *)) { halt }
  36. n34=        elseif ($strip($2) == %owner || $2 == [MM]IKKE) { halt }  
  37. n35=        elseif (($strip($3) == %owner || $strip($3) == [MM]IKKE) && $chan == #ugp.echo) { halt }
  38. n36=        elseif ($strip($2) == [IRC][MM]IKKE || $strip($2) == [IRC] $+ %owner) { halt }
  39. n37=        elseif ($strip($2) == [MM]IKKE:) { halt }        
  40. n38=        elseif ($chan == #DDDM && $strip($3) == $me $+ :) { halt }
  41. n39=        elseif ($mybots($strip($1))) { halt }
  42. n40=        elseif ($mybots($strip($2))) { halt }
  43. n41=        elseif ($strip($3) == killed && $strip($4) == [MM]IKKE. && $chan == #ugp.echo) { halt }
  44. n42=        elseif ($strip($7-8) == "IKKE's home") { halt }
  45. n43=        ;elseif ($4 == ikke, && $strip($1) == Admin-Chat:) { halt }
  46. n44=        elseif ($1 == !ikkecmds || $1 == !ikkecommands) { halt }  
  47. n45=        elseif ($strip($1-3) == This map is) { halt }
  48. n46=        elseif ($2-3 == IRC admin && $4 == $me $+ :) { halt }
  49. n47=        else {
  50. n48=          if ($4-5 == has died.) { halt }
  51. n49=          elseif ($4-5 == has killed) { halt }
  52. n50=          else {
  53. n51=            if ($strip($2) != -Server- && $strip($1) == Admin-Chat && ikke, !isin $3- && $3 != (IRC):) {
  54. n52=              window -m @NickAlert
  55. n53=              beep
  56. n54=              aline @NickAlert 0,0......2 $2 1,0tried to contact you, saying: 4 $5- 1,0, at7 $time 1in13 $chan
  57. n55=            }
  58. n56=            elseif ($jSBots($nick)) {
  59. n57=              window -m @NickAlert
  60. n58=              beep
  61. n59=              aline @NickAlert 0,0......2 $strip($2) 1,0tried to contact you, saying: 4 $3- 1,0, at7 $time 1in13 $chan
  62. n60=            }
  63. n61=            elseif ($chan == #DDDM) {
  64. n62=              window -m @NickAlert
  65. n63=              beep
  66. n64=              aline @NickAlert 0,0......2 $strip($3) 1,0tried to contact you, saying: 4 $strip($4-) 1,0, at7 $time 1in13 $chan
  67. n65=            }
  68. n66=            elseif ($UGPBots($nick)) {
  69. n67=              if ($strip($1-2) == Admin Chat:) {
  70. n68=                window -m @NickAlert
  71. n69=                beep
  72. n70=                aline @NickAlert 0,0......2 $strip($3) 1,0tried to contact you, saying: 4 $4- 1,0, at7 $time 1in13 $chan
  73. n71=              }
  74. n72=              else {
  75. n73=                window -m @NickAlert
  76. n74=                beep
  77. n75=                aline @NickAlert 0,0......2 $strip($2) 1,0tried to contact you, saying: 4 $3- 1,0, at7 $time 1in13 $chan
  78. n76=              }
  79. n77=            }
  80. n78=            elseif ($strip($1) == Admin-Chat: && ikke, isin $3- ) { halt }
  81. n79=            elseif ($strip($1) == IRC-PM:) { halt }          
  82. n80=            elseif ($MMBots($nick)) {
  83. n81=              window -m @NickAlert
  84. n82=              beep
  85. n83=              aline @NickAlert 0,0......2 $strip($1-3) 1,0tried to contact you, saying: 4 $strip($4-) 1,0, at7 $time 1in13 $chan  
  86. n84=            }
  87. n85=            else {
  88. n86=              window -m @NickAlert
  89. n87=              beep
  90. n88=              aline @NickAlert 0,0......2 $nick 1,0tried to contact you, saying: 4 $strip($1-) 1,0, at7 $time 1in13 $chan
  91. n89=            }
  92. n90=          }
  93. n91=        }
  94. n92=      }
  95. n93=      else {
  96. n94=        if ($mybots($nick) || $nick isin $read(lists\userbots.txt,w, $nick) || $nick isin $read(lists\bots.txt,w, $nick) || ($chan == #mini-missions && ($1 == !m || $1 == !a))) { halt }
  97. n95=        elseif ($1 == !a && $2 == ikke,) { halt }
  98. n96=        elseif ($1 == !ikkecmds || $1 == !ikkecommands) { halt }
  99. n97=        elseif ($1 isin $read(lists\cmdlist.txt,w,$1 $+ *)) { halt }
  100. n98=        elseif ($chan == #sumo.echo && $jSBots($nick)) { halt }
  101. n99=        elseif ($chan == #DDDM.chat && $NDBots($nick)) { halt }
  102. n100=        else {
  103. n101=          if ($nick !isin %afknicks && $nick !ishop #sa-mp && $nick !isop #sa-mp && $chr(126) isin $nick(#sa-mp , $nick).pnick && $chr(38) isin $nick(#sa-mp , $nick).pnick) {
  104. n102=            .notice $nick I'm currently AFK (since7 $calctime(%time,$time) $+ 1). I will reply as soon as possible (attempt4 %attempt 1to contact2 %owner $+ 1). If it's important, query me.
  105. n103=            beep
  106. n104=            set -e %afknicks %afknicks $nick
  107. n105=          }
  108. n106=          window -m @NickAlert
  109. n107=          aline @NickAlert 11[ %attempt ] 2 $nick 1,0tried to contact you, saying: 4 $1- 1,0, at7 $time 1in13 $chan  
  110. n108=          inc %attempt
  111. n109=        }
  112. n110=      }
  113. n111=    }
  114. n112=    elseif ($me == %owner) {
  115. n113=      if ($mybots($nick) || $nick == %owner || $nick == Global || $1 isin isin $read(lists\cmdlist.txt,w,$1 $+ *)) { halt }
  116. n114=      elseif ($1 isin $read(lists\cmdlist.txt,w,$1 $+ *)) { halt }
  117. n115=      elseif ($MMBots($nick) && $active != $chan && ( $chan == #mini-missions || $chan == #mini-missions.admin )) {
  118. n116=        if ($strip($1) == %owner || $strip($1) == [MM]IKKE || $mybots($strip($1))) { halt }
  119. n117=        elseif ($strip($1) == Admin-Chat) {
  120. n118=          if ($2 != %owner && $2 != [MM]IKKE && !$mybots($2)) {
  121. n119=            echo 2 -st $strip($2) contacted you in $chan  
  122. n120=          }
  123. n121=        }
  124. n122=        elseif ($strip($1-2) == [Admin Chat]) {
  125. n123=          if ($3 != %owner && $3 != [MM]IKKE) {
  126. n124=            echo 2 -st $strip($3) contacted you in $chan  
  127. n125=          }
  128. n126=        }
  129. n127=        elseif ($strip($1) == [TEAM]) {
  130. n128=          if ($2 != %owner && $2 != [MM]IKKE) {
  131. n129=            echo 2 -st $strip($3) contacted you in $chan  
  132. n130=          }
  133. n131=        }
  134. n132=        elseif ($strip($2) == -Server-) {
  135. n133=          if ($2 != %owner && $2 != [MM]IKKE) {
  136. n134=            echo 2 -st $strip($3) contacted you in $chan  
  137. n135=          }
  138. n136=        }
  139. n137=        elseif ($strip($1) == Server:) { halt }
  140. n138=        else {
  141. n139=          echo 2 -at $strip($1) contacted you in $chan
  142. n140=        }
  143. n141=      }
  144. n142=      elseif ($UGPBots($nick) && $active != $chan && $chan == #UGP.echo) {
  145. n143=        if ($strip($2) == %owner || $strip($2) == [MM]IKKE || $mybots($strip($2)) || $strip($2) == [IRC]IKKE3 || $strip($2) == [IRC] $+ %owner) { halt }
  146. n144=        elseif ($strip($1) == Admin-Chat:) {
  147. n145=          if ($2 != %owner && $2 != [MM]IKKE) {
  148. n146=            echo 2 -at $strip($2) contacted you in $chan
  149. n147=            if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $strip($3) contacted you in $chan  }
  150. n148=          }
  151. n149=        }
  152. n150=        elseif ($strip($1-2) == Admin Chat:) {
  153. n151=          if ($3 != %owner && $3 != [MM]IKKE) {
  154. n152=            echo 2 -at $strip($3) contacted you in $chan
  155. n153=            if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $strip($3) contacted you in $chan  }
  156. n154=          }
  157. n155=        }
  158. n156=        elseif ($strip($1) == Server:) { halt }      
  159. n157=        elseif ($1 == !ikkecmds || $1 == !ikkecommands) { halt }
  160. n158=        else {
  161. n159=          echo 2 -at $strip($2) contacted you in $chan
  162. n160=          if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $strip($2) contacted you in $chan  }
  163. n161=        }
  164. n162=      }        
  165. n163=      elseif ($jSBots($nick) && $active != $chan && $chan == #sumo.echo) {
  166. n164=        if ($strip($1-3) == This map is) { halt }
  167. n165=        else {
  168. n166=          echo 2 -at $strip($2) contacted you in $chan
  169. n167=          if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $strip($2) contacted you in $chan  }
  170. n168=        }
  171. n169=      }
  172. n170=      elseif ($NDBots($nick) && $active != $chan && $chan == #DDDM.chat) {
  173. n171=        if ($strip($3-4) != [MM]IKKE has && $strip($2) != [MM]IKKE:) {
  174. n172=          echo 2 -at $strip($2) contacted you in $chan
  175. n173=          if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $strip($2) contacted you in $chan  }
  176. n174=        }
  177. n175=      }
  178. n176=      else {
  179. n177=        if ($active != $chan) {
  180. n178=          if ($1 == !ikkecmds || $1 == !ikkecommands) { halt }
  181. n179=          if ($active == #DDDM.chat || $active == #UGP.echo || $active == #mini-missions || $active == #sumo.echo || $active == #dddm.echo) { echo 2 -st $nick contacted you in $chan  }
  182. n180=          echo 2 -at $nick contacted you in $chan
  183. n181=        }
  184. n182=      }
  185. n183=    }
  186. n184=  }
  187. n185=}
  188. n186=on *:ACTION:*ikke*:#: {
  189. n187=  if ($me == %owner && !$mybots($nick)) { inc %saidmyname }
  190. n188=}
  191. n189=on *:OPEN:?:*: {
  192. n190=  if ($me == %owner && %afk == 1 && !$mybots($nick) && $nick !isin $read(lists\userbots.txt,w, $nick) && $nick !isin $read(lists\bots.txt,w, $nick)) {      
  193. n191=    .msg $nick I'm currently AFK (since7 $calctime(%time,$time) $+ 1). I will reply as soon as possible (attempt4 %attempt 1to contact2 %owner $+ 1). Please wait till I reply to your query
  194. n192=
  195. n193=    window -m @NickAlert  
  196. n194=    beep
  197. n195=    aline @NickAlert 11[ %attempt ] 2 $nick 1tried to contact you, saying: 4 $1- 1, at7 $time 1in 13PM
  198. n196=    inc %attempt    
  199. n197=  }
  200. n198=  elseif ($me == %owner && %afk == 1 && !$mybots($nick)) {      
  201. n199=    window -m @NickAlert
  202. n200=    beep    
  203. n201=    aline @NickAlert 11[ %attempt ] 2 $nick 1tried to contact you, saying: 4 $1- 1, at7 $time 1in 13PM
  204. n202=    inc %attempt        
  205. n203=  }
  206. n204=}
  207. n205=
  208. n206=
  209. n207=
  210. n208=
  211. n209=
  212. n210=
  213. n211=
  214. n212=
  215. n213=
  216. n214=
  217. n215=on *:TEXT:*ikke*:#: {
  218. n216=  if ($me == %owner) {
  219. n217=    if (%afk == 0) {
  220. n218=      ;not AFK
  221. n219=      if ($1 !isin $read(lists\cmdlist.txt,w,$1 $+ *) && $active != $chan && $afk.nick) {
  222. n220=        if ($active == #mini-missions || $active == #sumo.echo || $active == #DDDM || $active == #UGP.echo) {
  223. n221=          echo 2 -ast $afk.nick($chan,$nick,$1-) contacted you in $chan
  224. n222=        }
  225. n223=        else {
  226. n224=          echo 2 -at $afk.nick($chan,$nick,$1-) contacted you in $chan
  227. n225=        }
  228. n226=      }
  229. n227=
  230. n228=    }
  231. n229=    elseif (%ig) {
  232. n230=      ;ig somewhere
  233. n231=      if ($chan != $afk.channel && !$afk.bots($nick)) {
  234. n232=        ;if it's not in the echo channel and not the bots of the server (aka if it's not where I'm playing)
  235. n233=        if ($nick !isin %afknicks && $nick !ishop #sa-mp && $nick !isop #sa-mp && $nick !ishop #help && $nick !isop #help) {
  236. n234=          .notice $nick I'm currently In-Game at $igserver $+ . I will reply as soon as possible.
  237. n235=          set -e %afknicks %afknicks $nick
  238. n236=        }
  239. n237=        window -m @NickAlert
  240. n238=        beep
  241. n239=        aline @NickAlert 11[ %attempt ] 2 $afk.nick($chan,$nick,$1-) tried to contact you, saying: 4 $afk.msg($chan,$nick,$1-) , at7 $time in13 $chan  
  242. n240=      }
  243. n241=    }
  244. n242=    elseif (%afk) {
  245. n243=      ;afk
  246. n244=      if ($nick !isin %afknicks && $nick !ishop #sa-mp && $nick !isop #sa-mp && $nick !ishop #help && $nick !isop #help) {
  247. n245=        .notice $nick I'm currently AFK (since7 $calctime(%time,$time) $+ ). I will reply as soon as possible).
  248. n246=        set -e %afknicks %afknicks $nick
  249. n247=      }
  250. n248=      window -m @NickAlert
  251. n249=      beep
  252. n250=      aline @NickAlert 11[ %attempt ] 2 $afk.nick($chan,$nick,$1-) tried to contact you, saying: 4 $afk.msg($chan,$nick,$1-) , at7 $time in13 $chan  
  253. n251=    }
  254. n252=  }
  255. n253=}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement