Valhalla Legends Forums Archive | Battle.net Bot Development | System\Time Logged 0x26 Help

AuthorMessageTime
Spilled[DW]
I just recently had help with packet 0x26 and had a topic going but i didnt want to revive a dead topic, im havin problems again with this Key, when i recieve that data it isnt in high/low format, how would i convert this one into months/days/hours format? i would have to convert to local time wouldnt i? all help is appreciated thanks everyone.
February 17, 2005, 4:29 PM
Arta
it's a time_t isn't it?
February 17, 2005, 4:46 PM
Spilled[DW]
I dunno im lost on what to do with this data because it doesnt come in high low format like System/Account Created does =\
February 17, 2005, 4:59 PM
Arta
If it's a time_t then it's the number of seconds the user has spent online.
February 17, 2005, 6:44 PM
Spilled[DW]
Nah, i doubt it is because the numbers not big enough... i load it 24/7 the number would be huge if it was in seconds =\

Edit:

[code]
17  Hide  Hide  76  Recv 
0000  FF 26 4C 00 01 00 00 00 04 00 00 00 45 00 00 00    .&L.........E...
0010  73 70 69 6C 6C 65 64 5B 64 77 5D 00 32 39 36 35    spilled[dw].2965
0020  34 38 31 35 20 32 39 38 31 39 31 31 30 31 30 00    4815 2981911010.
0030  32 39 36 39 33 32 31 39 20 32 37 30 31 39 32 35    29693219 2701925
0040  30 37 36 00 36 38 37 36 34 31 30 00                076.6876410.
[/code]
6876410 is the System/Time Logged Key because it is the last chr(0) split of the incoming data, no way thats in time_t format =\ Any ideas people?
February 17, 2005, 7:03 PM
UserLoser.
It's the number of seconds you have spent online.
February 17, 2005, 7:22 PM
Arta
That value is 1910 hours, or 79 days, or 11 weeks, or 2.75 months. Seems ok to me.
February 17, 2005, 7:23 PM
Spilled[DW]
Hrmmm.. i c now thanks userloser and arta (once again) appreciated =\
February 17, 2005, 7:52 PM
Zakath
It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.
February 17, 2005, 11:55 PM
CrAz3D
[quote author=Zakath link=topic=10600.msg100269#msg100269 date=1108684519]
It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.
[/quote]He's already posted & recieved answers about that.  He was wondering about the Time Logged & how to parse that, if you had read his post. 
February 18, 2005, 12:18 AM
Arta
[quote author=Zakath link=topic=10600.msg100269#msg100269 date=1108684519]
It's not a time_t, although it is the number of seconds you've been online. What you are receiving is a FILETIME structure.  Parsing those has been discussed before; search for it.
[/quote]

A FILETIME structure wouldn't contain the number of seconds spent logged on. It would contain the number of 100ns intervals logged on.

I'm pretty sure it is a time_t, but I haven't checked *shrug*
February 18, 2005, 12:41 AM
Zakath
The profile response to a time logged request comes in the form of a FILETIME. I was under the impression that was what he was dealing with...I don't know where he'd get a response that has a time_t in it.
February 18, 2005, 6:29 PM

Search