Untitled

mIRC Scripting Detected Guest 3 Views Size: 19.36 KB Posted on: Jun 22, 26 @ 10:24 PM
  1. 1alias q {
  2. 2 query $1
  3. 3 unset %kjsjd2
  4. 4 set %kjsjd2 $1
  5. 5 set -u2 %kjsjd1 on
  6. 6 who $1
  7. 7}
  8. 8on *:active:?:{
  9. 9 if (%privadosopen == $query(0)) { halt }
  10. 10 set %privadosopen $query(0)
  11. 11 unset %kjsjd2
  12. 12 set %kjsjd2 $active
  13. 13 set -u3 %kjsjd1 on
  14. 14 whois $active
  15. 15}
  16. 16on *:close:?:{
  17. 17 unset %privadosopen
  18. 18}
  19. 19on *:active:#:{
  20. 20 set %iwho.x $calc($mouse.dx -195)
  21. 21 set %iwho.y $calc($mouse.dy -15)
  22. 22 if (%kjsjd1 == on) { halt }
  23. 23 if (%hhsdq == on) { halt }
  24. 24 if (%hhsdq2 == on) { halt }
  25. 25 if (%hhsdq3 == on) { halt }
  26. 26 unset %webfotoveo
  27. 27 set %webfotoveo2 $chan
  28. 28 set -u7 %hhsdq on
  29. 29 who %webfotoveo2
  30. 30}
  31. 31on *:open:?: {
  32. 32 unset %kjsjd2
  33. 33 set %kjsjd2 $nick
  34. 34 set -u4 %kjsjd1 on
  35. 35 who $nick
  36. 36}
  37. 37on *:join:*: {
  38. 38 if ($nick == $me) {
  39. 39 unset %webfotoveo
  40. 40 set %webfotoveo2 $chan
  41. 41 set -u7 %hhsdq on
  42. 42 who %webfotoveo2
  43. 43 }
  44. 44}
  45. 45raw 311:*: {
  46. 46 if (%kjsjd1 == on) {
  47. 47 if ($left($6,2) == I3) && ($len($6) >= 55) {
  48. 48 MaeMia images.chateagratis.net $+ $gettok($decode( $+ $6 $+ , m),4-,124)
  49. 49 }
  50. 50 }
  51. 51}
  52. 52on *:load: { if (!$isdir(FotoMaton)) mkdir FotoMaton }
  53. 53alias idir return $qt($+($mircdirFotoMaton\,$1))
  54. 54alias maemia {
  55. 55 if (!$1) return
  56. 56 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  57. 57 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdirFotoMaton\
  58. 58 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  59. 59 if (!$isdir(%dir)) mkdir %dir
  60. 60 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 MaeMia.open $qt(%f_fix) | return }
  61. 61 if ($exists(%f)) {
  62. 62 bread $qt(%f) 0 100 &h
  63. 63 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  64. 64 else { .timer $+ $ticks -m 1 50 MaeMia.open $qt(%f) | return }
  65. 65 }
  66. 66 if ($sock(mae_ $+ %n $+ *)) return
  67. 67 var %id = mae_ $+ %n $+ _ $+ $ticks
  68. 68 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  69. 69 sockopen %id %h 80
  70. 70}
  71. 71
  72. 72on *:sockopen:mae_*: {
  73. 73 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  74. 74 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  75. 75 sockwrite -n $sockname Host: $hget($sockname,h)
  76. 76 sockwrite -n $sockname User-Agent: Mozilla/5.0 | sockwrite -n $sockname Connection: close | sockwrite -n $sockname $crlf
  77. 77}
  78. 78
  79. 79on *:sockread:mae_*: {
  80. 80 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  81. 81 if ($hget($sockname,f_ok)) return
  82. 82 :next | sockread -f &d | if ($sockbr) {
  83. 83 var %f = $hget($sockname,f)
  84. 84 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  85. 85 .fwrite -b $sockname &d
  86. 86 if ($file(%f).size < 5000 && !$hget($sockname,db)) {
  87. 87 bread $qt(%f) 0 100 &h | hadd $sockname db 1
  88. 88 var %x = $bvar(&h,1,100).text
  89. 89 if (RIFF isin %x) { hadd $sockname webp 1 }
  90. 90 if (GIF89a isin %x) || (ANIM isin %x) { hadd $sockname anim 1 }
  91. 91 }
  92. 92 goto next
  93. 93 }
  94. 94}
  95. 95
  96. 96on *:sockclose:mae_*: {
  97. 97 if ($fopen($sockname)) .fclose $sockname
  98. 98 if ($hget($sockname)) {
  99. 99 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  100. 100 if (!$hget($sockname,f_ok) && %f && $exists(%f)) {
  101. 101 if (%webp) {
  102. 102 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  103. 103 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  104. 104 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  105. 105 .timerPLANB_ [ $+ [ %t ] ] -m 1 400 if (!$exists(%f_fix)) .run -h $qt($mircdir $+ dwebp.exe) $qt(%f) -o $qt(%f_fix)
  106. 106 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 scid $cid MaeMia.open $unsafe($qt(%f_fix))
  107. 107 .timerREM_ [ $+ [ %t ] ] 1 60 .remove $qt(%f) | .timerREMS_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_st) | .timerREMF_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_fix)
  108. 108 }
  109. 109 else { .timer -m 1 150 scid $cid MaeMia.open $unsafe($qt(%f)) | .timer 1 60 .remove $qt(%f) }
  110. 110 }
  111. 111 hfree $sockname
  112. 112 }
  113. 113}
  114. 114
  115. 115alias MaeMia.open {
  116. 116 var %a = $qt($1-),%b = $calc($pic(%a).width +20),%c = $calc($pic(%a).height +40)
  117. 117 if ($window(@FotoMaton)) window -c @FotoMaton
  118. 118 if (%hhsdq2 == on) {
  119. 119 did -g fotovisorx 1 %a
  120. 120 .unset %hhsdq2
  121. 121 .set -u3 %hhsdq3 on
  122. 122 halt
  123. 123 }
  124. 124 if (%hhsdq2x == on) {
  125. 125 did -g fotovisorx2 1 %a
  126. 126 .unset %hhsdq2x
  127. 127 .set -u3 %hhsdq3 on
  128. 128 halt
  129. 129 }
  130. 130 /background -p %kjsjd2 %a
  131. 131}
  132. 132
  133. 133raw 352:*: {
  134. 134 if (%hhsdq == on) && (%hhsdq2 != on) {
  135. 135 if ($left($9,2) == I3) && ($len($9) >= 35) {
  136. 136 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  137. 137 cline 71 %webfotoveo2 $6
  138. 138 halt
  139. 139 }
  140. 140 halt
  141. 141 }
  142. 142 if (%hhsdq2 == on) && (%hhsdq != on) {
  143. 143 if ($left($9,2) == I3) && ($len($9) >= 35) {
  144. 144 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  145. 145 set %iwho.x $calc($mouse.dx -195)
  146. 146 set %iwho.y $calc($mouse.dy -15)
  147. 147 dialog $iif($dialog(fotovisorx),-x,-m) fotovisorx fotovisorx
  148. 148 Fotovisor
  149. 149 MaeMia images.chateagratis.net $+ $gettok($decode( $+ $9 $+ , m),4-,124)
  150. 150 halt
  151. 151 }
  152. 152 }
  153. 153 if (%hhsdq2x == on) {
  154. 154 if ($left($9,2) == I3) && ($len($9) >= 35) {
  155. 155 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  156. 156 MaeMia images.chateagratis.net $+ $gettok($replace($decode( $+ $9 $+ , m),medium,large),4-,124)
  157. 157 halt
  158. 158 }
  159. 159 }
  160. 160}
  161. 161raw 315:*: {
  162. 162 if (%hhsdq == on) || (%hhsdq3 == on) || (%hhsdq2 == on) || (%hhsdq2x == on) {
  163. 163 halt
  164. 164 }
  165. 165}
  166. 166alias midclick {
  167. 167 unset %uix.clones
  168. 168 set %uix.target $$1
  169. 169 unset %uix.chans
  170. 170 w $$1
  171. 171 check $$1
  172. 172 who $$1 n%tuihsnfdlar
  173. 173}
  174. 174on *:load:{ start.catch.nickselect.timer | if (!$isdir(FotoMaton)) mkdir FotoMaton | .unset %timerfoto }
  175. 175on *:unload:{ .timer.catch.nickselect.for. $+ $cid off | .unset %timerfoto }
  176. 176on *:connect:{ start.catch.nickselect.timer }
  177. 177alias start.catch.nickselect.timer .timer.catch.nickselect.for. $+ $cid -m 0 100 catch.nickselect.timer.alias
  178. 178alias -l catch.nickselect.timer.alias {
  179. 179 if ($chan($active)) {
  180. 180 if (%hhsdq == on) { halt }
  181. 181 if ($snick($active,0) == 1) {
  182. 182 if ($($+(%,last.snick.for.,$cid,.,$active),2) != $snick($active,1)) {
  183. 183 set -u2 %hhsdq2 on
  184. 184 set -u1 %hhsdq off
  185. 185 set %iwho.x $calc($mouse.dx -195)
  186. 186 set %iwho.y $calc($mouse.dy -15)
  187. 187 set %nickdeluservisor $snick($active,1)
  188. 188 set %descadenada $active
  189. 189 ;;who $snick($active,1)
  190. 190 ;;unset %uix.clones
  191. 191 ;;set %uix.target $$snick($active,1)
  192. 192 ;;unset %uix.chans
  193. 193 ;;check $$snick($active,1)
  194. 194 ;;who $$snick($active,1) n%tuihsnfdlar
  195. 195 }
  196. 196 set $+(%,last.snick.for.,$cid,.,$active) $snick($active,1)
  197. 197 }
  198. 198 }
  199. 199}
  200. 200
  201. 201alias Fotovisor {
  202. 202 set -u2 %hhsdq2 on
  203. 203 set %iwho.x $calc($mouse.dx -195)
  204. 204 set %iwho.y $calc($mouse.dy -15)
  205. 205 dialog $iif($dialog(fotovisorx),-v,-m) fotovisorx fotovisorx
  206. 206 ;;dialog -m fotovisorx fotovisorx
  207. 207 dialog -t fotovisorx %nickdeluservisor
  208. 208}
  209. 209
  210. 210dialog fotovisorx {
  211. 211 title "foto"
  212. 212 size %iwho.x %iwho.y 50 42
  213. 213 option dbu
  214. 214 icon 1, 1 1 48 40
  215. 215}
  216. 216
  217. 217on *:dialog:fotovisorx:sclick:1: {
  218. 218 dialog -x fotovisorx
  219. 219 set %iwho.x2 $calc($mouse.dx -200)
  220. 220 set %iwho.y2 $calc($mouse.dy -45)
  221. 221 dialog $iif($dialog(fotovisorx2),-x,-m) fotovisorx2 fotovisorx2
  222. 222 Fotovisor2
  223. 223}
  224. 224
  225. 225on *:dialog:fotovisorx:rclick:1: {
  226. 226 set %nickdecargafoto %nickdeluservisor
  227. 227 var %sancionadorfoto $?!="Quieres Denunciar a %nickdecargafoto por Foto Inadecuada $+ ?"
  228. 228 if (%sancionadorfoto) {
  229. 229 .msg denuncia denuncio %nickdecargafoto Foto Inadecuada.
  230. 230 else {
  231. 231 halt
  232. 232 }
  233. 233 }
  234. 234}
  235. 235
  236. 236on *:dialog:fotovisorx2:rclick:1: {
  237. 237 set %nickdecargafoto %nickdeluservisor
  238. 238 var %sancionadorfoto $?!="Quieres Denunciar a %nickdecargafoto por Foto Inadecuada $+ ?"
  239. 239 if (%sancionadorfoto) {
  240. 240 .msg denuncia denuncio %nickdecargafoto Foto Inadecuada.
  241. 241 else {
  242. 242 halt
  243. 243 }
  244. 244 }
  245. 245}
  246. 246
  247. 247alias Fotovisor2 {
  248. 248 set -u2 %hhsdq2x on
  249. 249 set %iwho.x2 $calc($mouse.dx -200)
  250. 250 set %iwho.y2 $calc($mouse.dy -150)
  251. 251 dialog $iif($dialog(fotovisorx2),-v,-m) fotovisorx2 fotovisorx2
  252. 252 dialog -t fotovisorx2 %nickdeluservisor
  253. 253 who %nickdeluservisor
  254. 254}
  255. 255
  256. 256dialog fotovisorx2 {
  257. 257 title "foto"
  258. 258 size %iwho.x2 %iwho.y2 130 130
  259. 259 option dbu
  260. 260 icon 1, 1 1 128 128
  261. 261}
  262. 262
  263. 263on *:EXIT: {
  264. 264 echo -s * [FotoMaton] Limpiando carpeta de imágenes por cierre...
  265. 265 .remove $qt($mircdirFotoMaton\*.jpg)
  266. 266 .remove $qt($mircdirFotoMaton\*.webp)
  267. 267 .remove $qt($mircdirFotoMaton\*.png)
  268. 268 .remove $qt($mircdirFotoMaton\*.gif)
  269. 269}
  270. 270
  271. 271on *:START: {
  272. 272 if ($isdir($mircdirFotoMaton\)) {
  273. 273 echo -s * [FotoMaton] Vaciando caché de imágenes al iniciar...
  274. 274 .remove $qt($mircdirFotoMaton\*.jpg)
  275. 275 .remove $qt($mircdirFotoMaton\*.webp)
  276. 276 .remove $qt($mircdirFotoMaton\*.png)
  277. 277 .remove $qt($mircdirFotoMaton\*.gif)
  278. 278 }
  279. 279}
  280. 280
  281. 281
  282. 282raw 802:*:{
  283. 283 if ($2 == realnuh) {
  284. 284 set %uix.rident $deltok($gettok($3,2,33),2,64)
  285. 285 }
  286. 286 if ($2 == modes) {
  287. 287 set %uix.modes $3-
  288. 288 }
  289. 289 if ($2 == snomasks) {
  290. 290 set %uix.snomasks $3-
  291. 291 }
  292. 292 if ($2 == nuh) {
  293. 293 set %uix.host $gettok($3,2,64)
  294. 294 }
  295. 295 if ($2 == onchans) {
  296. 296 set %uix.chans $3-
  297. 297 }
  298. 298 if ($2 == meta:score) {
  299. 299 set %uix.score $3-
  300. 300 }
  301. 301 halt
  302. 302}
  303. 303
  304. 304raw 317:*:{
  305. 305 set %uix.online $duration($calc($ctime - $4))
  306. 306 set %uix.idle $duration($3)
  307. 307 set %uix-on $asctime($4,dddd dd/mm/yyyy HH:nn:ss)
  308. 308}
  309. 309
  310. 310raw 354:*:{
  311. 311 if ($3 == $null) {
  312. 312 var %n = $2
  313. 313
  314. 314 if (%n) && (%n != %uix.nick) {
  315. 315 if (!$istok(%uix.clones.list,%n,44)) {
  316. 316 set %uix.clones.list %uix.clones.list $+ %n $+ ,
  317. 317 }
  318. 318 halt
  319. 319 }
  320. 320 halt
  321. 321 }
  322. 322 noop $1
  323. 323 if ($7 == %uix.target) {
  324. 324 set %uix.ident $3
  325. 325 set %uix.ip $4
  326. 326 set %uix.host $5
  327. 327 set %uix.server $6
  328. 328 set %uix.nick $7
  329. 329 set %uix.flags $8
  330. 330 set %uix.salto $9
  331. 331 set %uix.tidle $10
  332. 332 set %uix.account $11
  333. 333 set %uix.name $12-
  334. 334 UIX.parseFlags
  335. 335 unset %uix.clones.list
  336. 336 unset %uix.clones.text
  337. 337 set %uix.getclones 1
  338. 338 who %uix.ip i%n
  339. 339 .timeruixuix -m 1 500 UIX.fromWHO %uix.name
  340. 340 halt
  341. 341 return
  342. 342 }
  343. 343 halt
  344. 344}
  345. 345raw 315:*:{
  346. 346 if (%uix.getclones) {
  347. 347 unset %uix.getclones
  348. 348 var %i = 1
  349. 349 var %total = $numtok(%uix.clones.list,44)
  350. 350 var %txt
  351. 351 if (%total > 0) {
  352. 352 var %txt = Nick usados: $+ $crlf
  353. 353 while (%i <= %total) {
  354. 354 var %n = $gettok(%uix.clones.list,%i,44)
  355. 355 if (%n != %uix.nick) {
  356. 356 var %txt = %txt $+ %n $+ $crlf
  357. 357 }
  358. 358 inc %i
  359. 359 }
  360. 360 }
  361. 361 set %uix.clones.text %txt
  362. 362 if ($dialog(uix_img)) UIX.refresh
  363. 363 if ($dialog(uix_txt)) UIX.refreshTXT
  364. 364 haltdef
  365. 365 }
  366. 366}
  367. 367alias UIX.open {
  368. 368 set %poderio8 $active
  369. 369 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  370. 370 window -a %poderio8
  371. 371 if (!$1-) return
  372. 372 if (!$exists($1-)) return
  373. 373 UIX.close
  374. 374 set %uix.img $1-
  375. 375 dialog -m uix_img uix_img
  376. 376 dialog -t uix_img %uix.nick
  377. 377 did -g uix_img 1 $qt(%uix.img)
  378. 378 var %txt
  379. 379 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  380. 380 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  381. 381 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  382. 382 var %txt = %txt $+ Name: %uix.name $+ $crlf
  383. 383 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  384. 384 var %txt = %txt $+ Host: %uix.host $+ $crlf
  385. 385 var %txt = %txt $+ Server: %uix.server $+ $crlf
  386. 386 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  387. 387 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  388. 388 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  389. 389 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  390. 390 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  391. 391 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  392. 392 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  393. 393 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  394. 394 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  395. 395 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  396. 396 var %txt = %txt $+ Score: %uix.score
  397. 397 did -ra uix_img 2 %txt
  398. 398}
  399. 399
  400. 400alias UIX.openTXT {
  401. 401 set %poderio8 $active
  402. 402 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  403. 403 window -a %poderio8
  404. 404 UIX.close
  405. 405 dialog -m uix_txt uix_txt
  406. 406 dialog -t uix_txt %uix.nick
  407. 407 var %txt
  408. 408 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  409. 409 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  410. 410 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  411. 411 var %txt = %txt $+ Name: %uix.name $+ $crlf
  412. 412 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  413. 413 var %txt = %txt $+ Host: %uix.host $+ $crlf
  414. 414 var %txt = %txt $+ Server: %uix.server $+ $crlf
  415. 415 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  416. 416 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  417. 417 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  418. 418 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  419. 419 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  420. 420 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  421. 421 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  422. 422 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  423. 423 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  424. 424 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  425. 425 var %txt = %txt $+ Score: %uix.score
  426. 426 did -ra uix_txt 1 %txt
  427. 427}
  428. 428alias UIX.close {
  429. 429 if ($dialog(uix_img)) dialog -x uix_img
  430. 430 if ($dialog(uix_txt)) dialog -x uix_txt
  431. 431}
  432. 432dialog uix_img {
  433. 433 title "UserInfo"
  434. 434 size -1 -1 248 400
  435. 435 option dbu resize
  436. 436 icon 1, 1 1 246 210
  437. 437 edit "", 2, 4 215 242 180, multi read autovs vsbar
  438. 438 ;;text "", 2, 4 215 232 90
  439. 439}
  440. 440
  441. 441dialog uix_txt {
  442. 442 title "UserInfo"
  443. 443 size -1 -1 240 150
  444. 444 option dbu resize
  445. 445 edit "", 1, 4 4 232 140, multi read autovs vsbar
  446. 446 ;;text "", 1, 4 4 238 90
  447. 447}
  448. 448alias UIX.refresh {
  449. 449 set %poderio8 $active
  450. 450 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  451. 451 window -a %poderio8
  452. 452 var %txt
  453. 453 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  454. 454 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  455. 455 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  456. 456 var %txt = %txt $+ Name: %uix.name $+ $crlf
  457. 457 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  458. 458 var %txt = %txt $+ Host: %uix.host $+ $crlf
  459. 459 var %txt = %txt $+ Server: %uix.server $+ $crlf
  460. 460 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  461. 461 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  462. 462 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  463. 463 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  464. 464 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  465. 465 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  466. 466 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  467. 467 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  468. 468 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  469. 469 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  470. 470 var %txt = %txt $+ Score: %uix.score
  471. 471 did -ra uix_img 2 %txt
  472. 472}
  473. 473alias UIX.refreshTXT {
  474. 474 set %poderio8 $active
  475. 475 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  476. 476 window -a %poderio8
  477. 477 var %txt
  478. 478 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  479. 479 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  480. 480 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  481. 481 var %txt = %txt $+ Name: %uix.name $+ $crlf
  482. 482 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  483. 483 var %txt = %txt $+ Host: %uix.host $+ $crlf
  484. 484 var %txt = %txt $+ Server: %uix.server $+ $crlf
  485. 485 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  486. 486 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  487. 487 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  488. 488 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  489. 489 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  490. 490 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  491. 491 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  492. 492 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  493. 493 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  494. 494 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  495. 495 var %txt = %txt $+ Score: %uix.score
  496. 496 did -ra uix_txt 1 %txt
  497. 497}
  498. 498
  499. 499alias UIX.fromWHO {
  500. 500 var %raw = $1
  501. 501 var %dec = $decode( $+ %raw $+ , m)
  502. 502 if (($left(%raw,2) != I3) || ($len(%raw) < 35)) {
  503. 503 UIX.openTXT
  504. 504 return
  505. 505 }
  506. 506 var %ruta = $remove($gettok(%dec,4-,124),$chr(32))
  507. 507 if (!%ruta) {
  508. 508 UIX.openTXT
  509. 509 return
  510. 510 }
  511. 511 if (default.png isin %ruta) {
  512. 512 UIX.openTXT
  513. 513 return
  514. 514 }
  515. 515 UIX images.chateagratis.net $+ %ruta
  516. 516}
  517. 517
  518. 518alias UIX {
  519. 519 if (!$1) return
  520. 520 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  521. 521 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdir $+ FotoMaton\
  522. 522 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  523. 523 if (!$isdir(%dir)) mkdir %dir
  524. 524 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 UIX.open $qt(%f_fix) | return }
  525. 525 if ($exists(%f)) {
  526. 526 bread $qt(%f) 0 100 &h
  527. 527 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  528. 528 else { .timer $+ $ticks -m 1 50 UIX.open $qt(%f) | return }
  529. 529 }
  530. 530 if ($sock(uix_ $+ %n $+ *)) return
  531. 531 var %id = uix_ $+ %n $+ _ $+ $ticks
  532. 532 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  533. 533 sockopen %id %h 80
  534. 534}
  535. 535on *:sockopen:uix_*:{
  536. 536 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  537. 537 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  538. 538 sockwrite -n $sockname Host: $hget($sockname,h)
  539. 539 sockwrite -n $sockname User-Agent: Mozilla/5.0
  540. 540 sockwrite -n $sockname Connection: close
  541. 541 sockwrite -n $sockname $crlf
  542. 542}
  543. 543on *:sockread:uix_*:{
  544. 544 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  545. 545 if ($hget($sockname,f_ok)) return
  546. 546 :next
  547. 547 sockread -f &d
  548. 548 if ($sockbr) {
  549. 549 var %f = $hget($sockname,f)
  550. 550 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  551. 551 .fwrite -b $sockname &d
  552. 552 if ($file(%f).size < 5000 && !$hget($sockname,db)) {
  553. 553 bread $qt(%f) 0 100 &h | hadd $sockname db 1
  554. 554 var %x = $bvar(&h,1,100).text
  555. 555 if (RIFF isin %x) { hadd $sockname webp 1 }
  556. 556 if (GIF89a isin %x) || (ANIM isin %x) { hadd $sockname anim 1 }
  557. 557 }
  558. 558 goto next
  559. 559 }
  560. 560}
  561. 561on *:sockclose:uix_*:{
  562. 562 if ($fopen($sockname)) .fclose $sockname
  563. 563 if ($hget($sockname)) {
  564. 564 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  565. 565 if (!$hget($sockname,f_ok) && %f && $exists(%f)) {
  566. 566 if (%webp) {
  567. 567 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  568. 568 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  569. 569 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  570. 570 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 UIX.open $unsafe($qt(%f_fix))
  571. 571 }
  572. 572 else { .timer -m 1 150 UIX.open $unsafe($qt(%f)) }
  573. 573 }
  574. 574 hfree $sockname
  575. 575 }
  576. 576 .timerDEL_ $+ %t -m 1 60000 .remove $qt(%f)
  577. 577}
  578. 578alias UIX.scan {
  579. 579 if (!$1) return
  580. 580 unset %uix.clones
  581. 581 set %uix.target $1
  582. 582 who $1 n%tuihsnfdlar
  583. 583}
  584. 584alias UIX.parseFlags {
  585. 585 if (r isincs %uix.flags) set %uix.reg Registrado
  586. 586 else set %uix.reg No registrado
  587. 587 if (* isincs %uix.flags) set %uix.oper Operador
  588. 588 else set %uix.oper Usuario
  589. 589 if (G isincs %uix.flags) set %uix.away Ausente
  590. 590 else set %uix.away Disponible
  591. 591 if (B isincs %uix.flags) set %uix.bot Bot
  592. 592 else set %uix.bot Normal
  593. 593}
  594. 594
  595. 595
  596. 596on *:dialog:uix_img:rclick:1:{
  597. 597 if (%uix.nick) {
  598. 598 if ($input(¿Seguro que quieres hacer ZLINE a %uix.nick $+ ?, yn,Confirmación) == $true) {
  599. 599 zline %uix.nick 1d Foto Inadecuada.
  600. 600 }
  601. 601 }
  602. 602}
  603. 603
  604. 604on *:dialog:uix_img:dclick:1:{
  605. 605 if (%uix.nick) {
  606. 606 w %uix.nick
  607. 607 }
  608. 608}

Pasta cruda

Comments 0
Login to join the discussion.
  • No comments yet — be the first.
Login to post a comment. Iniciar sesión/Registro
Usamos cookies. Para cumplir con el RGPD en la UE y el Reino Unido, debemos mostrárselas.

Utilizamos cookies y tecnologías similares para mantener este sitio web funcional (incluida la protección contra spam a través de Google reCAPTCHA o Cloudflare Turnstile) y, con su consentimiento, para medir el uso y mostrar anuncios. See Privacy.