Mirage Source
Custom Chat help - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Custom Chat help (/showthread.php?tid=2137)



Custom Chat help - Nean - 20-09-2008

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?


Re: Custom Chat help - Egon - 20-09-2008

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



Re: Custom Chat help - Nean - 20-09-2008

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


Re: Custom Chat help - Egon - 20-09-2008

Just glad it works for you. Tongue