Fix TROC (test)

Results 1 to 11 of 11
  1. #1
    Enthusiast dimitri54480 is offline
    MemberRank
    Feb 2011 Join Date
    44Posts

    Fix TROC (test)

    Hello, i give a code for you test the trading-pass on you retro!


    FIX TO THE TRADING

    In Messages/Requests/Rooms.cs

    Find
    Code:
    private void RedeemExchangeFurni()
    {
    Under it add

    Code:
     int troc_enabled;
    
                using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
                {
                    troc_enabled = dbClient.ReadInt32("SELECT troc FROM users WHERE id = '" + Session.GetHabbo().Id + "' LIMIT 1");
                }
    Replace
    Code:
    if (Room == null || !Room.CheckRights(Session, true))
    per
    Code:
    if (Room == null || !Room.CheckRights(Session, true) || troc_enabled == 0)
    SQL:
    Code:
    ALTER TABLE users
    ADD troc enum('0','1') NOT NULL DEFAULT '1'
    Thank you to test it!

    I have finished to coded

    link : http://www.mediafire.com/?f0uv42deldlm5lb
    I don't have tested, sorry
    Last edited by dimitri54480; 09-04-11 at 09:00 AM.


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

    Re: Fix TROC (test)

    What should be this?

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

    Re: Fix TROC (test)

    Wtf, whats that ?

    Explain...and what should it do ?

  4. #4
    Infraction Banned HabMoon is offline
    MemberRank
    Jun 2007 Join Date
    HM OfficesLocation
    3,068Posts

    Re: Fix TROC (test)

    Troc? If I look at the code it looks like the 'trading pass' thing. (if pass > trade, if not > return false).

    But idk,, what is troc?

  5. #5
    The Legend Returns vista4life is offline
    MemberRank
    Mar 2007 Join Date
    The NetherlandsLocation
    843Posts

    Re: Fix TROC (test)

    Troc = france i thought it have todo with trading i guess it's the pass what habmoon just said.

  6. #6
    Member mr.lerwa is offline
    MemberRank
    May 2007 Join Date
    NetherlandsLocation
    99Posts

    Re: Fix TROC (test)

    Quote Originally Posted by dimitri54480 View Post
    Hello, i give a code for you test the troc on you retro!
    Please change troc to Trade for people that are not understanding you.

  7. #7
    Valued Member TenShie is offline
    MemberRank
    Apr 2011 Join Date
    Frankfurt a. M.Location
    115Posts

    Re: Fix TROC (test)

    Hmm... nice idea! But can you set up an code for the CMS? Like: User can change Tradefunktion ON and Of? :D

    [EDIT]
    ... for a Fully Test :D

    -TenShie
    Last edited by TenShie; 09-04-11 at 05:47 AM.

  8. #8
    Enthusiast dimitri54480 is offline
    MemberRank
    Feb 2011 Join Date
    44Posts

    Re: Fix TROC (test)

    I go to coded the page!
    I will build on the Block New Friends page

  9. #9
    Enthusiast johwie is offline
    MemberRank
    Jan 2011 Join Date
    The NetherlandsLocation
    31Posts

    Re: Fix TROC (test)

    Edit page-trading.tpl to comp-trading.tpl.
    (Page looks ugly?)

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

    Re: Fix TROC (test)

    this is weird, no hotel want the fkign tradepass, its useless.

  11. #11
    Valued Member TenShie is offline
    MemberRank
    Apr 2011 Join Date
    Frankfurt a. M.Location
    115Posts

    Re: Fix TROC (test)

    Quote Originally Posted by wichard View Post
    this is weird, no hotel want the fkign tradepass, its useless.
    hmm ...

    Yes and No,
    - some Hotel want it, and some not.

    But...

    Some Hotelmanager want her hotel 100% "HabboHotel-Original-Like".


    Excuse my bad English, German is complicated enough.
    -TenShie



Advertisement