| Mirage Source http://miragesource.net/forums/ |
|
| Custom Chat help http://miragesource.net/forums/viewtopic.php?f=201&t=4380 |
Page 1 of 1 |
| Author: | Nean [ Sat Sep 20, 2008 4:07 am ] |
| Post subject: | Custom Chat help |
So, I have it so that if I type: @ before a message, it displays VIP chat, or the like. However, my message still has the @ in the beginning, so others will see the @, and it's really irritating. Is there anyway for me to make sure that doesn't go through in the message, but it is still the operator to call that chat? |
|
| Author: | Egon [ Sat Sep 20, 2008 4:23 am ] |
| Post subject: | Re: Custom Chat help |
Just rip this: Code: ' Broadcast message
If Left$(ChatText, 1) = "'" Then ChatText = Mid$(ChatText, 2, Len(ChatText) - 1) If Len(ChatText) > 0 Then Call BroadcastMsg(ChatText) End If MyText = vbNullString frmMirage.txtMyChat.Text = vbNullString Exit Sub End If |
|
| Author: | Nean [ Sat Sep 20, 2008 4:56 am ] |
| Post subject: | Re: Custom Chat help |
Egon wrote: Just rip this: Code: ' Broadcast message If Left$(ChatText, 1) = "'" Then ChatText = Mid$(ChatText, 2, Len(ChatText) - 1) If Len(ChatText) > 0 Then Call BroadcastMsg(ChatText) End If MyText = vbNullString frmMirage.txtMyChat.Text = vbNullString Exit Sub End If Works amazingly. Thanks a lot dude. I was ripping the AdminMsg, and it did the same as the custom one I'm making, so I thought they all would, I didn't think ripping would work |
|
| Author: | Egon [ Sat Sep 20, 2008 5:02 am ] |
| Post subject: | Re: Custom Chat help |
Just glad it works for you. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|