Client~Side
Crie um comboBox com as configurações:
Procure por:
Mude para:
Procure por:
Mude para:
Creditos:
Ricardo (Eu \o/)
Crie um comboBox com as configurações:
Name: cmbChat
List: Global
Map
Emote
Procure por:
- Código:
' 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
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
' Emote message
If Left$(ChatText, 1) = "-" Then
MyText = Mid$(ChatText, 2, Len(ChatText) - 1)
If Len(ChatText) > 0 Then
Call EmoteMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
Mude para:
- Código:
' Broadcast message
If frmMain.cmbChat.text = "Global" Then
ChatText = Mid$(ChatText, 1, Len(ChatText))
If Len(ChatText) > 0 Then
Call BroadcastMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
' Emote message
If frmMain.cmbChat.text = "Emote" Then
MyText = Mid$(ChatText, 1, Len(ChatText))
If Len(ChatText) > 0 Then
Call EmoteMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
Procure por:
- Código:
' Say message
If Len(ChatText) > 0 Then
Call SayMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
Mude para:
- Código:
' Say message
If Len(ChatText) > 0 Then
If frmMain.cmbChat.text = "Map" Then
Call SayMsg(ChatText)
End If
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
Creditos:
Ricardo (Eu \o/)