Danboi Posted September 12, 2007 Share Posted September 12, 2007 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
Scooby Posted September 13, 2007 Share Posted September 13, 2007 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
Danboi Posted September 13, 2007 Author Share Posted September 13, 2007 cant get no joy with that would u be able to write a trace script that would work for everyone ?? Link to comment
SanZoR Posted September 13, 2007 Share Posted September 13, 2007 Sorry, this version of my trace script is not working anymore. I will fix it later, when i got free time Link to comment
Danboi Posted September 13, 2007 Author Share Posted September 13, 2007 if you know what part is wrong i will fix it for you ? Link to comment
lil Toady Posted September 13, 2007 Share Posted September 13, 2007 Sorry, this version of my trace script is not working anymore.I will fix it later, when i got free time You mean this my script broken by you doesn't work. viewtopic.php?f=30&t=18961 < works Link to comment
Danboi Posted September 13, 2007 Author Share Posted September 13, 2007 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 Link to comment
Scooby Posted September 14, 2007 Share Posted September 14, 2007 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 Link to comment
Danboi Posted September 14, 2007 Author Share Posted September 14, 2007 yer true so i will use lil toadys at least it works Link to comment
Recommended Posts