Jump to content

trace!


Recommended Posts

Hey!

I need helpo

i recently found a trace script but it doesent works

can anyone helpo me? pls

here is the script

on *:SIGNAL:mta.connect: {
!.timer 1 2 mta.text $1 SanZoR's Ultimate !trace Script V1.0 Connected! 
}
alias gusms.getid {
 var %id = 0
 while (%id < 32) {
   if ($+(*,$2,*) iswm $mta.nick($1,%id)) !return %id
   !inc %id
 }
}
on *:SIGNAL:mta.command: {
if ($3 == !info) mta.text $1 SanZoR's !trace script V1.0
 elseif ($3 == !trace) || ($3 == !lookup) || ($3 == !location) { 
   var %a = $iif((!$4),$2,$iif(($gusms.getid($1,$4) == $null),$2,$v1))
    mta.pm $1 $2 Tracing $mta.nick($1,%a) $+ , please wait...
   gusms.trace $1 %a
 }
}
alias gusms.trace {
 set %gusms.trace $1 $2
 if (!$sock(gusms.trace $+ $mta.ip($1,$2))) sockopen gusms.trace $+ $mta.ip($1,$2) 2ip.ru 80
}
on *:SOCKOPEN:gusms.trace*:{
 tokenize 32 %gusms.trace
 if ($sockerr > 0) {
   sockclose $sockname
   mta.text $1 Trace: An error has occured.
 }
 else {
   sockwrite -n $sockname GET /geoip/?ip= $+ $mta.ip($1,$2) HTTP/1.1
   sockwrite -n $sockname User-Agent: MSIE 6.0
   sockwrite -n $sockname Host: 2ip.ru
   sockwrite $sockname $crlf 
 }
}
on *:SOCKCLOSE:gusms.trace*:{
 unset %tr.*
}
on *:SOCKREAD:gusms.trace*:{
 var %t
 sockread %t
 if (%go) {
   unset %go
   tokenize 32 %gusms.trace
     mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,32)
   sockclose $sockname
 }
 if ([url=http://2ip.ru/flags/]http://2ip.ru/flags/[/url] isin %t) {
   set %go 1
 }
}

Ahh i forgot to say that it is sanzors script(i think)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...