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]Getting Consecutive Login Achievements & True Habbo Achievements Working [Help]
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="JayC" data-source="post: 431514" data-attributes="member: 36373"><p><strong>Database</strong></p><p>Your achievements table is a record of each achievement that users can earn.</p><p></p><p>You would first need to create an achievement, lets say ACH_LoggedInDays is your group_name</p><p>So you would fill out the rest of the row as wanted.</p><p>Category = What section it appears under when users view achievments</p><p>Level would be the step it is. For example 2 ACH_LoggedInDays</p><p>Reward Pixels and Points would be easily understood.</p><p></p><p>Progress Needed would be the number of days you want them to login.</p><p></p><p>Under the users table you have a field called 'last_online' - You will utilize this field</p><p>Under user_stats field add an int column (11,0) to handle how many times the user has logged in , in a row</p><p>-----------------------------------</p><p><strong>Emulator</strong></p><p></p><p>Now, Inside of your emulator (After the Habbo Class is fully generated)</p><p>You will take the last_online column</p><p></p><p>If it is greater than 24 hours ago, and less than 48 hours ago - You will add 1 to the value keeping track of the amount of times the user has logged in, in a row.</p><p></p><p>Then have it call to a class that checks the achievement level</p><p></p><p>If the user has the achievement don't worry about it.</p><p></p><p></p><p>Most of the achievement giving code can be found in the emulator, you can look to see how other columns are grabbed for the Habbo and just add it that way - but the rest will require a bit of thought / coding.</p></blockquote><p></p>
[QUOTE="JayC, post: 431514, member: 36373"] [B]Database[/B] Your achievements table is a record of each achievement that users can earn. You would first need to create an achievement, lets say ACH_LoggedInDays is your group_name So you would fill out the rest of the row as wanted. Category = What section it appears under when users view achievments Level would be the step it is. For example 2 ACH_LoggedInDays Reward Pixels and Points would be easily understood. Progress Needed would be the number of days you want them to login. Under the users table you have a field called 'last_online' - You will utilize this field Under user_stats field add an int column (11,0) to handle how many times the user has logged in , in a row ----------------------------------- [B]Emulator[/B] Now, Inside of your emulator (After the Habbo Class is fully generated) You will take the last_online column If it is greater than 24 hours ago, and less than 48 hours ago - You will add 1 to the value keeping track of the amount of times the user has logged in, in a row. Then have it call to a class that checks the achievement level If the user has the achievement don't worry about it. Most of the achievement giving code can be found in the emulator, you can look to see how other columns are grabbed for the Habbo and just add it that way - but the rest will require a bit of thought / coding. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[PlusEMU]Getting Consecutive Login Achievements & True Habbo Achievements Working [Help]
Top