Valhalla Legends Forums Archive | Battle.net Bot Development | War3X

AuthorMessageTime
______
the new warcraft 3 frozen throne product id is
PX3W
July 1, 2003, 12:21 PM
Soul Taker
This has been known for some time thanks to /stats =P
July 1, 2003, 12:38 PM
DarkMinion
Wow...I would've never known

By the way...

(DWORD) 'W3XP' is more correct
July 1, 2003, 1:34 PM
UserLoser
Or a string, PX3W works too ;D
July 1, 2003, 2:20 PM
DarkMinion
Not unless you're using VB, in C++ a string would cause ipban :P
July 1, 2003, 2:29 PM
Camel
[quote author=DarkMinion link=board=17;threadid=1756;start=0#msg13412 date=1057069762]
Not unless you're using VB, in C++ a string would cause ipban :P
[/quote]
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
July 2, 2003, 2:56 AM
Eibro
[quote author=Camel link=board=17;threadid=1756;start=0#msg13500 date=1057114568]
[quote author=DarkMinion link=board=17;threadid=1756;start=0#msg13412 date=1057069762]
Not unless you're using VB, in C++ a string would cause ipban :P
[/quote]
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
[/quote]No, string literals are terminated with '\0'
July 2, 2003, 2:58 AM
Camel
[quote author=Eibro link=board=17;threadid=1756;start=0#msg13501 date=1057114707]
[quote author=Camel link=board=17;threadid=1756;start=0#msg13500 date=1057114568]
[quote author=DarkMinion link=board=17;threadid=1756;start=0#msg13412 date=1057069762]
Not unless you're using VB, in C++ a string would cause ipban :P
[/quote]
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
[/quote]No, string literals are terminated with '\0'
[/quote]
Not if you cast "PX2W" as a DWORD. :)
July 2, 2003, 2:59 AM
Skywing
[quote author=Camel link=board=17;threadid=1756;start=0#msg13503 date=1057114787]
[quote author=Eibro link=board=17;threadid=1756;start=0#msg13501 date=1057114707]
[quote author=Camel link=board=17;threadid=1756;start=0#msg13500 date=1057114568]
[quote author=DarkMinion link=board=17;threadid=1756;start=0#msg13412 date=1057069762]
Not unless you're using VB, in C++ a string would cause ipban :P
[/quote]
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
[/quote]No, string literals are terminated with '\0'
[/quote]
Not if you cast "PX2W" as a DWORD. :)
[/quote]

Please know what you're talking about before posting. If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".

Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321", not htonl('1234') == *(PDWORD)"4321".
July 2, 2003, 3:18 AM
Camel
[quote author=Skywing link=board=17;threadid=1756;start=0#msg13512 date=1057115921]
Please know what you're talking about before posting. If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".

Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321", not htonl('1234') == *(PDWORD)"4321".
[/quote]

Wow, I just read what I posted and realized how stupid it sounds before I even read your replies :o. I must have been thinking htonl('W2XP') == htonl(*(DWORD*)"PX2W").

[edit] [me=Camel] hates [ quote ] !![/me]
July 2, 2003, 3:32 AM

Search