Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[UberEmu] - RoomRaider Achivement's 100%

Status
Not open for further replies.
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
Ok,... here is my RoomRaider achivements code's :D

Search into /HabboHotel/Users/Habbo.cs for:
Code:
public void OnEnterRoom(uint RoomId)

After:
Code:
Messenger.OnStatusChanged(false);

Place:
Code:
            DataTable Data = null;

            using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
            {
                Data = dbClient.ReadDataTable("SELECT * FROM user_roomvisits WHERE user_id = '" + Id + "'");
            }

            int i = 0;

            if (Data != null)
            {
                foreach (DataRow Row in Data.Rows)
                {
                        i++;
                }
            }

            if (i >= 5) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 1); }
            if (i >= 15) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 2); }
            if (i >= 30) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 3); }
            if (i >= 50) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 4); }
            if (i >= 60) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 5); }
            if (i >= 80) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 6); }
            if (i >= 120) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 7); }
            if (i >= 140) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 8); }
            if (i >= 160) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 9); }
            if (i >= 200) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 12, 10); }

Into sql run:
Code:
INSERT INTO `achievements` (`id`, `levels`, `dynamic_badgelevel`, `badge`, `pixels_base`, `pixels_multiplier`) VALUES
(12, 10, '1', 'ACH_RoomEntry', 5, 0);

rate plz 0/10 :thumbup1:

credits:
98% me
1% meth0d for mading achivements system
1% to a habbo fan site for the information about achivements
 
Banned
Banned
Joined
Jan 9, 2010
Messages
1,850
Reaction score
503
Woot, thanks mate! 10/10

[DUTCH]Hierbij bied ik ook me excuses aan, sorry dat ik zo bot en onaardig tegen je deed :p, Maar heb ook problemen thuis en dat reageer ik dan met dat een beetje af, dus sorry, Maar eh je vertaling van je hotel is wel echt slecht! :p[/DUTCH]
 
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
Woot, thanks mate! 10/10

[DUTCH]Hierbij bied ik ook me excuses aan, sorry dat ik zo bot en onaardig tegen je deed :p, Maar heb ook problemen thuis en dat reageer ik dan met dat een beetje af, dus sorry, Maar eh je vertaling van je hotel is wel echt slecht! :p[/DUTCH]

ty,......
[DUTCH]bij mij ook lastig thuis,... me vader huisplaatsing etz :p enuh de vertaling is tegen me zin in gemaakt door davidaap123 (een goede vriend van me) ook excuses,..
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Jan 25, 2009
Messages
1,539
Reaction score
4
holy poop, this is awesome :O
 
Newbie Spellweaver
Joined
Jul 28, 2009
Messages
35
Reaction score
1
Nice! tried to make a respect achievement-code.. i'm not a good coder but could this maybe work?
Code:
            DataTable Data = null;

            using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
            {
                Data = dbClient.ReadDataTable("SELECT * FROM users WHERE user_id = '" + Id + WHERE respect = "'");
            }

            int i = 0;

            if (Data != null)
            {
                foreach (DataRow Row in Data.Rows)
                {
                        i++;
                }
            }

            if (i >= 1) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 1); }
            if (i >= 5) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 2); }
            if (i >= 10) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 3); }
            if (i >= 50) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 4); }
            if (i >= 100) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 5); }
            if (i >= 200) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 6); }
            if (i >= 300) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 7); }
            if (i >= 600) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 8); }
            if (i >= 1000) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 9); }
            if (i >= 1200) {
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(GetClient(), 26, 10); }
I don't know where i should put it..

Code:
INSERT INTO `achievements` (`id`, `levels`, `dynamic_badgelevel`, `badge`, `pixels_base`, `pixels_multiplier`) VALUES
(26, 10, '1', 'ACH_RespectEarned', 5, 0);

Credits to toperwin for the achievement code.
 
Last edited:
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
Nice! tried to make a respect achievement-code.. i'm not a good coder but could this maybe work?
........................

i will try to made more achivements,... but,.. atm im busy with 90-100% pets ;p
(look at my signature text)
after i released that i will made respect and other achivements ;p
 
Newbie Spellweaver
Joined
Aug 26, 2007
Messages
67
Reaction score
10
Error:
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
Data = dbClient.ReadDataTable("SELECT * FROM users WHERE user_id = '" + Id + "'");
}

U dont use WHERE in query 2 times..
 
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
Error:
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
Data = dbClient.ReadDataTable("SELECT * FROM users WHERE user_id = '" + Id + "'");
}

U dont use WHERE in query 2 times..

thats about the respect achivements from stoffe89 ???
i see,... but he say'd already hims code dont work,... and guess for a cleanup ;p i'm busy with more achivements ,....
i will release in 0-2 days some new achivements ;p this whas just a try'out ;p i will made more ;)
 
What about no.
Joined
Nov 7, 2009
Messages
423
Reaction score
210
ty,......
[DUTCH]bij mij ook lastig thuis,... me vader huisplaatsing etz :p enuh de vertaling is tegen me zin in gemaakt door davidaap123 (een goede vriend van me) ook excuses,..

[DUTCH]jij vertaalt het niet? dus moet ik het doen -,-
 
Last edited:
Experienced Elementalist
Joined
Jan 24, 2009
Messages
226
Reaction score
166
[DUTCH]jij vertaalt het niet? dus moet ik het doen -,-

[OFFTOPPIC][DUTCH]
;p maakt mij niet uit,... het is goed dat je het deed ;p ik deed het tog niet,.. maar ik zij da je beter alles van habbo.nl kon kopiere ;p maar jij deed dat niet helemaal volgensmij ;p alsnog boeie,... gedaan is gedaan,.. en ik vind ut best :eek:tt1:
 
What about no.
Joined
Nov 7, 2009
Messages
423
Reaction score
210
[OFFTOPPIC][DUTCH]
;p maakt mij niet uit,... het is goed dat je het deed ;p ik deed het tog niet,.. maar ik zij da je beter alles van habbo.nl kon kopiere ;p maar jij deed dat niet helemaal volgensmij ;p alsnog boeie,... gedaan is gedaan,.. en ik vind ut best :eek:tt1:
ike ook tog :):
 
Initiate Mage
Joined
Sep 26, 2010
Messages
0
Reaction score
0
I found 2 bugs: The achievements will not update in the achievement tab and you can enter your own rooms to get the achievements.
 
Banned
Banned
Joined
Jan 9, 2010
Messages
1,850
Reaction score
503
[OFFTOPIC]Davidaap, just wait for my UberCMS edit :p, It has an language-translate-system included and many more, so you don't need to translate anything anymore :D[/OFFTOPIC]
 
Newbie Spellweaver
Joined
Aug 26, 2007
Messages
67
Reaction score
10
I found 2 bugs: The achievements will not update in the achievement tab and you can enter your own rooms to get the achievements.

Only one bug to you: Will Not Update The achievements in the achievement tab

For me it worked, just adapted the code for it. See the topic, is working 100%, I tried:
http://forum.ragezone.com/f353/uberemu-achievements-695466/


And for this bug: Can you enter your own rooms to get the achievements

This is not a bug, you can earn achievements entering any room, public space.


If I'm wrong, I can do with that win coming in the gains of the fourth only in rooms of others ..


And this forum, the default language is English .. if it is to speak these languages, I start to speak Portuguese here and all you have to translate!
 
Last edited:
Status
Not open for further replies.
Back
Top