/* #################### I and I Scripts for mIRC #################### Script made for Roscoe on EFnet. Triggers: !chkrls moviename !id # Please note: Cinefacts.de changes their server format often so I coded this script to query the Cinefacts.de site. The !chkrls trigger retrieves the database ID number for the movie query be- cause of a 501 server side redirect. The !id trigger queries the Cinefacts.de site using Google.com's query and retreiving the full server side redirect url using the ID number retrieved by the ini- tial !chrls query. This code is very sloppy but it works. Caveat Emptor! This code is quite sloppy but will not leave your computer too vulnerable. I haven't made a flood protrection script as of yet but I may do so in future. Contact me if you have any questions. /Zig ################# Need help? ziggizman@gmail.com ################# */ on *:TEXT:*:#sn00ty:{ if ($window(@url) != @url) { //echo -a alias chkrls works windz } if ($1 == !chkrls) && ( $2- != $null ) { clearkino .notice $nick * Performing search for: $2- checkrelease $2- set %check.chan $chan set %check.nick $nick } if ($1 == !chkrls) && ( $2- == $null ) { //echo -a alias checkrelease works .notice $nick * Error - Use format: !chkrls search string - example !chkrls hackers } if ($1 == !id) && ($2 == $null) { //echo -a alias checkrelease works .notice $nick * Error - Use format: !id id# - example: !id 36945 halt } if ($1 == !id) && ($2 != $remove($abs($2),.,-,/,_,\,>,<,+,=,*,&,%,$,#,@,?,$chr(44))) { //echo -a alias checkrelease works .notice $nick * Error - Use format: !id id# - example: !id 36945 } if ($1 == !id) && ($2 == $remove($abs($2),.,-,/,_,\,>,<,+,=,*,&,%,$,#,@,?,$chr(44))) { //echo -a alias checkrelease works .notice $nick * Retreiving film information set %idno $2 checkid set %check.chan $chan set %check.nick $nick } if ($1 == !cinehelp) { //echo -a alias checkrelease works .notice $nick * To search for a film name in the database use format: !chkrls search string - example !chkrls hackers .notice $nick * To search for specific film information use format: !id id# - example: !id 36945 } } alias checkrelease { if ($1- != $null) { //echo -a alias checkrelease works if ( $sock(checkrelease) ) { SOCKCLOSE checkrelease } sockopen checkrelease www.cinefacts.de 80 sockmark checkrelease $1- } else { echo -a Bitte Releasenamen angeben! } } on *:sockopen:checkrelease: { //echo -a alias checkrelease works if ( $sockerr ) { echo -aec info * checkrelease: Error: $sock($sockname).wsmsg | return } var %s = $gettok($sock($sockname).mark,$+(1,-,$calc($numtok($sock($sockname).mark,46) - 3)),46) var %s = $replace(%s,.,$chr(32),$chr(32),+) var %s = $remove(%s,DTS,UNRATED,German,DVDSCR,XViD,TS,LD,DVDRiP,MD,PROPER,AC3,FS,Line,Dubbed,REPACK,TELESYNC,UNCUT,COMPLETE,PAL,DVDR,iNTERNAL,DL,DiRFiX,SVCD,STV,R5,1999,2000,2001,2002,2003,2004,2005,2006,2007) sockwrite -n $sockname GET /suche/suche.php?name= $+ %s $+ &go.x=0&go.y=0 HTTP/1.0 sockwrite -n $sockname Host: cinefacts.de sockwrite -n $sockname Connection: close sockwrite -n $sockname } on *:sockread:checkrelease: { //echo -a alias checkrelease works var %temp if ( $sockerr ) { echo -aec info * checkrelease: Error: $sock($sockname).wsmsg | return } else { sockread %temp if (**.*.**Produktionsland:* iswm %remp) { set %dls $replace($gettok(%remp,2,$chr(57)),$chr(9),,
,,
,) } if (*landliste* iswm %remp) { set %pls $replace(%remp,$chr(9),,$chr(32),) } } on *:SOCKCLOSE:cinefacts: { set %b $remove($gettok(%pls,3,62),$chr(60) $+ $chr(47) $+ a,) if (%dls == $null) { set %dls N/A } if ($remove($gettok(%pls,3,62),$chr(60) $+ $chr(47) $+ a,) == $null) { set %b N/A } .notice %check.nick film: %cine3 - deutschlandstart: %dls - produktionsland: %b unsett } alias cinefacts { //echo -a alias cinefacts works if ( $sock(cinefacts) ) { SOCKCLOSE cinefacts } sockopen cinefacts www.cinefacts.de 80 sockmark cinefacts } alias alernick { //echo -a alias alernick works .notice %check.nick * Please stand by.... } alias windz { //echo -a alias windz works window @titel 900 100 350 150 window @URL 900 300 350 150 window @kinoinfo 900 700 350 150 } alias clearkino { //echo -a alias clearkino works clear @titel clear @url clear @kinoinfo } alias unsett { //echo -a alias unset works unset %urltitle unset %check.chan unset %check.nick unset %checknick unset %checkchan unset %idno unset %temp unset %check.chan unset %check.nick unset %urltitle unset %cine unset %cine1 unset %cine2 unset %cine3 unset %dls unset %pls unset %a unset %b }