Jump to content

!trace script (version 2.0) <Works in PRS and in GUS!>


SanZoR

Recommended Posts

Posted

This is new version of my old trace script, and this one works better than old one :) So update your current trace script to this.

on *:SIGNAL:mta.command:{ 
  var %a = $iif((!$4),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) 
  if ($3 == !lookup) || ($3 == !trace) || ($3 == !location) || ($3 == !tr) { 
  dns.lookup $1 %a 
} 
alias dns.lookup { 
  set %dns.lookup $1 $2 
  if (!$sock(dns.lookup $+ $mta.ip($1,$2))) sockopen dns.lookup $+ $mta.ip($1,$2) dnsstuff.sytes.net 80 
 } 
on *:SOCKOPEN:dns.lookup*:{ 
  tokenize 32 %dns.lookup 
  if ($sockerr > 0) { 
    sockclose $sockname 
    mta.text $1 Location: 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: dnsstuff.sytes.net 
    sockwrite $sockname $crlf 
  } 
} 
on *:SOCKCLOSE:dns.lookup*:{ 
  unset %tr.* 
} 
on *:SOCKREAD:dns.lookup*:{ 
  var %t 
  sockread %t 
  if (Location isin %t) { 
    tokenize 32 %dns.lookup 
    mta.text $1 $mta.nick($1,$2) $+ 's Location: $gettok(%t,2-,58) 
  } 
} 
on *:SIGNAL:mta.connect:{ 
mta.text $1 Trace script connected! 
} 
  

Works on PRS and GUS.

Have fun! 8)

Posted
This is new version of my old trace script

oooowww yeeahhh.. sure

Let's play a game, it's called find the difference: your script and mine viewtopic.php?f=30&t=18961 I've found 2, you've changed the website and alias names. Cool

i've noticed that nearly every month somebody is reposting my trace script as their :( C'mon, if you're saying that you've written it how come it's edential with mine? there are 352623646346 different ways of writing a trace script if you really know what you're doing

also, 'unset %tr.*' pal, you don't use any globals with %tr prefix.. i used %tr.* before cause i really had globals like %tr.server %tr.player etc. You could at least remove that if you dont what that means, it's not such a needed line

Works on PRS and GUS.

If really it doesn't depend on PRS or GUS anyhow, it's standalone one. You should have known if you've written it yourself

Posted
I have edited your to make this.

But im 100% this is better than yours. Not in scripting, but in trace yes.

What's the difference if they both return the same thing?

Posted
This is new version of my old trace script

oooowww yeeahhh.. sure

Let's play a game, it's called find the difference: your script and mine viewtopic.php?f=30&t=18961 I've found 2, you've changed the website and alias names. Cool

i've noticed that nearly every month somebody is reposting my trace script as their :( C'mon, if you're saying that you've written it how come it's edential with mine? there are 352623646346 different ways of writing a trace script if you really know what you're doing

also, 'unset %tr.*' pal, you don't use any globals with %tr prefix.. i used %tr.* before cause i really had globals like %tr.server %tr.player etc. You could at least remove that if you dont what that means, it's not such a needed line

Works on PRS and GUS.

If really it doesn't depend on PRS or GUS anyhow, it's standalone one. You should have known if you've written it yourself

Right! :(

I have edited your to make this.

But im 100% this is better than yours. Not in scripting, but in trace yes.

If you are a good scripter write an own script and dont edit someone's script! :idea:

I havent said i am :?

Posted
It tells the city right 5% of time.

For me, it returns city very often. some 9/10 of lookups, it shows also city.

And with your script, never :roll:

Posted
It tells the city right 5% of time.

For me, it returns city very often. some 9/10 of lookups, it shows also city.

And with your script, never :roll:

wow..

This is new version of my old trace script, and this one works better than old one So update your current trace script to this.

orly? if you edited someone elses script at least mention their name somewhere if cba to ask permission to modify their script

Posted
It tells the city right 5% of time.

For me, it returns city very often. some 9/10 of lookups, it shows also city.

And with your script, never :roll:

wow..

This is new version of my old trace script, and this one works better than old one So update your current trace script to this.

orly? if you edited someone elses script at least mention their name somewhere if cba to ask permission to modify their script

see also this what i wrote before it:

I have edited your to make this.
Posted

Oh, and also i just learned something about sockets, and now im gonna make whole thing at myself :)

If i make it woring, then you guys dont have anything against me, ok? :lol:

However, im currently on it, almost done. :roll:

Posted
There is no chance to edit your post anymore, i donno why... :|

you can't edit posts anymore unless it's your last one.. and that's not an excuse to write double posts (afaik it's against the rules)

  • Recently Browsing   0 members

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