Mirage Source http://www.miragesource.net/forums/ |
|
Chat Channels? http://www.miragesource.net/forums/viewtopic.php?f=201&t=5000 |
Page 1 of 1 |
Author: | timster0 [ Fri Jan 23, 2009 2:52 am ] |
Post subject: | Chat Channels? |
How would I set up chat channels? What I need are Global and Battle(the messages that come when your in combat) chat Channels. Similar to how the XW looks. How would this work? |
Author: | wisefire [ Fri Jan 23, 2009 3:03 am ] |
Post subject: | Re: Chat Channels? |
Find "Social packets" You'll notice all social packets use the same, "Call AddText(Parse(1), Val(Parse(2)))". Duplicate the sub AddText and change it to Sub AddTextGlobal. Now create a new textbox on frmMirage called chtGlobal. Now in your new Sub AddTextGlobal Change, txtChat to, chtGlobal. Now Back to the Social Packets create a new Case for Global and remove it from the old Case. So you have something that looks like; Code: If (LCase(Parse(0)) = "globalmsg") Then Call AddTextGlobal(Parse(1), Val(Parse(2))) Exit Sub End If Now all you need to do is create a way to set the visibility of each box. So say, create a label named Global Chat, and When you click on it, chtGlobal.visible = true, and so on. Hopefully this will help. I haven't tested this, But I am almost 100% positive it will work. |
Author: | Tony [ Fri Jan 23, 2009 6:42 am ] |
Post subject: | Re: Chat Channels? |
Why would you need a channel for battle messages? Battle messages aren't going to be broadcasted to anyone but you from the server. There's already battle messages.. o.O |
Author: | Coke [ Fri Jan 23, 2009 11:31 am ] |
Post subject: | Re: Chat Channels? |
To split it away from your chat messages so you can follow conversations easier. |
Author: | Matt [ Fri Jan 23, 2009 4:41 pm ] |
Post subject: | Re: Chat Channels? |
Fox wrote: To split it away from your chat messages so you can follow conversations easier. Ding ding ding! We have a winner! Someone, tell him what he wins! |
Author: | Nean [ Fri Jan 23, 2009 7:53 pm ] |
Post subject: | Re: Chat Channels? |
I believe congratulations are in order. |
Author: | timster0 [ Sat Jan 24, 2009 12:17 am ] |
Post subject: | Re: Chat Channels? |
I tried it and got "Wrong number of arguments or invalid property assignment" and it said the problem was with this: Code: Sub HandleGlobalMsg(ByRef Parse() As String) Call AddTextGlobal(Parse(1), Val(Parse(2))) End Sub Highlighting This Code: Code: Call AddTextGlobal
|
Author: | wisefire [ Sat Jan 24, 2009 3:09 am ] |
Post subject: | Re: Chat Channels? |
timster0 wrote: I tried it and got "Wrong number of arguments or invalid property assignment" and it said the problem was with this: Code: Sub HandleGlobalMsg(ByRef Parse() As String) Call AddTextGlobal(Parse(1), Val(Parse(2))) End Sub Highlighting This Code: Code: Call AddTextGlobal Did you create Sub AddTextGlobal? |
Author: | Matt [ Sat Jan 24, 2009 3:57 am ] |
Post subject: | Re: Chat Channels? |
I believe he's either passing too many variables to the sub, or not enough. |
Author: | Tony [ Sat Jan 24, 2009 10:09 pm ] |
Post subject: | Re: Chat Channels? |
Matt wrote: I believe he's either passing too many variables to the sub, or not enough. Yeah meaning Call Something(ShouldBeSomething, ShouldBeSomething, ShouldBeSomething) or Call Something(ShouldBeSomething) Give us your AddTextGlobal sub. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |