Author | Message | Time |
---|---|---|
Christ | Sup everyone, I've recently been working hard on this new bot i created, Its in VB6.0 and to do a shitlist, protect and wildcards i need to parse data join_events.. i'm still learning but this is what i have so far. [code]Option Explicit Private index As Integer Public Sub AddToBuffer(ByVal strData As String) Dim buffer() As String Dim pos As Byte buffer() = Split(strData, vbCrLf) For pos = 0 To UBound(buffer()) If Len(buffer(pos)) > 0 Then parse buffer(pos) End If Next pos End Sub Public Sub constructor(iform As Integer) index = iform End Sub Private Sub parse(data As String) Dim packetID() As String packetID() = Split(data, " ", 3) Select Case packetID(0) Case "2010" addchat index, vbGreen, "Connected to: " & frm(index).varserver Case "1018" addchat index, vbYellow, data Case "1005" packetID() = Split(packetID(2), " ", 3) Dim cmd As New Commands Call cmd.process(packetID(0), Mid(packetID(2), 2, Len(packetID(2)) - 2), index) End Select End Sub[/code] The join packet is "1002" But whats next.. i dunno i'm stuck any help? [Kp edit: added code tags. Use them on your own in the future.] | February 11, 2004, 6:33 PM |
o.OV | From the looks of it.. its a Chat/TAHC client.. I'm guessing you will be using it on a fsgs/emul server? TAHC clients are pretty straight forward .. especially since the data you recieve is in Plain text that could be read. You can do trial and error and find out on your own.. or you could use the "search facility" to find your answer. | February 11, 2004, 8:38 PM |
Christ | Yes, this is a chat for XGN/WARRNET.. and no tried it if i wanted to do search for the answer i would have i posted on here to get help, not to be told to search for it on google.com. | February 11, 2004, 9:19 PM |
Dyndrilliac | [quote author=Christ link=board=17;threadid=5230;start=0#msg43697 date=1076534383] Yes, this is a chat for XGN/WARRNET.. and no tried it if i wanted to do search for the answer i would have i posted on here to get help, not to be told to search for it on google.com. [/quote] I believe he means the FORUM search function. Questions get answered over and over, it is your responsibility to make sure you aren't double posting a question. | February 12, 2004, 12:15 AM |