Welcome to Abandoned-IRC. You can connect via irc.abandoned-irc.net or ipv6.abandoned-irc.net on ports 6667 / 6697 (May 27, 2022) x


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mIRC: ZW Hotlinks
#1
Here is a Simple version
Code:
; Click on the /msg to receive file advertised.
on ^*:HOTLINK:*/msg*:#ZW-CHAT:tokenize 32 $hotline
on *:HOTLINK:*/msg*:#ZW-CHAT:{
  tokenize 32 $hotline
  var %a $strip($1-)
  if (*/msg*Zombie-*xdcc*send* iswm %a) { .echo -a / $+ $remove($gettok(%a,2-,47),$chr(41)) }
}

Below is a more complex version that you can use the botname, packnumber ,filename etc for more scripting stuff.

Code:
; Click on the /msg to receive file advertised.
on ^*:HOTLINK:*/msg*:#ZW-CHAT:tokenize 32 $hotline
on *:HOTLINK:*/msg*:#ZW-CHAT:{
  tokenize 32 $hotline
  var %a $strip($1-)
  if (*/msg*Zombie-*xdcc*send* iswm %a) {
    ; for search responses           Filename $gettok(%a,3,32)
    if ($gettok(%a,9,32) == /msg ) { /msg $gettok(%a,10,32) xdcc send $gettok(%a,13,32) }
    ; New release FORMAT           Filename $gettok(%a,4,32)
    if ($gettok(%a,12,32) == /msg ) { /msg $gettok(%a,13,32) xdcc send $gettok(%a,16,32) }
  }
}

And yet another version that logs the NewRelease to a window, then you can click the /msg to get the file.

Code:
On *:Start:{
;on 1:CONNECT:{ /window -w2 @nr_log }
On *:Start:{ /window -w2 @nr_log }
on *:text:*elease*:#ZW-CHAT: {
  if ([ZOMBIE]-Homer != $nick) halt )
  tokenize 32 $1-
  var %a $strip($1-)
  if (*Top Gets of the last* iswm %a ) { halt }
  else .echo @nr_log $4-
}
on ^*:HOTLINK:*/msg*:@nr_log:tokenize 32 $hotline
on *:HOTLINK:*/msg*:@nr_log:{
  tokenize 32 $hotline
  var %a $strip($1-)
  if (*/msg*Zombie-*xdcc*send* iswm %a) { /msg $remove($gettok(%a,2-,47),msg,$chr(41)) }
}
[-] The following 1 user says Thank You to TheMorgue for this post:
  • radar1213
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)