• Welcome to Valhalla Legends Archive.
 

Requesting Banner

Started by PaiD, July 19, 2003, 11:15 AM

Previous topic - Next topic

PaiD

:( How do you request for the Banner that is shown on the client?

iago

If nothing's changed, they are automatically sent to you.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


PaiD

what do you mean by "If nothing's changed". What would be changed?

Soul Taker

Send 0x15 every 15 seconds or so (that's how long I see BW doing it):

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

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:

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

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.

CrAz3D

Would woul;d ya add it into a form...........hmm.

How to read a .pcx file
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

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.
asdf.

sPlOrYgOn

Quote from: CrAz3D on July 19, 2003, 04:59 PM
Would woul;d ya add it into a form...........hmm.

How to read a .pcx file
Aren't Bnet Ads in smacker files?

iago

They are either .pcx or .smk, it changes
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Camel

Quote from: CrAz3D on July 19, 2003, 04:59 PMWould woul;d ya add it into a form...........hmm.

How to read a .pcx file

I understand wanting to download the banner, but why on earth would you want to display it?

DarkMinion

QuoteI understand wanting to download the banner, but why on earth would you want to display it?

What's the point of downloading it without displaying it?

Skywing

Quote from: iago on July 19, 2003, 08:05 PM
They are either .pcx or .smk, it changes
War3/W3XP use .png and .mng for still and moveable graphics, respectively.

Camel

#11
Quote from: DarkMinion on July 20, 2003, 02:58 AM
QuoteI understand wanting to download the banner, but why on earth would you want to display it?

What's the point of downloading it without displaying it?

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.

dxoigmn

Quote from: Camel on July 20, 2003, 03:17 AM
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.

But why bother downloading it?  I'd think the requests for ads would be good enough.

Camel

Quote from: kamakazie on July 20, 2003, 03:45 AM
Quote from: Camel on July 20, 2003, 03:17 AM
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.

But why bother downloading it?  I'd think the requests for ads would be good enough.

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. :)

Skywing

Quote from: Camel on July 20, 2003, 03:56 AM
Quote from: kamakazie on July 20, 2003, 03:45 AM
Quote from: Camel on July 20, 2003, 03:17 AM
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.

But why bother downloading it?  I'd think the requests for ads would be good enough.

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. :)

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.