Valhalla Legends Forums Archive | Battle.net Bot Development | Profile Stuff..

AuthorMessageTime
Gandalf
And what about the Created Account date, it shows: "29475313 2842110102" What i have to do to show me the normal date?
February 8, 2004, 3:48 AM
Newby
Create a sub to parse it.
February 8, 2004, 3:54 AM
UserLoser.
It's a filetime, one part is lowdatetime, other is highdate time... Look into the SYSTEMTIME and FILETIME structs, along with FileTimeToSystemTime()
February 8, 2004, 3:56 AM
Gandalf
Whats wrong with this:
Private Function ReturnDHMS(iSec1 As Single) As String

Dim iMin As Single
Dim iHrs As Single
Dim iDay As Single
Dim iSec As Single

iSec = iSec1

iHrs = (iMin \ 60)
iMin = (iSec \ 60)
iSec = (iSec Mod 60)

If iHrs >= 24 Then
iDay = iHrs \ 24
iHrs = iHrs Mod 24
End If

ReturnDHMS = "Day:" & Str(iDay) & " Hrs:" & Str(iHrs) & " Min: " & Str(iMin) & " Sec: " & Str(iSec)

End Function
February 8, 2004, 4:21 AM
Lenny
Well the other profile keys are sent as unsigned dwords in the form of Filetimes...not seconds


Bnet sends you it in
HIGHdate
LOWdate
order.

You need to also convert it using FileTimeToLocalFileTime() before using FileTimeToSystemTime()
February 8, 2004, 4:21 AM
UserLoser.
[quote author=Lenny link=board=17;threadid=5163;start=0#msg43052 date=1076214115]
You need to also convert it using FileTimeToLocalFileTime() before using FileTimeToSystemTime()
[/quote]

That's not true
February 8, 2004, 4:34 AM
Lenny
Well I assume most people would want the local time they created the account, not the time a bnet server recorded it.....
February 8, 2004, 4:50 AM
Spht
[quote author=Lenny link=board=17;threadid=5163;start=0#msg43055 date=1076215828]
Well I assume most people would want the local time they created the account, not the time a bnet server recorded it.....
[/quote]

If you sent Battle.net proper location information, it'll return the time in your timezone.
February 8, 2004, 4:52 AM
LoRd
[Quote]If you sent Battle.net proper location information, it'll return the time in your timezone.[/Quote]

That's not true for profile keys.
February 8, 2004, 6:02 AM
UserLoser.
TimeZone is either sent in the 7th DWORD of 0x50 (SID_AUTH_INFO), or the 5th DWORD of 0x12 (SID_LOCALEINFO)...

Correct information to send is the Bias + StandardBias from TIME_ZONE_INFORMATION struct, which can be retrieved using GetTimeZoneInformation()

Note: 0x12 is only used by either W2BN/JSTR/DRTL/DSHR, while 0x50 can be used for any product
February 8, 2004, 6:10 AM
Spht
[quote author=LoRd[nK] link=board=17;threadid=5163;start=0#msg43079 date=1076220164]
[Quote]If you sent Battle.net proper location information, it'll return the time in your timezone.[/Quote]

That's not true for profile keys.
[/quote]

Probably because profiles contain no time information? I'm referring to the system times stored on the Battle.net server for things like last game, last logon, etcetera.
February 8, 2004, 7:13 PM
LoRd
[Quote]
From BnetDocs:

SID_READUSERDATA (0x26)
Packet ID: 0x26
Direction: Server -> Client (Received)
Format:
Help (DWORD)       Number of accounts
(DWORD)       Number of keys
(DWORD)       Request ID
(STRING[])    Requested Key Values
[/Quote]

I feel the term "profile keys" fits quite well with the information you'd put into the string array of a user data request, if you see it differently, so be it.

Aside from that, when the information returned from 0x26 is in FileTime format, the FileTime is sent in Battle.net Time, not Local Time, no matter if the information you send in 0x50 is accurate or not.

Now, I'm done arguing about something that I know is right.
February 8, 2004, 7:54 PM
Spht
[quote author=LoRd[nK] link=board=17;threadid=5163;start=0#msg43162 date=1076270080]
[Quote]
From BnetDocs:

SID_READUSERDATA (0x26)
Packet ID: 0x26
Direction: Server -> Client (Received)
Format:
Help (DWORD)       Number of accounts
(DWORD)       Number of keys
(DWORD)       Request ID
(STRING[])    Requested Key Values
[/Quote]

I feel the term "profile keys" fits quite well with the information you'd put into the string array of a user data request, if you see it differently, so be it.

Aside from that, when the information returned from 0x26 is in FileTime format, the FileTime is sent in Battle.net Time, not Local Time, no matter if the information you send in 0x50 is accurate or not.

Now, I'm done arguing about something that I know is right.
[/quote]

Yes, I was referring to whoever said using FileTimeToLocalFileTime to convert it to your local time would be a valid solution.
February 8, 2004, 7:57 PM
LoRd
[Quote]
If you sent Battle.net proper location information, it'll return the time in your timezone.

Yes, I was referring to whoever said using FileTimeToLocalFileTime to convert it to your local time would be a valid solution.
[/Quote]
It is, but after that you'd still have to convert it to SystemTime to get the "real" date/time.
February 8, 2004, 7:58 PM
Spht
[quote author=LoRd[nK] link=board=17;threadid=5163;start=0#msg43165 date=1076270322]
[Quote]
Yes, I was referring to whoever said using FileTimeToLocalFileTime to convert it to your local time would be a valid solution.
[/Quote]
It is, but after that you'd still have to convert it to SystemTime to get the "real" date/time.
[/quote]

Assuming you want the time as a SYSTEMTIME structure, which isn't a requirement.
February 8, 2004, 8:03 PM
Gandalf
Can u give me the source, is just this is so confusing, i have been trying for 3 days now.
February 8, 2004, 9:23 PM
Kp
[quote author=Gandalf link=board=17;threadid=5163;start=15#msg43173 date=1076275400]
Can u give me the source, is just this is so confusing, i have been trying for 3 days now.[/quote]

Parse the two numbers into unsigned longs. Store those into a FILETIME structure. Call FileTimeToSystemTime on the resulting structure. Display the result. It's really not that hard...
February 8, 2004, 9:31 PM
hismajesty
[quote author=Gandalf link=board=17;threadid=5163;start=15#msg43173 date=1076275400]
Can u give me the source, is just this is so confusing, i have been trying for 3 days now.
[/quote]

try harder
February 8, 2004, 10:07 PM
o.OV
Currency
February 9, 2004, 1:46 AM
Spht
[quote author=o.OV link=board=17;threadid=5163;start=15#msg43219 date=1076291183]
Currency
[/quote]

In keeping with standards, the FILETIME structure should be used.
February 9, 2004, 2:05 AM
Gandalf
Hey, and someone know the Profile Request Values?
Like:
"Profile\Sex"
"System\Last Logon"
I need all of them, i need some fun :O.
February 10, 2004, 4:17 AM
Kp
[quote author=Gandalf link=board=17;threadid=5163;start=15#msg43463 date=1076386654]Hey, and someone know the Profile Request Values?
Like:
"Profile\Sex"
"System\Last Logon"
I need all of them, i need some fun :O.[/quote]

Check a packet log. It's all requested automatically when you log on.
February 10, 2004, 3:10 PM
UserLoser.
[quote author=Kp link=board=17;threadid=5163;start=15#msg43504 date=1076425837]
[quote author=Gandalf link=board=17;threadid=5163;start=15#msg43463 date=1076386654]Hey, and someone know the Profile Request Values?
Like:
"Profile\Sex"
"System\Last Logon"
I need all of them, i need some fun :O.[/quote]

Check a packet log. It's all requested automatically when you log on.
[/quote]

System keys are not - Who first knew of these and how?
February 11, 2004, 12:32 AM
UserLoser.
To expand this topic, what's the max length you can set Description, Location, and Sex to?
February 11, 2004, 1:57 AM

Search