• Welcome to Valhalla Legends Archive.
 

Plugin icon

Started by TeEhEiMaN, October 30, 2003, 02:49 PM

Previous topic - Next topic

TeEhEiMaN

Whats the Packet to get the plugin icon instead of lag bars, in winsock arival?

thx

Freeware

Quote from: TeEhEiMaN on October 30, 2003, 02:49 PM
Whats the Packet to get the plugin icon instead of lag bars, in winsock arival?

thx

There is a search button... :(

But incase your too lazy:


               If blnPlug = False Then
                   pBuffer.InsertNonNTString StrReverse("bnet")
                   pBuffer.SendPacket sckBnet, &H14
               End If



If blnPlug = True, then it wont send the packet, thus recieving a 'plugin' icon.

Spht

Quote

               If blnPlug = False Then
                   pBuffer.InsertNonNTString StrReverse("bnet")
                   pBuffer.SendPacket sckBnet, &H14
               End If



That's one of the strangest ways I've seen to insert the 'bnet' DWORD. It is a DWORD, so it should be treated like one.

iago

I've seen it treated like that before, actually.  Just like RATS, PXES, 3RAW, etc. are far too frequently treated as char[3]'s
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Arta

Strange? I've seen it like that more times than I can count ;) I did it like that myself when I was first starting, until someone kindly pointed out that it was a DWORD.

Adron

How do you know if they are DWORD's or byte arrays?

TeEhEiMaN

umm doesnt work gets me ip banned

TeEhEiMaN

b.net, I put this in the winsock arival right?

TeEhEiMaN

or maybe it doesnt ip ban me, just doesnt connect

Zakath

I send 0x14 in the success case of the 0x51 handler, and I've never had problems with it.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Freeware

Quote from: TeEhEiMaN on October 31, 2003, 12:55 PM
or maybe it doesnt ip ban me, just doesnt connect

you send before logging in

Death-Merchant

#11
Would you send it before you send your username and password?
If so, I keep getting -1 Here's the code I'm using.


If GetStuff("Lag Settings", "Plug") = "True" Then
    pbuffer.InsertNonNTString StrReverse("bnet")
    pbuffer.sendPacket &H14
End If

Zakath

#12
No, if "Plug" is true, don't send 0x14. That packet indicates to bnet that your client has support for UDP processing, and is actually sent by the real Starcraft + Warcraft II clients in response to a UDP packet sent by bnet during the login process. If you send 0x14, bnet gives you lag icons since you supposedly are game-capable. If you don't, you get stuck with a plug.

Incidentally, getting a ping of -1 is completely unrelated to the plug. That arises from not ponging the server when it pings you.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Lenny

Quote from: Death-Merchant on November 01, 2003, 04:19 AM
Would you send it before you send your username and password?
If so, I keep getting -1 Here's the code I'm using.


If GetStuff("Lag Settings", "Plug") = "True" Then
    pbuffer.InsertNonNTString StrReverse("bnet")
    pbuffer.sendPacket &H14
End If


Your not sending 0x25 if your getting a -1 ms ping and also you send 0x14 after recieving 0x51
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Dyndrilliac

#14
My understanding of the subject on ping, is that if you don't send the ping packet altogether, its -1, if you send it in the fastest possible time, it's 0, and if you delay it being sent you can achieve a high ping.  I've gotten as high as 60k ping and as low as -1 using this method.

About the plug -

       Case Chr(1)
         SendUsernamePassword
         'plug
         pBuffer.InsertNonNTString "tenb"
         pBuffer.SendPacket &H14


I have my bot logon with UDP Plug and 0ms ping, and the code above is the plug. As you can see, it occurs during logon after the SendUsernamePassword event.

Edit: Mine works, so whoever said NOT to send 0x14 is wrong.

Edit#2: Since mine occurs during logon, it isn't optional, I suggest if you WANT the plug, do it this way since it works...
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.