Page 1 of 1

help for chat

Posted: Fri Apr 29, 2011 4:30 pm
by JustFashion
Hello,
I want to make chat like irc with commands and different colours for my game client:)
Help me please.
Thanks!

Re: help for chat

Posted: Fri Apr 29, 2011 5:03 pm
by mandai
There are libraries that you can use to connect to an IRC server.
Check out http://www.meebey.net/projects/smartirc4net/

Re: help for chat

Posted: Fri May 27, 2011 6:40 pm
by rocky4126
mandai, that's not what he means.

JustFashion: Check if the string starts with / and then if it does,
Code: Select all
sub parsecommands(ByVal text as system.string)
if text.substring(0, 3) = "/me" then
'send text to server from text.substring(4)
elseif text.substring(0, COMMANDLENGTHHERE) = "COMMANDHERE" then
'do the same here
end if