[HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

Page 3 of 3 FirstFirst 123
Results 51 to 64 of 64
  1. #51
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Bjork View Post
    Ok, i just coded this stuff

    Search in virtualuser.cs:

    Code:
    case "@H"
    Before the
    Code:
    break;
    place this code:

    Code:
    #region Badge Login by Bjork
                                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("BK" + "Good Game! 1 login, you receive a new badge!!");
                                        }
                                        else if (logins == 50)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login2','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login1' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 50 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 80)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login3','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login2' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 80 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 120)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login4','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login3' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 120 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 170)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login5','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login4' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 170 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 230)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login6','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login5' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 230 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 300)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login7','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login6' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 300 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 380)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login8','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login7' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 380 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 470)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login9','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login8' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 470 logins, you receive a new badge!!");
                                        }
                                        else if (logins == 570)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (badgeid, userid, slotid, iscurrent) VALUES ('ACH_Login10','" + userID + "','0','1')");
                                            dbClient.runQuery("DELETE FROM users_badges WHERE badgeid = 'ACH_Login9' AND userid = '" + userID + "'");
                                            refreshBadges();
                                            this.sendData("BK" + "Good Game! 570, you receive a new badge!!");
                                        }                                    
                                    }
                                }
                                #endregion
    You can change the numbers of logins, badges... if you want ;)

    And add in phpmyadmin a new column in users table named logins like that:



    Don't forget to thank me :)

    Is that so it will only add +1 loggins per day?
    Or will it add +1 loggin every time your disconnect and than reloggin?

    For example I disconnect 5 times in 1 day does it say I logged in 5 times?
    Last edited by Hydros1; 25-08-10 at 09:08 AM.

  2. #52
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Hydros1 View Post
    Is that so it will only add +1 loggins per day?
    Or will it add +1 loggin every time your disconnect and than reloggin?

    For example I disconnect 5 times in 1 day does it say I logged in 5 times?
    It doesn't count the disconnect, only if you login.
    so if you login it will add +1.

  3. #53
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Eronisch View Post
    It doesn't count the disconnect, only if you login.
    so if you login it will add +1.
    Yeah ovs it's going to add +1 when you login but what i'm saying is does it only work every 24 hours (per day) or will it count every time you login.

  4. #54
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Hydros1 View Post
    Yeah ovs it's going to add +1 when you login but what i'm saying is does it only work every 24 hours (per day) or will it count every time you login.
    Aren't you 'Roper' or the owner of Hectic hotel or something ? You've claimed you can code before. I think if you apply logical thinking and look at the code, you will get your answer right away HURP DERP.

  5. #55
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by MattUK View Post
    Aren't you 'Roper' or the owner of Hectic hotel or something ? You've claimed you can code before. I think if you apply logical thinking and look at the code, you will get your answer right away HURP DERP.
    Yea that's right, I can code but I never said I can code c# did I?
    And no my names Hayden not Roper

    ---------- Post added at 08:18 AM ---------- Previous post was at 08:14 AM ----------

    Btw I think it might start with this string to get it to only work for today: string now = DateTime.Today.ToString(); ?

  6. #56
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Go to Packet Processing Then Logged In Ones Find > Enter/Leave Room

  7. #57
    No, Just no. Matthew is offline
    MemberRank
    Jul 2008 Join Date
    United KingdomLocation
    1,408Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Hydros1 View Post
    Yea that's right, I can code but I never said I can code c# did I?
    And no my names Hayden not Roper
    If you have a basic knowledge of coding you would clearly see that the code does not have any checker/timer as to when the badges are given out. You also created a Holograph Emulator development thread a few months back. Isn't Holograph in C# ? Yeah it is. Save it, don't bother replying or quoting me although you probably will anyway.
    Last edited by Matthew; 25-08-10 at 11:30 AM.

  8. #58
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Zak View Post
    Go to Packet Processing Then Logged In Ones Find > Enter/Leave Room
    That's the wrong one, but nvm.

  9. #59
    Account Upgraded | Title Enabled! HFTB is offline
    MemberRank
    May 2007 Join Date
    The netherlandsLocation
    332Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    thanks for login achievements.
    rated this thread 10/10.

    wants new code:

    emulator:lost_memory's emulator
    command: :buyfurni FURNI-TID AMOUNT
    what it does:
    It will buy you furni with the tid FURNI-TID and the amount of furni are AMOUNT (replace FURNI-TID with the furni tid in db and AMOUNT with the amount of furni.
    Last edited by HFTB; 25-08-10 at 01:02 PM.

  10. #60
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by MattUK View Post
    If you have a basic knowledge of coding you would clearly see that the code does not have any checker/timer as to when the badges are given out. You also created a Holograph Emulator development thread a few months back. Isn't Holograph in C# ? Yeah it is. Save it, don't bother replying or quoting me although you probably will anyway.
    Wow, ur a looser.
    Link me to my "Thread" that I made?
    By the way, i'm pretty sure I can code, I dont need you to say I can't because I know it's not true, I will admit that I didnt read through his snippet before I posted, as I realise that now.

    So please stop making up stories.

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

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by MattUK View Post
    Aren't you 'Roper' or the owner of Hectic hotel or something ? You've claimed you can code before. I think if you apply logical thinking and look at the code, you will get your answer right away HURP DERP.
    Sorry but why are you asking if he is me?

    ontopic;
    Great commands being released here tbh.

  12. #62
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Emulator: Dissi's edit R26
    Command: Sso ticket nuller
    What it does: Nulls ur sso ticket before logging in. someon did it in the cms but that didn't work, so idk if it works in the emu?

    Emulator: Dissi's edit R26
    Command: :happyhour on/off
    What it does: It puts the Rares catalogue_pages to rank 1 every friday night on 9pm and it refresh the cata too >;)
    Last edited by Eronisch; 25-08-10 at 04:18 PM.

  13. #63
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Quote Originally Posted by Eronisch View Post
    Emulator: Dissi's edit R26
    Command: Sso ticket nuller
    What it does: Nulls ur sso ticket before logging in. someon did it in the cms but that didn't work, so idk if it works in the emu?

    Emulator: Dissi's edit R26
    Command: :happyhour on/off
    What it does: It puts the Rares catalogue_pages to rank 1 every friday night on 9pm and it refresh the cata too >;)
    Seo null'er can be done via the cms weather it be on login or on load the client.

  14. #64
    Account Upgraded | Title Enabled! 321olos is offline
    MemberRank
    Mar 2009 Join Date
    409Posts

    Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]

    Closed thread.

    Read first post for info.



Page 3 of 3 FirstFirst 123

Advertisement