OnlineTime

Results 1 to 5 of 5
  1. #1
    Sorcerer Supreme Yannickzz is offline
    Member +Rank
    May 2009 Join Date
    The NetherlandsLocation
    348Posts

    OnlineTime

    Hi all,

    I'm using Skybird Emulator at the moment but I'm having difficulties when it comes to the user_stats OnlineTime function. It stays at 0, but it should increment every minute that a user is online. Does anyone have any idea how to fix this?

    Regards,
    Yannick


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: OnlineTime

    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 :)

  3. #3
    Sorcerer Supreme Yannickzz is offline
    Member +Rank
    May 2009 Join Date
    The NetherlandsLocation
    348Posts

    Re: OnlineTime

    Quote Originally Posted by HillBilly View Post
    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;
                }
            }
    Last edited by Yannickzz; 06-02-14 at 06:56 PM.

  4. #4
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: OnlineTime

    I don't know. Give it a try. I'm not that familiar with emulators.

  5. #5
    Sorcerer Supreme Yannickzz is offline
    Member +Rank
    May 2009 Join Date
    The NetherlandsLocation
    348Posts

    Re: OnlineTime

    Well, it didn't work as it should have been working. So does anyone have an 'official' fix to make it work as on Habbo?



Advertisement