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!

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.
Back
Top