slash play, playing time location in database?
When you type the /play command it tells you how much playing time your character has on the server. Does anyone know where this info is kept in the database?
|
It's in the profile blob.
This SQL query calculates the 'time entitled on the account' by summing up the time played in minutes across all characters on an account, so you may be able to adapt it for your needs: Code:
select sum(ascii(substring(profile, 237, 1)) + (ascii(substring(profile, 238, 1)) * 256) + |
Thanks Derision. I was afraid it was going to be in the blob. But you've removed that problem.
It looks like the number that your query yields is in minutes played. Thanks again, the query is awesome. |
The sum function had me stumped for a bit so I am posting my version for posterity.
Code:
select id, account_id, name, zoneid, class, level, |
All times are GMT -4. The time now is 08:15 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.