[C#] HoloEMU "Traveller" Achievement System

Page 1 of 2 12 LastLast
Results 1 to 25 of 26
  1. #1
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    [C#] HoloEMU "Traveller" Achievement System

    Hello,

    I'm currently making an edit of Ho0lograph Emulator, and i thought i'd release one of the features i've implemented into it. Basically, it is the "Traveller" achievement system fully coded and tested.

    Please note that this is currently only for HoloEMU TDP/TDBP edition, however a non-TDBP one will be released soon.

    How to install:
    1. Search for case "@H":
    2. JUst before the 'break;' - paste the following code:
    PHP Code:
    #region Login Achievements
    using (DatabaseClient dbClient Eucalypt.dbManager.GetClient())
    {
        
    dbClient.runQuery("UPDATE users SET logins = logins + 1 WHERE id = '" userID "'");
            
    int logins dbClient.getInt("SELECT logins FROM users WHERE id = '" userID "'");
            if (
    logins == 1)
            {
                
    dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login1','" userID "','0','1')");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: Your first login");
            }
            else if (
    logins == 5)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login2' WHERE badgeid = 'ACH_Login1' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 5 logins!");
            }
            else if (
    logins == 10)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login3' WHERE badgeid = 'ACH_Login2' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 10 logins!");
            }
            else if (
    logins == 20)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login4' WHERE badgeid = 'ACH_Login3' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 20 logins!");
            }
            else if (
    logins == 30)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login5' WHERE badgeid = 'ACH_Login4' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 30 logins!");
            }
            else if (
    logins == 40)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login6' WHERE badgeid = 'ACH_Login5' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 40 logins!");
            }
            else if (
    logins == 50)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login7' WHERE badgeid = 'ACH_Login6' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 50 logins!");
            }
            else if (
    logins == 60)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login8' WHERE badgeid = 'ACH_Login7' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 60 logins!");
            }
            else if (
    logins == 70)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login9' WHERE badgeid = 'ACH_Login8' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: 70 logins!");
            }
            else if (
    logins == 80)
            {
                
    dbClient.runQuery("UPDATE users_badges SET badgeid = 'ACH_Login10' WHERE badgeid = 'ACH_Login9' AND userid = '" userID "'");
                
    refreshBadges();
                
    this.sendData("BKNew Achievement unlocked: Tra");
            }
    }
    #endregion 
    3. Now press f5, and your done!

    What it does is on each achievement level(1 login, 5 logins etc..)- it will update your badge and remove the previous one you earnt.

    If you like this release, then I am more likely to release more things like this.

    Required Badges:
    http://images.habbo.com/c_images/alb...ACH_Login1.gif
    http://images.habbo.com/c_images/alb...ACH_Login2.gif
    http://images.habbo.com/c_images/alb...ACH_Login3.gif
    http://images.habbo.com/c_images/alb...ACH_Login4.gif
    http://images.habbo.com/c_images/alb...ACH_Login5.gif
    http://images.habbo.com/c_images/alb...ACH_Login6.gif
    http://images.habbo.com/c_images/alb...ACH_Login7.gif
    http://images.habbo.com/c_images/alb...ACH_Login8.gif
    http://images.habbo.com/c_images/alb...ACH_Login9.gif
    http://images.habbo.com/c_images/alb...CH_Login10.gif

    Press the 'Like' button and I will release more often :)


  2. #2
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Not bad Mr.

  3. #3
    RaGEZONER habib10 is offline
    MemberRank
    Nov 2009 Join Date
    AnywereLocation
    778Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    thanks you its not bad :P like he said above

  4. #4
    Apprentice jlaursen is offline
    MemberRank
    Feb 2009 Join Date
    17Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Wow, thanks for releasing. Very usefull

  5. #5
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Already released by Bjork, good effort tho ;3

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

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by Tr0ll.™ View Post
    Already released by Bjork, good effort tho ;3
    Was it? Sorry, i was unaware of this :S

  7. #7
    Account Upgraded | Title Enabled! thetrev14 is offline
    MemberRank
    Aug 2010 Join Date
    None ur bizz!Location
    792Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Doesnt matter that it was released. Alot of us didnt no that... I didnt... So good thing you re-released it cause its useful :P

  8. #8
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by Roper View Post
    Was it? Sorry, i was unaware of this :S
    Well it was just achievements in general..

    it wasn't anything particular

  9. #9
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Hmm, nice release, but wouldn't it be better to recode whole Holograph with using ION v26 from AWA as base? :P

  10. #10
    Account Upgraded | Title Enabled! simoneihg is offline
    MemberRank
    Dec 2010 Join Date
    PalermoLocation
    243Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Could, you code it for Uber i will thank you ;)

  11. #11
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by simoneihg View Post
    Could, you code it for Uber i will thank you ;)
    /facepalm

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

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by PEjump2 View Post
    Hmm, nice release, but wouldn't it be better to recode whole Holograph with using ION v26 from AWA as base? :P
    It would be, but i'm really lazy atm.

    Quote Originally Posted by simoneihg View Post
    Could, you code it for Uber i will thank you ;)
    Sorry but I don't want anything to do with uberEmulator, I absolutely hate it.

  13. #13

    herp a derp

    vLife is offline

    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,811Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Would be useful for me if my badges worked.
    Nice release though. You could probably do the hours?

  14. #14
    En Français? Bjork is offline
    MemberRank
    Apr 2007 Join Date
    854Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Yes, i already made that. but good (re-)release ;)

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

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by vLife View Post
    Would be useful for me if my badges worked.
    Nice release though. You could probably do the hours?
    Yeh, i'm doing that in my edit.

    Glad you like it :)

  16. #16
    Custom Title Enabled James is offline
    LegendRank
    Jan 2007 Join Date
    DenverLocation
    2,288Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Wow, a lot of if statements, wouldn't it have been better to use a switch statement?

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

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by james View Post
    Wow, a lot of if statements, wouldn't it have been better to use a switch statement?
    I'm not so good with switch statements so I decided to use if/elseif as I know what i'm doing then!

    However, thanks for your suggestion/opinion.

  18. #18
    Custom Title Enabled James is offline
    LegendRank
    Jan 2007 Join Date
    DenverLocation
    2,288Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by Roper View Post
    I'm not so good with switch statements so I decided to use if/elseif as I know what i'm doing then!

    However, thanks for your suggestion/opinion.
    There's nothing to be "good" at with switch statements silly, if you can't do them you really should go learn some more of the basics before you start fixing up uber ;p

  19. #19
    Account Upgraded | Title Enabled! Ma Ma is offline
    MemberRank
    Jan 2011 Join Date
    home.phpLocation
    580Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    nice release

  20. #20
    Account Upgraded | Title Enabled! AWA is offline
    MemberRank
    Feb 2008 Join Date
    1,320Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by PEjump2 View Post
    Hmm, nice release, but wouldn't it be better to recode whole Holograph with using ION v26 from AWA as base? :P
    No, Ion26 was a fail!

  21. #21
    Account Upgraded | Title Enabled! Ma Ma is offline
    MemberRank
    Jan 2011 Join Date
    home.phpLocation
    580Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    yeah Ion26 was not even completed and it uses really difficult codes

  22. #22
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,483Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by PEjump2 View Post
    Hmm, nice release, but wouldn't it be better to recode whole Holograph with using ION v26 from AWA as base? :P
    You? *coughs*

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

    Re: [C#] HoloEMU "Traveller" Achievement System

    Quote Originally Posted by james View Post
    There's nothing to be "good" at with switch statements silly, if you can't do them you really should go learn some more of the basics before you start fixing up uber ;p
    Why would I fix up uberEmulator? I think it is a pile of shit which no one should use.

    Anyway, closing the thread now as no need to keep it open anymore.

    Expect another release in a few days.

  24. #24
    Member hibbohotel is offline
    MemberRank
    Feb 2011 Join Date
    BelgiumLocation
    56Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    pretty good

  25. #25
    Member twentySix26 is offline
    MemberRank
    Mar 2011 Join Date
    68Posts

    Re: [C#] HoloEMU "Traveller" Achievement System

    Also, you have to edit your mySQL table "user_badges" -> text from (5) to (15) or something so it can actually read and give the badge.



Page 1 of 2 12 LastLast

Advertisement