[ION/Deltar] [C#] Frequently Asked Questions

Results 1 to 22 of 22
  1. #1
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    [ION/Deltar] [C#] Frequently Asked Questions

    "ION/Deltar is a base for programmers to expand their skills".


    SVN Download: https://iondeltar.googlecode.com/svn/trunk/

    When you ever made a server using Deltar and see how the FAQ is bugged?

    Well I made this very quickly :)

    Step 1 Find \Net\Messages\ServerMessage.cs

    And find:

    Code:
      
    public void AppendString(string s, byte Breaker)
    {
         Append(s); // Append string with default encoding
         Append(Breaker); // Append breaker
    }
    And add below

    Code:
      
    public void AppendChar(byte Breaker)
    {
        Append(Breaker); // Append breaker
    }
    Step 2

    Execute this in the database

    Code:
    --
    -- Table structure for table `faq_help`
    --
    
    CREATE TABLE IF NOT EXISTS `faq_help` (
      `id` int(140) NOT NULL AUTO_INCREMENT,
      `question` varchar(140) NOT NULL,
      `answer` varchar(500) NOT NULL,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
    
    --
    -- Dumping data for table `faq_help`
    --
    
    INSERT INTO `faq_help` (`id`, `question`, `answer`) VALUES
    (1, 'How do I get help with an account problem?', 'Please go to <a href="https://help.habbo.com/home">https://help.habbo.com/home</a> or click the ''Customer Support'' link at the bottom of the Habbo website. '),
    (2, 'How do I get help with playing Habbo?', 'Refer to our new FAQs at <a href="https://help.habbo.com/forums">https://help.habbo.com/forums</a> for more information about Habbo.');
    Step 3

    Go to /HabboHotel/Client/Global.cs

    Find

    Code:
    /// <summary>
    /// 196 - "CD"
    /// </summary>
    private void Pong()
    {
        Session.PingOK = true;
    }
    And add below

    Code:
            /// <summary>
            /// 416 - "F`"
            /// </summary>
            private void FAQ()
            {
                using (DatabaseClient dbClient = AleedaEnvironment.GetDatabase().GetClient())
                {
                    DataTable Table = dbClient.ReadDataTable("SELECT * FROM faq_help");
    
                    Response.Initialize(416); // "F`"
                    Response.AppendInt32(0);
                    Response.AppendInt32(Table.Rows.Count);
                    foreach (DataRow Row in Table.Rows)
                    {
                        Response.AppendInt32(Convert.ToInt32(Row["id"]));
                        Response.AppendString(Convert.ToString(Row["question"]));
                    }
                    SendResponse();
                }
            }
            /// <summary>
            /// 418 - "Fb"
            /// </summary>
            private void FAQview()
            {
                int mID = Request.PopWiredInt32();
                
                using (DatabaseClient dbClient = AleedaEnvironment.GetDatabase().GetClient())
                {
                    dbClient.AddParamWithValue("id", mID);
                    string mAnswer = dbClient.ReadString("SELECT answer FROM faq_help WHERE id = @id");
    
                    Response.Initialize(520); // "HH"
                    Response.AppendInt32(mID);
                    Response.Append(mAnswer);
                    
                    //Help tool message
                    Response.AppendChar(13);
                    Response.AppendChar(10);
                    Response.AppendChar(13);
                    Response.AppendChar(10);
                    Response.AppendString("The Help Tool is for account help, payment problems and ban queries. If you need general help with playing the game, please read the FAQs.");
                    SendResponse();
                }
            }
    Step 5

    Scroll to the bottom (of Global.cs) and add these

    Code:
    mRequestHandlers[416] = new RequestHandler(FAQ);
    mRequestHandlers[418] = new RequestHandler(FAQview);
    Some things I would like to point out:

    • This is all coded, by me
    • I hope someone picks up on C#
    • If you cannot set this up, this thread IS NOT a help thread.


    Your result?
    Last edited by Quackster; 03-06-11 at 07:43 PM.


  2. #2
    Infraction Banned Free Ride is offline
    MemberRank
    May 2011 Join Date
    15Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quackster, good job! Looked for it. Will use it if I'm going to use deltar.

  3. #3
    I use to love it more! Jmandupree is offline
    MemberRank
    Oct 2009 Join Date
    /ragezone/homeLocation
    996Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Ion Delta Is The Best emu Out/ Created Good Release Quackster..

  4. #4
    Banned c0mma is offline
    BannedRank
    Jan 2011 Join Date
    ^RaGEZONE^Location
    696Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    fanks for fis

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Thanks bro :)

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Thanks for the feedback you guys...

    I hope this will be learnt by someone (as I made this code very neat and tidy).

  7. #7
    C# / Java Programmer scottstamp851 is offline
    MemberRank
    Jan 2007 Join Date
    EverywhereLocation
    504Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Unsafe use of queries. I feel so violated. :(
    I thought you said in the thread about Aleeda you were doing it right?

  8. #8
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quote Originally Posted by scottstamp851 View Post
    Unsafe use of queries. I feel so violated. :(
    I thought you said in the thread about Aleeda you were doing it right?
    This isn't Aleeda, it's just ION.

    I don't wanna make it too complicated for the nubs :D

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    can you archive all the files please ? :p

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Hey man, see my error:

    http://www.iaza.com/work/110604C/iaza19400230642200.png

    Can Help me ? Can Fix ?

  11. #11

    me ridez bykes

    Sean is offline

    LegendRank
    Jun 2007 Join Date
    JerseyLocation
    4,098Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    This is sexy, great release Alex.

  12. #12
    Thanks for the memories! Mithex is offline
    MemberRank
    May 2010 Join Date
    HeavenLocation
    2,014Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Awesome!

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Hey man, see my error:

    http://www.iaza.com/work/110604C/iaza19400230642200.png

    Can Help me ? Can Fix ?



    Help ?

  14. #14
    Valued Member Doge is offline
    MemberRank
    Jul 2009 Join Date
    112Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    rafa this isn't an help thread and your not setting it up the right way

    and nice quackster only hoped it was in java(still learning c#) i only code java :(

  15. #15
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quote Originally Posted by rafa95123 View Post
    Hey man, see my error:

    http://www.iaza.com/work/110604C/iaza19400230642200.png

    Can Help me ? Can Fix ?



    Help ?
    Didn't you read? I said it's not a help thread.

    Anyway, I'm too nice. So delete external_texts and external_variables table.

    Then run this query:
    http://pastebin.com/DLUCy1kt

    Press like if I helped! (:

    ---------- Post added at 03:32 AM ---------- Previous post was at 03:31 AM ----------

    Quote Originally Posted by Sean View Post
    This is sexy, great release Alex.
    Haha thanks ^^

  16. #16
    Account Upgraded | Title Enabled! TheOleg is offline
    MemberRank
    Apr 2008 Join Date
    EstoniaLocation
    570Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quote Originally Posted by Quackster View Post
    When you ever made a server using Deltar and see how the FAQ is bugged?
    Ion is made fr r34. r34 Had no help tool.

  17. #17
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,484Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quote Originally Posted by Rav4eG View Post
    Ion is made fr r34. r34 Had no help tool.
    This is for R63, lrn 2 read
    You can manage to get it to work for the latest Habbo client..
    Last edited by Quackster; 05-06-11 at 03:09 PM.

  18. #18
    I am Nobody. pepijndut is offline
    MemberRank
    Oct 2009 Join Date
    328Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Remove this post please
    Last edited by pepijndut; 06-06-11 at 04:16 AM.

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Because he has to remove? -.-

  20. #20
    Account Upgraded | Title Enabled! TheOleg is offline
    MemberRank
    Apr 2008 Join Date
    EstoniaLocation
    570Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Quote Originally Posted by Quackster View Post
    This is for R63, lrn 2 read
    I know that code is for r63. Thats why I quoted sentence. It should be:
    "I you managed to get Ion to work for the latest Habbo client.."

  21. #21
    Infraction Banned TJP is offline
    MemberRank
    May 2011 Join Date
    CanadaLocation
    54Posts

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    I like it sexy boy .

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

    Re: [ION/Deltar] [C#] Frequently Asked Questions

    Thanks for the likes guys :)



Advertisement