Skip to content
MSN Addons

Looking for a command

A TG007 community discussion started by bonTy.

Discussion 12 posts
Page 1 of 1
Open
Topic #3443 · 12 published posts · 1,067 views

I am using vincula 4.9 for groups . I would like a command to get the room url

I tried many ways $msn.geturl , $url , not working ..anyideas ?!

on *:text:!url:#:{ msg $chan The room url is http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw

 

??

 

 

Or you can use this code. This code will work for groups, or msnchat.

on *:text:!url:#:{ 
if ($left($server,12) == TK2CHATCHATG) { msg $chan The room url is http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw }
elseif ($left($server,12) == TK2CHATCHATA) { msg $chan The room url is http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35)) }
}

Edited May 1, 2005 3:40 AM by Warrior124

Am using the 2nd code which work for both groups and msnchat

Works pretty well thanks Warrior

the url http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35)) will not work if there is a space in the room name for example TEACHGEAR 007

 

the bot will try to join http://chat.msn.com/chatroom.msnw?rm=techgear 007

 

you need to use

http://chat.msn.com/chatroom.msnw?rm= $+ $replace($remove($chan,$chr(37),$chr(35)),$chr(32),%20)

dream, in mIRC scripts there are never spaces in the name. And if there was, it would be replaced with a \b not a %20 which is the html code for it, but good try though.

o.O easiest way is this

alias chanlink return http://chat.msn.com/chatroom.msnw?rhx= $+ $msn.tohex($iif($1,$1,$chan))

then use $chanlink to get the link to your room, or $chanlink(%#some\broom\bname) to get the link to that room.

bfush.PNG

it should be replaced with %20 to get the right web link because it is msg in the channel so when other click it, it should take them to the room.

 

But yes I should replace $chr(32) by \b because mirc will fill spaces by \b

vex he was talking about group rooms, how that link doesn't work for group chatrooms.

Don't work with market FR-FR and FR-CA !!!

 

EN-US , EN-CA , ... :

http://groups.msn.com/CCScript/chat.msnw

 

FR-FR , FR-CA , ... :

http://groups.msn.com/CCScript/discussion.msnw

 

Microsoft simplified the thing! One can use the redirection for all languages:

http://groups.msn.com/CCScript/chat

 

on *:text:!url:#:{ 
if ($left($server,12) == TK2CHATCHATG) { msg $chan Room URL http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat | halt }
msg $chan Room URL http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35))
}

Works all over the world :-p

Edited May 6, 2005 10:26 PM by C-drykâ„¢

on *:text:!url:#: { 
 if ($left($server,12) == TK2CHATCHATG) { echo -a 14[9Group14]4 http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw }
 elseif ($left($server,12) == TK2CHATCHATA) { echo -a 14[9Room14]4 http://chat.msn.com/chatroom.msnw?rm= $+ $replace($remove($chan,$chr(35),$chr(37)),\b,$chr(37) $+ 20) }
}

 

nice C-drykâ„¢ but it somt time be wrong with rooms which contain space so this is working well ..tested

Get room url: clipboard http://groups.msn.com/ $+ $right(#,-4) $+ /chat | echo -a Added room link to clipboard ( $+ http://groups.msn.com/ $+ $right(#,-4) $+ /chat $+ )