• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Respect Achivement

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jun 29, 2009
Messages
53
Reaction score
24
Search "GiveRespect" inside Room.cs and put this under it

Code:
            #region Respect Achivement

            if (User.GetClient().GetHabbo().Respect == 3)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 1);

            if (User.GetClient().GetHabbo().Respect == 6)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 2);

            if (User.GetClient().GetHabbo().Respect == 16)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 3);

            if (User.GetClient().GetHabbo().Respect == 66)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 4);

            if (User.GetClient().GetHabbo().Respect == 166)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 5);

            if (User.GetClient().GetHabbo().Respect == 366)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 6);

            if (User.GetClient().GetHabbo().Respect == 566)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 7);

            if (User.GetClient().GetHabbo().Respect == 766)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 8);

            if (User.GetClient().GetHabbo().Respect == 966)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 9);

            if (User.GetClient().GetHabbo().Respect == 1166)
                UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(User.GetClient(), 13, 10);

            #endregion

Add this SQL:
Code:
INSERT INTO `achievements` (`id`, `levels`, `dynamic_badgelevel`, `badge`, `pixels_base`, `pixels_multiplier`) VALUES
(13, 10, '1', 'ACH_RespectEarned', 10, 1.25),

Enjoy
 
Master Summoner
Joined
Jul 12, 2009
Messages
530
Reaction score
655
There is a little bug in it, change the == to >=.

(I coded this to a while ago *dont released*)
 
Status
Not open for further replies.