Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: VeBee on August 04, 2006, 04:52 PM

Title: Logging Stuff
Post by: VeBee on August 04, 2006, 04:52 PM
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        RichTextBox1.Text = "Connecting..."
        Dim myClient As System.Net.Sockets.TcpClient
        Dim monitor As System.Net.Sockets.NetworkStream
        myClient = New System.Net.Sockets.TcpClient
        myClient.Connect("useast.battle.net", 6112)
        monitor = myClient.GetStream()
        RichTextBox1.Text = Convert.ToString(monitor)
    End Sub

im an extreme newb. what exactly have i done above? If im right it will like, connect, then get a stream of packets and put them in the textbox.

problem is when i ran it nothing happened.

once again me is newb.
Title: Re: Logging Stuff
Post by: Hero on August 04, 2006, 05:25 PM
Quote from: VeBee on August 04, 2006, 04:52 PM
what exactly have i done above?

So I'm guessing you didn't write this yourself.

Quote from: VeBee on August 04, 2006, 04:52 PM
problem is when i ran it nothing happened.

Are you even clicking 'Button1'?
Title: Re: Logging Stuff
Post by: ShadowDancer on August 04, 2006, 05:39 PM
        myClient.Connect("useast.battle.net", 6112)
        monitor = myClient.GetStream()
        RichTextBox1.Text = Convert.ToString(monitor)

the client must send 2 messages before you be able to see something.

check this link http://bnetdocs.valhallalegends.com/sequence.php and use one sniffer to see how a bnet client does it

offtopic: hero your post seems allways the same... do u use templates?
Title: Re: Logging Stuff
Post by: VeBee on August 04, 2006, 05:42 PM
a even bigger question i have is, how do i send a packet using vb.net?
Title: Re: Logging Stuff
Post by: Hero on August 04, 2006, 06:03 PM
Quote from: VeBee on August 04, 2006, 05:42 PM
a even bigger question i have is, how do i send a packet using vb.net?


I hope you have a packet buffer.

Quote from: ShadowDancer on August 04, 2006, 05:39 PM
offtopic: hero your post seems allways the same... do u use templates?
No.
Title: Re: Logging Stuff
Post by: VeBee on August 04, 2006, 06:10 PM
ok where do i retreive a packet buffer?

is a packet buffer just a list of packets?
Title: Re: Logging Stuff
Post by: l2k-Shadow on August 04, 2006, 06:17 PM
Quote from: VeBee on August 04, 2006, 06:10 PM
ok where do i retreive a packet buffer?

is a packet buffer just a list of packets?

You obviously have very little clue about what you are doing, I suggest going http://forum.valhallalegends.com/index.php?topic=9278.0 here before continuing.
Title: Re: Logging Stuff
Post by: K on August 04, 2006, 07:17 PM
Quote from: VeBee on August 04, 2006, 04:52 PM
        NetworkStream monitor = myClient.GetStream()
        RichTextBox1.Text = Convert.ToString(monitor)

This is probably one of the greatest lines of code I've seen recently.
Title: Re: Logging Stuff
Post by: MyndFyre on August 04, 2006, 09:55 PM
Quote from: K on August 04, 2006, 07:17 PM
Quote from: VeBee on August 04, 2006, 04:52 PM
        NetworkStream monitor = myClient.GetStream()
        RichTextBox1.Text = Convert.ToString(monitor)

This is probably one of the greatest lines of code I've seen recently.
If only it was Working As IntendedTM.....
Title: Re: Logging Stuff
Post by: VeBee on August 04, 2006, 10:38 PM
lol are you guys making fun of me? :P

Anyways i went to that web page for vb, and its for vb not vb.net.

but it did help explain tcp/ip.

And i dont know how to send packets yet.
Title: Re: Logging Stuff
Post by: Hero on August 04, 2006, 10:43 PM
Quote from: VeBee on August 04, 2006, 10:38 PM
lol are you guys making fun of me? :P

Anyways i went to that web page for vb, and its for vb not vb.net.

but it did help explain tcp/ip.

And i dont know how to send packets yet.
http://forum.valhallalegends.com/index.php?action=search
Search: Packet buffer
Title: Re: Logging Stuff
Post by: VeBee on August 04, 2006, 11:04 PM
my spider made a eek sound when i did my search. i dont think im ready to use a packet buffer.

well i got to goto bed. ill be back tommorow.
Title: Re: Logging Stuff
Post by: Hero on August 04, 2006, 11:34 PM
Quote from: VeBee on August 04, 2006, 11:04 PM
my spider made a eek sound
That really confused me.