Jump to content

need help with trace


Danboi

Recommended Posts

for some strange reason this trace script works on prs but only with me and one or 2 others, but if i tried it on others then it wont come up at all, this is for prs 1.3 i hope? is there any traces that work ???

 on *:SIGNAL:mta.command:{ 
      var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)) 
      elseif (%a == -1) mta.pm $1 $2 Error - Absent ID 
      if ($3 == !trace) do.trace $1 %a 
    } 
    alias do.trace { 
      set %do.trace $1 $2 
      if (!$sock(do.trace $+ $mta.ip($1,$2))) sockopen do.trace $+ $mta.ip($1,$2) trace.servegame.com 80 
    } 
    on *:SOCKOPEN:do.trace*:{ 
      tokenize 32 %do.trace 
      if ($sockerr > 0) { 
        sockclose $sockname 
        mta.text $1 Trace: An error has occured. 
      } 
      else { 
        sockwrite -n $sockname GET /tools/whois.ch?&ip= $+ $mta.ip($1,$2) $+ &display=whois HTTP/1.1 
        sockwrite -n $sockname User-Agent: MSIE 6.0 
        sockwrite -n $sockname Host: trace.servegame.com 
        sockwrite $sockname $crlf 
      } 
    } 
    on *:SOCKCLOSE:do.trace*:{ 
      unset %tr.* 
    } 
    on *:SOCKREAD:do.trace*:{ 
      var %t 
      sockread %t 
      if (Location isin %t) { 
        tokenize 32 %do.trace 
        mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,58) 
      } 
    } 

Link to comment

Theres no -1 in prs and also u cant start with an elseif.

try something like this for ur command alias:

on *:SIGNAL:mta.command:{ 
  var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)) 
  if ($3 == !trace)  
    if ($prs.level($1,$2) == 0) insuf $1 $2 
    else do.trace $1 %a 
  } 
} 

Link to comment
lil toady i tried your one and it only gives out the country with sanzors one it comes up with the country and location? if you can edit it for the location aswell i would happily have yours

id sooner have it working showing the country, than a broken one :)

ive used this since toady made it and its always been fine... for like about 6 months now.

if u want to really know their location u could always ask them :mrgreen:

Link to comment
  • Recently Browsing   0 members

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