Pet Respect Given Achievement

Results 1 to 11 of 11
  1. #1
    Elite Member DjInTrouble is offline
    Member +Rank
    Dec 2010 Join Date
    The NetherlandsLocation
    180Posts

    Pet Respect Given Achievement

    First, Alter this database query:
    PHP Code:
    ALTER TABLE  `usersADD  `petrespectgivenINT100 NOT NULL DEFAULT  '0' 
    Without this you can't give any pet respects anymore.

    For achievement:
    PHP Code:
    INSERT INTO  `epic-db`.`achievements` (
    `
    id` ,
    `
    levels` ,
    `
    dynamic_badgelevel` ,
    `
    badge` ,
    `
    pixels_base` ,
    `
    pixels_multiplier`
    )
    VALUES (
    '1090',  '10',  '1',  'ACH_PetRespectGiver',  '80',  '1.25'
    ); 
    Okay, open C# and then your source.
    Open Messages/Requests/Rooms.cs

    Search for:
    PHP Code:
            private void RespectPet() 
    Change everything inside it in this:

    PHP Code:
                Room Room UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);

                if (
    Room == null || Room.IsPublic || (!Room.AllowPets && !Room.CheckRights(Sessiontrue)))
                {
                    return;
                }

                
    uint PetId Request.PopWiredUInt();
                
    RoomUser PetUser Room.GetPet(PetId);

                if (
    PetUser == null || PetUser.PetData == null || PetUser.PetData.OwnerId != Session.GetHabbo().Id)
                {
                    return;
                }

                
    PetUser.PetData.OnRespect();
                
    Session.GetHabbo().DailyPetRespectPoints--;

                
    DataRow PetRespectGiven;
                
    using (DatabaseClient dbClient UberEnvironment.GetDatabase().GetClient())
                {
                    
    dbClient.AddParamWithValue("userid"Session.GetHabbo().Id);
                    
    dbClient.ExecuteQuery("UPDATE users SET daily_pet_respect_points = daily_pet_respect_points - 1 AND petrespectgiven + 1 WHERE id = @userid LIMIT 1");
                    
    PetRespectGiven dbClient.ReadDataRow("SELECT SQL_NO_CACHE petrespectgiven FROM users WHERE id = '" Session.GetHabbo().Id "' LIMIT 1");
                }

                
    int PetRespGiven = (int)PetRespectGiven["petrespectgiven"];

                switch (
    PetRespGiven)
                {
                    case 
    1:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    2:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    3:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    4:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    5:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    6:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    7:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    8:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    9:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;

                    case 
    10:
                    
    UberEnvironment.GetGame().GetAchievementManager().UnlockAchievement(Session10901);
                    return;
                } 
    Don't forget the SQL queries.
    Like me if you like thread
    Last edited by DjInTrouble; 04-02-11 at 05:18 AM. Reason: achievement id error


  2. #2
    Sorcerer Supreme bartskinu is offline
    Member +Rank
    Dec 2007 Join Date
    320Posts

    Re: Pet Respect Given Achievement

    Good work! Thanks!

  3. #3
    Banned rafa95123 is offline
    BannedRank
    May 2009 Join Date
    /home/RaphaLocation
    564Posts

    Re: Pet Respect Given Achievement

    Awesome, thanks for sharing man ^^

  4. #4
    Elite Member LucasReis is offline
    Member +Rank
    Jun 2009 Join Date
    Sorocaba, BraziLocation
    206Posts

    Re: Pet Respect Given Achievement

    Nice and thanks !

  5. #5
    Member efferinie is offline
    MemberRank
    Aug 2008 Join Date
    69Posts

    Re: Pet Respect Given Achievement

    Very Nice Release..

    Keep it up!

  6. #6
    Elite Member DjInTrouble is offline
    Member +Rank
    Dec 2010 Join Date
    The NetherlandsLocation
    180Posts

    Re: Pet Respect Given Achievement

    Thanks <3

  7. #7
    Elite Member simoneihg is offline
    Member +Rank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: Pet Respect Given Achievement

    Good thank you!

  8. #8
    hi i'm robbie Roper is offline
    Grand MasterRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: Pet Respect Given Achievement

    Great release, however it is exactly the same as the one from Sciaxx.

  9. #9
    Elite Member DjInTrouble is offline
    Member +Rank
    Dec 2010 Join Date
    The NetherlandsLocation
    180Posts

    Re: Pet Respect Given Achievement

    Yeah but I coded it on my own I don't go on sciax anymore.

  10. #10
    Member York is offline
    MemberRank
    Sep 2010 Join Date
    25Posts

    Re: Pet Respect Given Achievement

    Quote Originally Posted by Roper View Post
    Great release, however it is exactly the same as the one from Sciaxx.
    Well not many people know abut @Sciaxx release so its still good. And I am sure this is legitimately his, Good job!

  11. #11
    Elite Member DjInTrouble is offline
    Member +Rank
    Dec 2010 Join Date
    The NetherlandsLocation
    180Posts

    Re: Pet Respect Given Achievement

    If I copy something from another forum I always give credits.
    But this is completely by me!

    Watch the Release section, I'll post EpicEMu r3.0 in a few days(no lie, everything is fixed)



Advertisement