
Originally Posted by
HillBilly
Don't think it has been implemented.
Shouldn't be hard to log actually. Just create a variable that registers the timestamp a user has logged in and when he disconnects that the tmestamp - old timestamp and add that to the database :)
Allright, thanks! Otherwise it could be done with a cronjob, I guess. But would that lagg the database with around 200 online? Or would this code work?
Code:
internal void Ping()
{
Habbo habbo = this.Session.GetHabbo();
habbo.PointsOnline++;
ButterflyEnvironment.GetGame().GetAchievementManager().ProgressUserAchievement(this.Session, "ACH_AllTimeHotelPresence", 1);
if ((this.Session.GetHabbo().SnowWar != null) && (this.Session.GetHabbo().SnowStep == 2))
{
this.Session.GetHabbo().SnowPing = true;
}
}