Diamonds Timer just doesn't work

Zachariah

Active Member
Aug 26, 2017
177
78
Code:
                    int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;
                    int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;
                    int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;

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

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

                    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));
                    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._diamonds, DiamondUpdate, 5));
This is how mine looks, it updates it. But my PlusStatic is different, mine updates through the database, what I mean is that I put how much people get in database, and how long etc. Normally i've seen it coded just to give the amount the emu says. Let me know if this is how yours looks or not.
 

Spookyboy3000

Member
Apr 28, 2020
42
6
Code:
                    int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;
                    int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;
                    int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;

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

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

                    this._client.SendMessage(new CreditBalanceComposer(this._credits));
                    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));
                    this._client.SendMessage(new HabboActivityPointNotificationComposer(this._diamonds, DiamondUpdate, 5));
This is how mine looks, it updates it. But my PlusStatic is different, mine updates through the database, what I mean is that I put how much people get in database, and how long etc. Normally i've seen it coded just to give the amount the emu says. Let me know if this is how yours looks or not.

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

if (this._creditsTickUpdate <= 0)
{
int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;
int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;
int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;

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

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

this._client.SendMessage(new CreditBalanceComposer(this._credits));
this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));
this._client.SendMessage(new HabboActivityPointNotificationComposer(this.Diamonds, DiamondUpdate, 5));
this.CreditsUpdateTick = PlusStaticGameSettings.UserCreditsUpdateTimer;
}
}
catch { }
}
Post automatically merged:

that is mine
 

Zachariah

Active Member
Aug 26, 2017
177
78
Make em the pay for it instead
???
public void CheckCreditsTimer()
{
try
{
this._creditsTickUpdate--;

if (this._creditsTickUpdate <= 0)
{
int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;
int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;
int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;

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

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

this._client.SendMessage(new CreditBalanceComposer(this._credits));
this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));
this._client.SendMessage(new HabboActivityPointNotificationComposer(this.Diamonds, DiamondUpdate, 5));
this.CreditsUpdateTick = PlusStaticGameSettings.UserCreditsUpdateTimer;
}
}
catch { }
}
Post automatically merged:

that is mine
In your PublicStaticGameSetting.cs does it have a UserDiamondsUpdateAmount public static
 

Zachariah

Active Member
Aug 26, 2017
177
78
You must be registered for see images attach


Type shutdown in the Emulator. Then press start. after it debugs and etc.. Type shutdown again so emu isn't in the debug mode type shit
 

Spookyboy3000

Member
Apr 28, 2020
42
6
So i must debug habbo.cs or plusstaticgamesetting?
Post automatically merged:

debug is grey in visual studio
Post automatically merged:

I can't click on it
Post automatically merged:

Now i can debug
Post automatically merged:

What must i debug habbo.cs or plusstaticgamesetting.cs
 
Last edited:

Users who are viewing this thread

Top