[C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Ion16

    I noticed that there are no really good C# frameworks that support v16. ION is a great base which is very easy to change protocol. Also easy to understand.

    Ion uses MySQL as a database file storing and a easy plugin system to basicly do any basic function needed.

    I have also changed the protocol from R34 to v16


    Features

    • Register
      • Check name 100%

    • Login
      • Confirm details
      • Load swim figure :)

    • Console
      • Search user 100%
      • Show user motto.


    C# Snippet (Checking name exists)

    PHP Code:
            private void CheckName() // "@j"
            
    {
                
    string name Request.PopFixedString();

                
    using (Ion.Storage.DatabaseClient dbClient IonEnvironment.GetDatabase().GetClient())
                {
                    
    Response.Initialize(36); // "@d"

                    
    if (dbClient.ReadBoolean("SELECT * FROM users WHERE username = '" name "'") == true)
                    {
                        
    Response.AppendInt32(4);
                    }
                    else if (
    name.Contains("MOD-") || name.Contains("Mod-") || name.Contains("mod-"))
                    {
                        
    Response.AppendInt32(3);
                    }
                    else
                    {
                        
    Response.AppendInt32(0);
                    }

                    
    SendResponse();
                }
            } 





    Last edited by Quackster; 26-04-11 at 02:05 PM.


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

    Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16

    OH I like this It seems cool ;)

  3. #3
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16

    oh cool. Thanks ;D

  4. #4
    Account Upgraded | Title Enabled! Pure is offline
    MemberRank
    May 2008 Join Date
    809Posts

    Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16

    PHP Code:
    else if (name.Contains("MOD-") || name.Contains("Mod-") || name.Contains("mod-"))
                    {
                        
    Response.AppendInt32(3);
                    } 
    Couldn't this be shorten to this?

    PHP Code:

    else if (name.toUpper().Contains('MOD-'))
    {
      
    //doshit



  5. #5
    [title][/title] Phosfor is offline
    MemberRank
    Jul 2010 Join Date
    FranceLocation
    286Posts

    Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16

    But where is the Database ??? ...
    Last edited by Phosfor; 26-04-11 at 01:30 PM.

  6. #6
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: [C#, ION/Deltar] Ion16 - Habbo Hotel V16

    Quote Originally Posted by Phosfor View Post
    But where is the Database ??? ...
    Thanks for telling me ;)
    Use this [SQL] -- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- H - Pastebin.com (The default ION database)

    ---------- Post added at 09:54 PM ---------- Previous post was at 09:54 PM ----------

    Quote Originally Posted by Pure View Post
    PHP Code:
    else if (name.Contains("MOD-") || name.Contains("Mod-") || name.Contains("mod-"))
                    {
                        
    Response.AppendInt32(3);
                    } 
    Couldn't this be shorten to this?

    PHP Code:

    else if (name.toUpper().Contains('MOD-'))
    {
      
    //doshit


    Thanks, I suppose that could be replaced.
    Last edited by Quackster; 26-04-11 at 01:56 PM.

  7. #7
    [title][/title] Phosfor is offline
    MemberRank
    Jul 2010 Join Date
    FranceLocation
    286Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Thanks to give the Database ;)

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

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Stealing Ion26 name idea? :P

  9. #9
    Banned Someuser is offline
    BannedRank
    Aug 2010 Join Date
    466Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Hmm, nice release ;)

  10. #10
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Maby?! CACHE SOMETHING!? Its MySQL selecting overload.

  11. #11
    RMS Kornflake Nillus is offline
    MemberRank
    Feb 2007 Join Date
    The NetherlandsLocation
    2,626Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by wichard View Post
    Maby?! CACHE SOMETHING!? Its MySQL selecting overload.
    Not really. Just cache common info like item definitions, room categories, room models, navigator, etc, etc. Simple primary-key based lookups like this are fine.

    However, about that snippet... please use prepared statements / parameters / whatever for your database queries to make your code immune to SQL exploits. People can now supply a name containing one or more SQL queries as the name, and the server will happily run them.

    Anyway, good initiative && good luck!

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

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Thanks alex.

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

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by Nillus View Post
    Not really. Just cache common info like item definitions, room categories, room models, navigator, etc, etc. Simple primary-key based lookups like this are fine.

    However, about that snippet... please use prepared statements / parameters / whatever for your database queries to make your code immune to SQL exploits. People can now supply a name containing one or more SQL queries as the name, and the server will happily run them.

    Anyway, good initiative && good luck!
    you really hate sql exploits

    nice alex

  14. #14
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Nillus, you dont know what i mean? I mean he dont cache anything!?

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

    Re: [C#, ION/Deltar] Ion16 - [Habbo Hotel V16 Framework]

    Quote Originally Posted by wichard View Post
    Nillus, you dont know what i mean? I mean he dont cache anything!?
    its a fucking framework calm down.



Page 1 of 3 123 LastLast

Advertisement