Diamond Timer plus r2

Status
Not open for further replies.

Adores

New Member
Jul 16, 2015
10
6
hello, I have been trying to figure out how to add diamonds to the currency timer for plus emu r2 if anyone could help it'd be much appreciated thanks!
 

Stee

Oh hot damn. This is my jam.
Jun 28, 2011
285
159
Hey! I found this in Habbo.cs

I'm not a code master but I assume you'd add it here and add it into your table in server serttings.

Let me know how it goes for you :)

Line: 1062

C++:
        public void CheckCreditsTimer()
        {
            try
            {
                this._creditsTickUpdate--;

                if (this._creditsTickUpdate <= 0)
                {
                    int CreditUpdate = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.credit_reward"));
                    int DucketUpdate = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.ducket_reward"));

                    SubscriptionData SubData = null;
                    if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))
                    {
                        CreditUpdate += SubData.Credits;
                        DucketUpdate += SubData.Duckets;
                    }

                    this._credits += CreditUpdate;
                    this._duckets += DucketUpdate;

                    this._client.SendPacket(new CreditBalanceComposer(this._credits));
                    this._client.SendPacket(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));

                    this.CreditsUpdateTick = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.tick"));
                }
            }
            catch { }
        }
 

Hypothesis

Programmer
Jan 6, 2019
524
361
Hey! I found this in Habbo.cs

I'm not a code master but I assume you'd add it here and add it into your table in server serttings.

Let me know how it goes for you :)

Line: 1062

C++:
        public void CheckCreditsTimer()
        {
            try
            {
                this._creditsTickUpdate--;

                if (this._creditsTickUpdate <= 0)
                {
                    int CreditUpdate = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.credit_reward"));
                    int DucketUpdate = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.ducket_reward"));

                    SubscriptionData SubData = null;
                    if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))
                    {
                        CreditUpdate += SubData.Credits;
                        DucketUpdate += SubData.Duckets;
                    }

                    this._credits += CreditUpdate;
                    this._duckets += DucketUpdate;

                    this._client.SendPacket(new CreditBalanceComposer(this._credits));
                    this._client.SendPacket(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));

                    this.CreditsUpdateTick = Convert.ToInt32(PlusEnvironment.GetSettingsManager().TryGetValue("user.currency_scheduler.tick"));
                }
            }
            catch { }
        }
Maybe share how you done it for people in the future?
You just posted the fix, all you do is add another this method for diamonds.
 
Status
Not open for further replies.

Users who are viewing this thread

Top