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="Sledmore" data-source="post: 387094" data-attributes="member: 591"><p>Try this?</p><p></p><p>Before you go straight to the code, I've commented out the SubData bit - it's optional, if you want to add extra diamonds per subscription rank, simply add the integer to the other class.</p><p></p><p>Open up Habbo.cs</p><p></p><p>Find:</p><p></p><p>[PHP]public Habbo(int Id, string Username, int Rank,[/PHP]</p><p>Above that, add this:</p><p>[PHP]public int DiamondsUpdateTick { get; set; }[/PHP]</p><p>Find 'CheckCreditsTimer()' under the before 'if (this._creditsTickUpdate <= 0)' add the following:</p><p>[PHP]</p><p>this._diamondsTickUpdate--;</p><p></p><p>if (this._diamondsTickUpdate <= 0)</p><p>{</p><p> int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount;</p><p> </p><p> /*SubscriptionData SubData = null;</p><p> if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData))</p><p> {</p><p> DiamondUpdate += SubData.Diamonds;</p><p> }*/</p><p></p><p> this._diamonds += DiamondUpdate;</p><p></p><p> this._client.SendPacket(new HabboActivityPointNotificationComposer(this._duckets, DiamondUpdate, 5));</p><p></p><p> this.DiamondsUpdateTick = PlusStaticGameSettings.UserDiamondsUpdateTimer;</p><p>}</p><p>[/PHP]</p><p></p><p>Next open up PlusStaticGameSettings.cs and add the following anywhere:</p><p></p><p>[PHP]</p><p>/// <summary></p><p>/// The amount of diamonds a user will recieve every x minutes</p><p>/// </summary></p><p>public const int UserDiamondsUpdateAmount = 1;</p><p></p><p>/// <summary></p><p>/// The time a user will have to wait for Diamonds update in minutes</p><p>/// </summary></p><p>public const int UserDiamondsUpdateTimer = 1;[/PHP]</p></blockquote><p></p>
[QUOTE="Sledmore, post: 387094, member: 591"] Try this? Before you go straight to the code, I've commented out the SubData bit - it's optional, if you want to add extra diamonds per subscription rank, simply add the integer to the other class. Open up Habbo.cs Find: [PHP]public Habbo(int Id, string Username, int Rank,[/PHP] Above that, add this: [PHP]public int DiamondsUpdateTick { get; set; }[/PHP] Find 'CheckCreditsTimer()' under the before 'if (this._creditsTickUpdate <= 0)' add the following: [PHP] this._diamondsTickUpdate--; if (this._diamondsTickUpdate <= 0) { int DiamondUpdate = PlusStaticGameSettings.UserDiamondsUpdateAmount; /*SubscriptionData SubData = null; if (PlusEnvironment.GetGame().GetSubscriptionManager().TryGetSubscriptionData(this._vipRank, out SubData)) { DiamondUpdate += SubData.Diamonds; }*/ this._diamonds += DiamondUpdate; this._client.SendPacket(new HabboActivityPointNotificationComposer(this._duckets, DiamondUpdate, 5)); this.DiamondsUpdateTick = PlusStaticGameSettings.UserDiamondsUpdateTimer; } [/PHP] Next open up PlusStaticGameSettings.cs and add the following anywhere: [PHP] /// <summary> /// The amount of diamonds a user will recieve every x minutes /// </summary> public const int UserDiamondsUpdateAmount = 1; /// <summary> /// The time a user will have to wait for Diamonds update in minutes /// </summary> public const int UserDiamondsUpdateTimer = 1;[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEmu - Currency per hour and HC Display
Top