Valhalla Legends Forums Archive | Battle.net Bot Development | 2 People getting wins in ladder

AuthorMessageTime
Brr
How is this done? I've tried a crap load of different ways and i can't figure it out.. :(
July 3, 2003, 9:18 PM
Camel
First of all, you need to have at least two accounts logged on to battle.net. The idea is that you lie to battle.net on both, telling it that you are going to play a game with your two accounts. Two minutes later, you tell it who won. I suggest you find a decent packet logger. ;)
July 3, 2003, 10:12 PM
Brr
I can't find a decent packet logger for 56k.. :(

Also something has come to my attention, I was testing my bot on a private server (supposed to be like b.net?) Well, I got it to where it gives 1 person wins and 3 losses.. I try it on battle.net but it doesn't record games, not a win, loss, disc, nor draw... Hrm whats wrong here:
[code] .InsertDWORD &H1
.InsertDWORD &H8
.InsertDWORD &H1
.InsertDWORD &H2
.InsertDWORD &H2
.InsertDWORD &H2
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertDWORD &H0
.InsertNTString Username(0)
.InsertNTString Username(1)
.InsertNTString Username(2)
.InsertNTString Username(3)
.InsertNTString ""
.InsertNTString ""
.InsertNTString ""
.InsertNTString ""
.InsertNonNTString "On map " & Chr(&H22) & "The Lost Temple" & Chr(&H22) & ":" & Chr(&HA)
.InsertBYTE &H0
.InsertNonNTString Username(0) & " was Zerg and played for 2 minutes" & Chr(&HA)
.InsertBYTE &HA
.InsertNonNTString " "
.InsertNonNTString "Overall Score 184266490" & Chr(&HA)
.InsertNonNTString " 43025 for Units" & Chr(&HA)
.InsertNonNTString " 3465 for Structures" & Chr(&HA)
.InsertNonNTString " 184220000 for Resources" & Chr(&HA)
.InsertBYTE &HA
.InsertNonNTString " "
.InsertNonNTString "Units Score 43025" & Chr(&HA)
.InsertNonNTString " 131 Units Produced" & Chr(&HA)
.InsertNonNTString " 76 Units Killed" & Chr(&HA)
.InsertNonNTString " 95 Units Lost" & Chr(&HA)
.InsertBYTE &HA
.InsertNonNTString " "
.InsertNonNTString "Structures Score 3465" & Chr(&HA)
.InsertNonNTString " 33 Structures Constructed" & Chr(&HA)
.InsertNonNTString " 2 Structures Razed" & Chr(&HA)
.InsertNonNTString " 33 Structures Lost" & Chr(&HA)
.InsertBYTE &HA
.InsertNonNTString " "
.InsertNonNTString "Resources Score 184220000" & Chr(&HA)
.InsertNonNTString " 43600000 Gas Mined" & Chr(&HA)
.InsertNonNTString " 140620000 Minerals Mined" & Chr(&HA)
.InsertNonNTString " 178130 Total Spent" & Chr(&HA)
.InsertBYTE &H0

.SendPacket 0, &H2C

[/code]Or maybe it's in my create or start?
[code]With Packet

.Clear

.InsertDWORD &H0
.InsertDWORD &H0
.InsertWORD &H9
.InsertWORD &H1
.InsertDWORD &H1F
.InsertDWORD &H1
.InsertNTString GameName
.InsertBYTE &H12
.InsertNonNTString ",44,14,6,2,2,1,f69e9256,4,,"
.InsertNonNTString Username(0) & Chr(&HD)
.InsertNTString "The Lost Temple" & Chr(&HD)

.SendPacket 0, &H1C

.SendPacket 0, &H10

End With
Start:

.With Packet

.Clear

.InsertDWORD &H4
.InsertDWORD &H19
.InsertWORD &H2
.InsertWORD &H1
.InsertDWORD &H1F
.InsertDWORD &H1
.InsertNTString GameName
.InsertBYTE &H0
.InsertNonNTString ",44,14,6,2,2,1,f69e9256,4,,"
.InsertNonNTString Username(0) & Chr(&HD)
.InsertNTString "The Lost Temple" & Chr(&HD)
.SendPacket 0, &H1C

End With[/code]
All help is greatly appreciated.
July 3, 2003, 10:31 PM
Brr
Actually, I play a lot and program.. This isn't a "Winbot" it's a stats bot.. it doesn't give you wins.. it gives you losses, discs and other shit :) I just have yet to impliment it :P
July 4, 2003, 2:52 AM
DaRk-FeAnOr
All Packet loggers work, no matter what connection you have.
July 4, 2003, 4:50 AM
MesiaH
or not... Most packet loggers use a common dll to search for an adapter, which is why i cant use most because my ethernet is on board, and unrecognized, but there are some good ones that hook onto a program, such as wpe pro, or full network packet editors like commview, ethereal...
July 4, 2003, 6:45 AM
Brr
Ok well, I got my ladder shit to work.. Now i want to use the map Polaris prime, and I used a packet logger and i got some wierd shit i can't read.. I'm using Sniff 'em :P But according to everyone else

,44,14,6,2,2,1,68644703,4,,

is for lost temple.. So wouldn't

,66,14,6,2,2,1,68644703,4,, + Some name changing
= Polaris Prime ? or would i have to change 68644703,4,, ??
July 4, 2003, 2:07 PM
Adron
[quote author=DaRk-FeAnOr link=board=17;threadid=1792;start=0#msg13801 date=1057294200]
All Packet loggers work, no matter what connection you have.
[/quote]

That's not true. Many packet loggers only work with regular network connections, not dialup connections, in Windows 2000.
July 4, 2003, 2:19 PM
Brr
Ok, I got it working, Now i want to change the map... And I logged it and shit and inserted the changes.. But it gets Game Start Failed..

[code]
With Packet

.Clear

.InsertDWORD &HD
.InsertDWORD &H2C
.InsertWORD &H9
.InsertWORD &H1
.InsertDWORD &H1F
.InsertDWORD &H1
.InsertNTString GameName
.InsertBYTE &H0
.InsertNonNTString ",66,16,,2,9,2,299aab83,1,,"
.InsertNonNTString Username(0) & Chr(&HD)
.InsertNTString "Polaris Prime" & Chr(&HD)

.SendPacket 0, &H1C

End With[/code]

that's for the start..
July 4, 2003, 5:01 PM
Trying
:-[
umm, I'm still learning, and just got Ethereal packet logger, but I just dont understand how to break what the logger gives me down into all the DWORDS and things that I see you all doing, I'm not even sure how to name it something like 0x1e.
I read the packet tutorials on this site btw and I'm still confussed. Any help would be appreciated. :-X
July 5, 2003, 1:25 AM
Camel
[quote author=Trying link=board=17;threadid=1792;start=0#msg13875 date=1057368348]
:-[
umm, I'm still learning, and just got Ethereal packet logger, but I just dont understand how to break what the logger gives me down into all the DWORDS and things that I see you all doing, I'm not even sure how to name it something like 0x1e.
I read the packet tutorials on this site btw and I'm still confussed. Any help would be appreciated. :-X
[/quote]

In ethereal, you can skip down to the 'data' section of the packet; everything else is irrelivant to what you're trying to do. Here's a sample 0x50 from broodwar:
[code]SEND 0000 ff 50 3a 00 00 00 00 00 36 38 58 49 50 58 45 53 .P:.....68XIPXES
SEND 0010 c7 00 00 00 00 00 00 00 c0 a8 01 03 f0 00 00 00 ................
SEND 0020 09 04 00 00 09 04 00 00 55 53 41 00 55 6e 69 74 ........USA.Unit
SEND 0030 65 64 20 53 74 61 74 65 73 00 ed States.[/code]
The first 4 bytes (FF 50 3A 00) are the packet header. The first byte will always be 0xFF on a BNCS connection. The second byte is the packet id; it says that this packet is 0x50, or SID_AUTH_INFO. The next two bytes are a Word packet length -- in this case, 0x003A.
The data in the packet can be broken down based on the information bnetdocs provides:
[code](DWORD)       Protocol ID (0)
(DWORD)       Platform ID
(DWORD)       Program ID
(DWORD)       Version
(DWORD)       Product language
(DWORD)       Local IP for NAT compatibility*
(DWORD)       Time zone bias*
(DWORD)       Locale ID*
(DWORD)       Language ID*
(STRING)       Country abreviation
(STRING)       Country[/code]

So, here's the data in my packet:
[code](DWORD) 00 00 00 00
(DWORD) 36 38 58 49 = 'IX86'
(DWORD) 50 58 45 53 = 'SEXP'
(DWORD) c7 00 00 00 = 0xC7
(DWORD) 00 00 00 00
(DWORD) c0 a8 01 03 = 192.168.1.3
(DWORD) f0 00 00 00
(DWORD) 09 04 00 00 = 1033
(DWORD) 09 04 00 00 = 1033
(STRING) 55 53 41 00 = "USA"
(STRING) 55 6e 69 74 65 64 20 53 74 61 74 65 73 00 = "United States"[/code]
July 5, 2003, 8:04 PM
timbo
[quote author=Adron link=board=17;threadid=1792;start=0#msg13828 date=1057328369]
That's not true. Many packet loggers only work with regular network connections, not dialup connections, in Windows 2000.
[/quote]

ethereal works like crap for dialup connections i can vouch for that (it breaks all connections when you start and stop it and wont work every time)
July 8, 2003, 2:06 AM
St0rm.iD
Brrr, mind sharing your game report packet?
July 11, 2003, 2:39 PM

Search