mIRC Home    About    Download    Register    News    Help

Print Thread
#121390 27/05/05 05:54 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
can it be done through scripting that when i click on someones host or ip

raZOR~ some-host.domain

that it acts like link and redirects me to
like www.something.com/some-host.domain

?

(btw im terrible at pro scripting)

Last edited by raZOR; 27/05/05 05:55 AM.

IceCapped
#121391 27/05/05 08:14 AM
Joined: Mar 2005
Posts: 74
D
Babel fish
Offline
Babel fish
D
Joined: Mar 2005
Posts: 74
If you ment, while doing a /whois USER, you can try this:

Code:
raw 311:*: { 
  var %temp = $gettok($4,0,46)
  echo -a $2 is $+($3,@,$4) $5- - $+(http://,$gettok($4, $calc(%temp -1) $+ -,46)) 
  haltdef 
}

(Put this in remote script)

This will turn

"Phoebee-Wrk- is Phoebee_V_@1-1-1-3a.um.um.bostream.se * Felicia "

into

"Phoebee-Wrk- is Phoebee_V_@1-1-1-3a.um.um.bostream.se * Felicia - http://bostream.se "

So you can click the ISP's url. However, this is basic.. if the ISP ends on btinternet.co.uk it will return http://co.uk.

#121392 27/05/05 11:48 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
var %temp = $gettok($4,0,46) - Why don't you use $numtok($4,46)?

-Andy

#121393 27/05/05 01:07 PM
Joined: Mar 2005
Posts: 74
D
Babel fish
Offline
Babel fish
D
Joined: Mar 2005
Posts: 74
dunno.. forgot about $numtok i guess =)

#121394 27/05/05 07:11 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
i mean

like if user joins, if parts, if whois.

for notice and ctcp i dont need itz..

but this 3 are like preferable laugh

and not to just return host name
like
"Phoebee-Wrk- is Phoebee_V_@1-1-1-3a.um.um.bostream.se * Felicia - http://bostream.se "

but full 1-1-1-3a.um.um.bostream.se


and uhm... if it can be modified to work on mirc 6.0x series ?

smile

(if too much of work then dont do it)

Last edited by raZOR; 27/05/05 07:13 PM.

IceCapped
#121395 27/05/05 08:18 PM
Joined: Mar 2005
Posts: 74
D
Babel fish
Offline
Babel fish
D
Joined: Mar 2005
Posts: 74
You know that complete addresses of people in 99,99% of the time, dont have a website to them?

You can try this:

Code:
 
raw 311:*: {   
  echo -a $2 is $+($3,@,$4) $5- - $+(http://,$4))  
  haltdef 
}

on ^*:JOIN:#: { 
  if ($nick != $me) { 
    echo 4 # $nick has joined # - http:// $+ $replace($address($nick,2),*!*,)
    haltdef
  }
}

on ^*:Part:#: { 
  if ($nick != $me) { 
    echo 12 # $nick has left # - http:// $+ $replace($address($nick,2),*!*,)
    haltdef
  }
}



This should work with your mirc 6.06 version aswell, remember to use this:
Copy the text, open wordpad, paste, copy again, open mIRC Remote script, and paste.

#121396 28/05/05 10:27 PM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
well this code works ok
but gives me 2 lines

nick has joined #channel - http://@ADijon-109-1-25-117.w80-11.abo.wanadoo.fr

(00:21) Join: nick (uqilzvdtnv@ADijon-109-1-25-117.w80-11.abo.wanadoo.fr) joins #channel


and is it possible to make it like original (just this):

(00:21) Join: nick (uqilzvdtnv@ADijon-109-1-25-117.w80-11.abo.wanadoo.fr) joins #channel

but so only hostname is selectable as link ?

dunno how to explain, like when you click on this email@eamil.com same to be for hostnames/ip but only WHEN i click then
i get directed to website ?

+ can it be done so website is not [email]www.@host.blabla[/email] (without @ sign) ?

----------------

if this is too hard of impossible just say it smile


IceCapped

Link Copied to Clipboard