Author | Message | Time |
---|---|---|
PaiD | :( How do you request for the Banner that is shown on the client? | July 19, 2003, 4:15 PM |
iago | If nothing's changed, they are automatically sent to you. | July 19, 2003, 4:36 PM |
PaiD | what do you mean by "If nothing's changed". What would be changed? | July 19, 2003, 5:48 PM |
Soul Taker | Send 0x15 every 15 seconds or so (that's how long I see BW doing it): [code] p.InsertNonNTString "68XI" p.InsertNonNTString StrReverse(frmCfg.strGame) p.InsertNonNTString frmCfg.verByte p.InsertBYTE &H20 p.InsertWORD &H0 p.InsertDWORD Connection.LastAd p.SendPacket sckBnet(Index), &H15 [/code] And when the server deems it time to show a new one, it will send a responding 0x15, which you should reply to with 0x21: [code] CopyMemory LastAd, ByVal Mid$(strData, 5, 4), 4 p.InsertNonNTString "68XI" p.InsertNonNTString StrReverse(frmCfg.strGame) p.InsertDWORD LastAd p.InsertWORD 0 p.SendPacket frmMain.sckBnet(Index), &H21 [/code] In that 0x15 from the server is the ad banner filename, link to go to when you click the banner, and probably some FILETIME stuff. | July 19, 2003, 7:12 PM |
CrAz3D | Would woul;d ya add it into a form...........hmm. How to read a .pcx file | July 19, 2003, 9:59 PM |
Maddox | [C->S] SID_CHECKAD Packet id: 0x15 - &H15 Format: (DWORD) Platform ID (DWORD) Product ID (DWORD) Ad token of the last ad sent (DWORD) Ad token Additional information: This packet is used to request an ad be sent, it wont always be sent. | July 20, 2003, 12:15 AM |
sPlOrYgOn | [quote author=CrAz3D link=board=17;threadid=1967;start=0#msg15331 date=1058651983] Would woul;d ya add it into a form...........hmm. How to read a .pcx file [/quote] Aren't Bnet Ads in smacker files? | July 20, 2003, 12:58 AM |
iago | They are either .pcx or .smk, it changes | July 20, 2003, 1:05 AM |
Camel | [quote author=CrAz3D link=board=17;threadid=1967;start=0#msg15331 date=1058651983]Would woul;d ya add it into a form...........hmm. How to read a .pcx file[/quote] I understand wanting to download the banner, but why on earth would you want to display it? | July 20, 2003, 7:01 AM |
DarkMinion | [quote]I understand wanting to download the banner, but why on earth would you want to display it?[/quote] What's the point of downloading it without displaying it? | July 20, 2003, 7:58 AM |
Skywing | [quote author=iago link=board=17;threadid=1967;start=0#msg15348 date=1058663156] They are either .pcx or .smk, it changes [/quote]War3/W3XP use .png and .mng for still and moveable graphics, respectively. | July 20, 2003, 8:04 AM |
Camel | [quote author=DarkMinion link=board=17;threadid=1967;start=0#msg15370 date=1058687884] [quote]I understand wanting to download the banner, but why on earth would you want to display it?[/quote] What's the point of downloading it without displaying it? [/quote] Makes it harder for the server to detect that it's a bot JIC they ever decide to ban bots, which at this point seems extremely unlikely as one must have a valid key. | July 20, 2003, 8:17 AM |
kamakazie | [quote author=Camel link=board=17;threadid=1967;start=0#msg15373 date=1058689054] Makes it harder for the server to detect that it's a bot JIC they ever decide to ban bots, which at this point seems extremely unlikely as one must have a valid key. [/quote] But why bother downloading it? I'd think the requests for ads would be good enough. | July 20, 2003, 8:45 AM |
Camel | [quote author=kamakazie link=board=17;threadid=1967;start=0#msg15375 date=1058690737][quote author=Camel link=board=17;threadid=1967;start=0#msg15373 date=1058689054] Makes it harder for the server to detect that it's a bot JIC they ever decide to ban bots, which at this point seems extremely unlikely as one must have a valid key. [/quote] But why bother downloading it? I'd think the requests for ads would be good enough.[/quote] Because they could, in theory, check to see if clients are downloading the banners. It would be rather effective because, AFAIK, very few bots even bother to send 0x15. I used to send it but decided that it was too much of a pain in the ass as I log packets on-screen. However, this post has inspired me to re-add it in final builds. :) | July 20, 2003, 8:56 AM |
Skywing | [quote author=Camel link=board=17;threadid=1967;start=0#msg15376 date=1058691412] [quote author=kamakazie link=board=17;threadid=1967;start=0#msg15375 date=1058690737][quote author=Camel link=board=17;threadid=1967;start=0#msg15373 date=1058689054] Makes it harder for the server to detect that it's a bot JIC they ever decide to ban bots, which at this point seems extremely unlikely as one must have a valid key. [/quote] But why bother downloading it? I'd think the requests for ads would be good enough.[/quote] Because they could, in theory, check to see if clients are downloading the banners. It would be rather effective because, AFAIK, very few bots even bother to send 0x15. I used to send it but decided that it was too much of a pain in the ass as I log packets on-screen. However, this post has inspired me to re-add it in final builds. :) [/quote] Actually the clients cache ad banners quite often. This means that they don't really get downloaded all that much, just drawn from bncache.dat. | July 20, 2003, 8:02 PM |
CrAz3D | Is there a way to view an ad with out being in the Game Client? Like some type of viewer | July 20, 2003, 11:35 PM |
WinSocks | you could save the images through a screenshot and have them be displayed on the main form when the ad = the desired image to be displayed. but as said no point in having images when the add banner text is really what you need in a bot. If it was possible could it be done like so? or would that be just plain retarded? Run it off timer that matches the ad changes on the client or just change it when 0x15 is sent back? i think would be a waist of time to develop such a thing for a bot, unless your bored o.O Aren't the Ad's randomly piced from a list? or do they loop throught the same specific Ad's?, caus ei see them loop quite alot on the client :\ | July 24, 2003, 5:49 PM |