Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEmu - Currency per hour and HC Display
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Altercationz" data-source="post: 386469" data-attributes="member: 59038"><p>If you want to have the diamonds set per hour, and credits per 15 minutes to have an economy based on diamonds, just replace your credit timer with the following:</p><p>[CODE]</p><p>public void CheckCreditsTimer()</p><p> {</p><p> try</p><p> {</p><p> this._creditsTickUpdate--;</p><p> this._DiamondsTick--;</p><p></p><p> if (this._creditsTickUpdate <= 0)</p><p> {</p><p> int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount;</p><p> int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount;</p><p> int DiamondsUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;</p><p></p><p> SubscriptionData SubData = null;</p><p> if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))</p><p> {</p><p> CreditUpdate += SubData.Credits;</p><p> DucketUpdate += SubData.Duckets;</p><p> }</p><p></p><p> this._credits += CreditUpdate;</p><p> this._duckets += DucketUpdate;</p><p> </p><p></p><p> this._client.SendMessage(new CreditBalanceComposer(this._credits));</p><p> this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate));</p><p></p><p> this.CreditsUpdateTick = PlusStaticGameSettings.UserCreditsUpdateTimer;</p><p> }</p><p></p><p> if (_DiamondsTick <= 0)</p><p> {</p><p> int DiamondsUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;</p><p> SubscriptionData SubData = null;</p><p> if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))</p><p> {</p><p> DiamondsUpdate = SubData.Diamonds;</p><p> }</p><p> this._diamonds += DiamondsUpdate;</p><p> this._client.SendMessage(new HabboActivityPointNotificationComposer(this._diamonds, DiamondsUpdate, 5));</p><p> this.DiamondsTick = PlusStaticGameSettings.DiamondUpdateTimer;</p><p> }</p><p> }</p><p> catch { }</p><p> }</p><p>[/CODE]</p><p>Tested & works perfectly.</p></blockquote><p></p>
[QUOTE="Altercationz, post: 386469, member: 59038"] If you want to have the diamonds set per hour, and credits per 15 minutes to have an economy based on diamonds, just replace your credit timer with the following: [CODE] public void CheckCreditsTimer() { try { this._creditsTickUpdate--; this._DiamondsTick--; if (this._creditsTickUpdate <= 0) { int CreditUpdate = PlusStaticGameSettings.UserCreditsUpdateAmount; int DucketUpdate = PlusStaticGameSettings.UserPixelsUpdateAmount; int DiamondsUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount; 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.SendMessage(new CreditBalanceComposer(this._credits)); this._client.SendMessage(new HabboActivityPointNotificationComposer(this._duckets, DucketUpdate)); this.CreditsUpdateTick = PlusStaticGameSettings.UserCreditsUpdateTimer; } if (_DiamondsTick <= 0) { int DiamondsUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount; SubscriptionData SubData = null; if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData)) { DiamondsUpdate = SubData.Diamonds; } this._diamonds += DiamondsUpdate; this._client.SendMessage(new HabboActivityPointNotificationComposer(this._diamonds, DiamondsUpdate, 5)); this.DiamondsTick = PlusStaticGameSettings.DiamondUpdateTimer; } } catch { } } [/CODE] Tested & works perfectly. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEmu - Currency per hour and HC Display
Top