[IMPLEMENTED] timestamp for accounts

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

timestamp for accounts

Post by dragon slayer »

Edit - Implemented as FIRSTLOGIN tag in accounts.adm that is automatically set by UOX3 upon a player's first login.

when account is created ingame or inclient login any way

it should get a TIMESTAMP=8/11/2021 or something it really don't need the year it was created
it can just be the month and day

then a js command that can fetch the information

if(pUser.account.timestamp >= 30 days)
{
Do something crazy in code since they have HAD ACCOUNT for 30 days OR MORE
}
These users thanked the author dragon slayer for the post:
Xuri
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Great request, that's something that could be really useful for creating custom features (not just the Veteran Rewards stuff from regular UO). I've created a task to track this on the UOX3 Trello Board, so it's not forgotten.
-= Ho Eyo He Hum =-
punt
VIP
Posts: 244
Joined: Wed Mar 24, 2004 7:46 pm
Has thanked: 0
Been thanked: 9 times

Post by punt »

what back when, every character couldn't be deleted until after 7 days. We added that capability to Wolfpack. But we didn't do it on account.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I think for UOX3 only a "lastOn" timestamp is tracked. Creation (or first login, for accounts) timestamps for both accounts and specific characters could be useful for a variety of things; veteran rewards for accounts, character deletion rules, tracking character age, etc.
-= Ho Eyo He Hum =-
Post Reply