Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Spilled on February 17, 2005, 10:29 AM

Title: System\Time Logged 0x26 Help
Post by: Spilled on February 17, 2005, 10:29 AM
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.
Title: Re: System\Time Logged 0x26 Help
Post by: Arta on February 17, 2005, 10:46 AM
it's a time_t isn't it?
Title: Re: System\Time Logged 0x26 Help
Post by: Spilled on February 17, 2005, 10:59 AM
I dunno im lost on what to do with this data because it doesnt come in high low format like System/Account Created does =\
Title: Re: System\Time Logged 0x26 Help
Post by: Arta on February 17, 2005, 12:44 PM
If it's a time_t then it's the number of seconds the user has spent online.
Title: Re: System\Time Logged 0x26 Help
Post by: Spilled on February 17, 2005, 01:03 PM
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:


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.

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?
Title: Re: System\Time Logged 0x26 Help
Post by: UserLoser. on February 17, 2005, 01:22 PM
It's the number of seconds you have spent online.
Title: Re: System\Time Logged 0x26 Help
Post by: Arta on February 17, 2005, 01:23 PM
That value is 1910 hours, or 79 days, or 11 weeks, or 2.75 months. Seems ok to me.
Title: Re: System\Time Logged 0x26 Help
Post by: Spilled on February 17, 2005, 01:52 PM
Hrmmm.. i c now thanks userloser and arta (once again) appreciated =\
Title: Re: System\Time Logged 0x26 Help
Post by: Zakath on February 17, 2005, 05:55 PM
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.
Title: Re: System\Time Logged 0x26 Help
Post by: CrAz3D on February 17, 2005, 06:18 PM
Quote from: Zakath on February 17, 2005, 05:55 PM
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.
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. 
Title: Re: System\Time Logged 0x26 Help
Post by: Arta on February 17, 2005, 06:41 PM
Quote from: Zakath on February 17, 2005, 05:55 PM
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.

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*
Title: Re: System\Time Logged 0x26 Help
Post by: Zakath on February 18, 2005, 12:29 PM
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.