raulrobi Posted May 1, 2010 Posted May 1, 2010 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)
Aibo Posted May 1, 2010 Posted May 1, 2010 it's a mIRC script for MTA:mA, it's not Lua and it wont work with MTA 1.0 and it's not sanzor's script. ?
Aibo Posted May 1, 2010 Posted May 1, 2010 using callRemote to send an IP address to a geoIP page which returns JSON with location data. for example ?
robhol Posted May 1, 2010 Posted May 1, 2010 Or get it from the admin panel. Those 250-something xml files shouldn't be necessary to use in more than one resource. Do NOT PM ME for help unless invited. - New MTA Script Editor Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now