Author | Message | Time |
---|---|---|
TeEhEiMaN | Whats the Packet to get the plugin icon instead of lag bars, in winsock arival? thx | October 30, 2003, 8:49 PM |
Freeware | [quote author=TeEhEiMaN link=board=17;threadid=3336;start=0#msg26509 date=1067546953] Whats the Packet to get the plugin icon instead of lag bars, in winsock arival? thx [/quote] There is a search button... :( But incase your too lazy: [code] If blnPlug = False Then pBuffer.InsertNonNTString StrReverse("bnet") pBuffer.SendPacket sckBnet, &H14 End If [/code] If blnPlug = True, then it wont send the packet, thus recieving a 'plugin' icon. | October 31, 2003, 3:03 AM |
Spht | [quote] [code] If blnPlug = False Then pBuffer.InsertNonNTString StrReverse("bnet") pBuffer.SendPacket sckBnet, &H14 End If [/code] [/quote] 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. | October 31, 2003, 3:24 AM |
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 | October 31, 2003, 7:38 AM |
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. | October 31, 2003, 2:45 PM |
Adron | How do you know if they are DWORD's or byte arrays? | October 31, 2003, 4:29 PM |
TeEhEiMaN | umm doesnt work gets me ip banned | October 31, 2003, 5:46 PM |
TeEhEiMaN | b.net, I put this in the winsock arival right? | October 31, 2003, 6:54 PM |
TeEhEiMaN | or maybe it doesnt ip ban me, just doesnt connect | October 31, 2003, 6:55 PM |
Zakath | I send 0x14 in the success case of the 0x51 handler, and I've never had problems with it. | October 31, 2003, 7:00 PM |
Freeware | [quote author=TeEhEiMaN link=board=17;threadid=3336;start=0#msg26702 date=1067626526] or maybe it doesnt ip ban me, just doesnt connect [/quote] you send before logging in | October 31, 2003, 8:52 PM |
Death-Merchant | Would you send it before you send your username and password? If so, I keep getting -1 Here's the code I'm using. [code] If GetStuff("Lag Settings", "Plug") = "True" Then pbuffer.InsertNonNTString StrReverse("bnet") pbuffer.sendPacket &H14 End If [/code] | November 1, 2003, 10:19 AM |
Zakath | 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. | November 1, 2003, 1:20 PM |
Lenny | [quote author=Death-Merchant link=board=17;threadid=3336;start=0#msg26766 date=1067681973] Would you send it before you send your username and password? If so, I keep getting -1 Here's the code I'm using. [code] If GetStuff("Lag Settings", "Plug") = "True" Then pbuffer.InsertNonNTString StrReverse("bnet") pbuffer.sendPacket &H14 End If [/code] [/quote] Your not sending 0x25 if your getting a -1 ms ping and also you send 0x14 after recieving 0x51 | November 1, 2003, 1:31 PM |
Dyndrilliac | 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 - [code] Case Chr(1) SendUsernamePassword 'plug pBuffer.InsertNonNTString "tenb" pBuffer.SendPacket &H14[/code] 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... | November 1, 2003, 3:21 PM |
UserLoser | IMO, you shouldn't always assume that it's going to be "tenb", you should bind a UDP socket, and get the actual code :) | November 1, 2003, 5:16 PM |
Freeware | [quote author=UserLoser link=board=17;threadid=3336;start=15#msg26813 date=1067706971] IMO, you shouldn't always assume that it's going to be "tenb", you should bind a UDP socket, and get the actual code :) [/quote] Well for this case he WANTs a plugin icon, so he wouldnt have to send anything at all... | November 1, 2003, 6:06 PM |
Skywing | [quote author=Adron link=board=17;threadid=3336;start=0#msg26666 date=1067617740] How do you know if they are DWORD's or byte arrays? [/quote] I know that Blizzard uses Visual C++, that the Battle.net programmers have historically tended to cut corners to do stuff quickly, and that it's easy to declare such things as DWORDs when using cl.exe. | November 1, 2003, 6:45 PM |
Freeware | [quote author=Skywing link=board=17;threadid=3336;start=15#msg26824 date=1067712323] [quote author=Adron link=board=17;threadid=3336;start=0#msg26666 date=1067617740] How do you know if they are DWORD's or byte arrays? [/quote] I know that Blizzard uses Visual C++, that the Battle.net programmers have historically tended to cut corners to do stuff quickly, and that it's easy to declare such things as DWORDs when using cl.exe. [/quote] Windows Itself uses Dwords in storing data - hint: registry | November 1, 2003, 9:18 PM |
Skywing | [quote author=Freeware link=board=17;threadid=3336;start=15#msg26837 date=1067721486] [quote author=Skywing link=board=17;threadid=3336;start=15#msg26824 date=1067712323] [quote author=Adron link=board=17;threadid=3336;start=0#msg26666 date=1067617740] How do you know if they are DWORD's or byte arrays? [/quote] I know that Blizzard uses Visual C++, that the Battle.net programmers have historically tended to cut corners to do stuff quickly, and that it's easy to declare such things as DWORDs when using cl.exe. [/quote] Windows Itself uses Dwords in storing data - hint: registry [/quote] Your statement is fairly meaningless. For instance, you can have binary values (byte arrays) in the registry. | November 1, 2003, 10:05 PM |
Freeware | [quote author=Skywing link=board=17;threadid=3336;start=15#msg26843 date=1067724322] [quote author=Freeware link=board=17;threadid=3336;start=15#msg26837 date=1067721486] [quote author=Skywing link=board=17;threadid=3336;start=15#msg26824 date=1067712323] [quote author=Adron link=board=17;threadid=3336;start=0#msg26666 date=1067617740] How do you know if they are DWORD's or byte arrays? [/quote] I know that Blizzard uses Visual C++, that the Battle.net programmers have historically tended to cut corners to do stuff quickly, and that it's easy to declare such things as DWORDs when using cl.exe. [/quote] Windows Itself uses Dwords in storing data - hint: registry [/quote] Your statement is fairly meaningless. For instance, you can have binary values (byte arrays) in the registry. [/quote] I didnt say that all windows does is use dwords, i just said they do use them. | November 1, 2003, 10:58 PM |
Skywing | [quote author=Freeware link=board=17;threadid=3336;start=15#msg26854 date=1067727488] [quote author=Skywing link=board=17;threadid=3336;start=15#msg26843 date=1067724322] [quote author=Freeware link=board=17;threadid=3336;start=15#msg26837 date=1067721486] [quote author=Skywing link=board=17;threadid=3336;start=15#msg26824 date=1067712323] [quote author=Adron link=board=17;threadid=3336;start=0#msg26666 date=1067617740] How do you know if they are DWORD's or byte arrays? [/quote] I know that Blizzard uses Visual C++, that the Battle.net programmers have historically tended to cut corners to do stuff quickly, and that it's easy to declare such things as DWORDs when using cl.exe. [/quote] Windows Itself uses Dwords in storing data - hint: registry [/quote] Your statement is fairly meaningless. For instance, you can have binary values (byte arrays) in the registry. [/quote] I didnt say that all windows does is use dwords, i just said they do use them. [/quote] So, we've established that the registry supports DWORDs and byte arrays. Once again, I don't see how this is at all relevant to the discussion in this thread. | November 1, 2003, 11:48 PM |
Adron | I'd say we can believe that it's a DWORD, but not be sure ;) | November 2, 2003, 2:24 AM |
Skywing | [quote author=Adron link=board=17;threadid=3336;start=15#msg26911 date=1067739890] I'd say we can believe that it's a DWORD, but not be sure ;) [/quote] Actually, code in battle.snp prints it out as a doubleword. "req.programId = 0x%08X" (Debug information printing out the contents of a sent SID_AUTH_INFO message). So, it's fairly reasonable to assume that it's supposed to be treated as a doubleword. | November 2, 2003, 5:34 AM |