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?this was already fixed ty though
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 { } }
You just posted the fix, all you do is add another this method for diamonds.Maybe share how you done it for people in the future?
Oh well there you goYou just posted the fix, all you do is add another this method for diamonds.