Added GetAccountAge() functionality to Perl so people can grant veteran AAs based on account age.

This commit is contained in:
Kinglykrab
2015-08-08 17:09:57 -04:00
parent e0d65df4de
commit ede969a614
3 changed files with 32 additions and 0 deletions
+4
View File
@@ -8667,3 +8667,7 @@ uint32 Client::GetMoney(uint8 type, uint8 subtype) {
}
return value;
}
int Client::GetAccountAge() {
return (time(nullptr) - GetAccountCreation());
}