Here is a Simple version
Below is a more complex version that you can use the botname, packnumber ,filename etc for more scripting stuff.
And yet another version that logs the NewRelease to a window, then you can click the /msg to get the file.
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)) }
}