DiZuM Posted March 25, 2007 Share Posted March 25, 2007 Ok, I have just finished my !lookup script (You can run this one with Lil Toady's trace script!) what shows City & Country. That may be usefull, i dont know, but however it works I spent lot of my time to do it working, and it works now... Quite fast too. Ok, there it is: on *:SIGNAL:mta.command:{ var %a = $iif((!$4),$2,$iif($mta.getid($1,* $+ $4 $+ *),$v1,$2)) if ($3 == !lookup) do.lookup $1 %a } alias do.lookup { set %do.lookup $1 $2 if (!$sock(do.lookup $+ $mta.ip($1,$2))) sockopen do.lookup $+ $mta.ip($1,$2) api.hostip.info 80 } on *:SOCKOPEN:do.lookup*:{ tokenize 32 %do.lookup if ($sockerr > 0) { sockclose $sockname mta.text $1 Trace: An error has occured. } else { sockwrite -n $sockname GET /get_html.php?ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 sockwrite -n $sockname User-Agent: MSIE 6.0 sockwrite -n $sockname Host: api.hostip.info sockwrite $sockname $crlf } } on *:SOCKCLOSE:do.lookup*:{ unset %tr.* } on *:SOCKREAD:do.lookup*:{ var %t sockread %t if (Country isin %t) { tokenize 32 %do.lookup mta.text $1 $mta.nick($1,$2) 's Country: $gettok(%t,2-,58)} } elseif (City isin %t) { tokenize 32 %do.lookup mta.text $1 $mta.nick($1,$2) 's City: $gettok(%t,2-,58)} sockclose $sockname } } on *:SIGNAL:mta.command: { if ($3 == !sanzor) { mta.text $1 SanZoR pWnZ 24/7 !!! mta.pm $1 $2 Im sure you know that! } If you want, you can remove that !sanzor script, but i hope you not Btw, that database what this script use, is not very big. It wont shows everyone's City/Country alltime. Sometimes you got unknown city / country. But usually it shows them both right. Thats why i make it working with Lil Toadys !trace script, cause its better to show country. Well... I hope you like it - SanZoR a.k.a DiZuM Link to comment
BetaDevil Posted March 25, 2007 Share Posted March 25, 2007 I see a mistake already by watching it for 5 sec... Link to comment
lil Toady Posted March 25, 2007 Share Posted March 25, 2007 and of course you took my script that i posted in other topic and only changed the func names and put a !sanzor command in (that wont even work..) Link to comment
stylo Posted March 25, 2007 Share Posted March 25, 2007 Guys!! ok its not nice what he've done to yo toady but respect he try's it there are people to who dont even try so forget the wrong thing.. Link to comment
Scooby Posted March 25, 2007 Share Posted March 25, 2007 There wasnt really any need to try tho, it worked fine b4, he just changed a few words and calls it his own. Its not even bug free, it has errors. I know its kinda harsh moaning about it, but imagine if u had sat and wrote this script, spent maybe an hour making it, for the public, only for some1 to rob it, change a few commands then repost it as their own. i know he mentioned toadys name etc, but im sure he wasnt asked. Link to comment
paul527 Posted March 26, 2007 Share Posted March 26, 2007 - SanZoR a.k.a DiZuM SanZor??? I though we banned this idiot. Now he's back stealing scripts of other users! Link to comment
Black Dragon Posted March 26, 2007 Share Posted March 26, 2007 Not only did you evade them bants, but you also had the nerve to violate copyright laws! Shame on thou! Banned and locked. Link to comment
Recommended Posts