Redeem for diamonds? PlusEMU

Results 1 to 7 of 7
  1. #1
    Member Beljac08 is offline
    MemberRank
    Feb 2010 Join Date
    79Posts

    Redeem for diamonds? PlusEMU

    Hey, i've been working on my hotel i'm trying to setup the bronze coin (1 Credit)
    But I'd like to make it redeemable as a Diamond instead of adding 1 credit to the purse.
    Would anyone be able to let me know how I would do this / Help me do this?


  2. #2
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: Redeem for diamonds? PlusEMU

    Hmm, for redeeming you need it's furni name. You must add furniture that you wan't, give them a price in Diamonds and code the redeem event that it also handles diamonds furniture. You can start with 'DF' (diamond furniture) instead of 'CF' for coin furnitures and then you do actually the same as with credits but you'll update it's diamonds and set that packet.

  3. #3
    Member Beljac08 is offline
    MemberRank
    Feb 2010 Join Date
    79Posts

    Re: Redeem for diamonds? PlusEMU

    Quote Originally Posted by streamhotel View Post
    Hmm, for redeeming you need it's furni name. You must add furniture that you wan't, give them a price in Diamonds and code the redeem event that it also handles diamonds furniture. You can start with 'DF' (diamond furniture) instead of 'CF' for coin furnitures and then you do actually the same as with credits but you'll update it's diamonds and set that packet.
    I've updated it in the redeemevent
    And made the name DF_bronzecoin_1
    And tried DFD_ still wouldn't work


    Sent from my iPhone using Tapatalk

  4. #4
    Member Beljac08 is offline
    MemberRank
    Feb 2010 Join Date
    79Posts

    Re: Redeem for diamonds? PlusEMU

    Quote Originally Posted by streamhotel View Post
    Hmm, for redeeming you need it's furni name. You must add furniture that you wan't, give them a price in Diamonds and code the redeem event that it also handles diamonds furniture. You can start with 'DF' (diamond furniture) instead of 'CF' for coin furnitures and then you do actually the same as with credits but you'll update it's diamonds and set that packet.
    whats your skype mate?

  5. #5
    Account Upgraded | Title Enabled! streamhotel is offline
    MemberRank
    Apr 2012 Join Date
    EarthLocation
    511Posts

    Re: Redeem for diamonds? PlusEMU

    Quote Originally Posted by Beljac08 View Post
    whats your skype mate?
    Try to debug your application in VS with breakpoint and see which data it's returning and which is required.

  6. #6
    Member Beljac08 is offline
    MemberRank
    Feb 2010 Join Date
    79Posts

    Re: Redeem for diamonds? PlusEMU

    Quote Originally Posted by streamhotel View Post
    Try to debug your application in VS with breakpoint and see which data it's returning and which is required.
    Tried that already bro it's given 2 errors can you teamviewer me please?


    Sent from my iPhone using Tapatalk

  7. #7
    iiiiiiiiiii Brought is offline
    MemberRank
    Aug 2013 Join Date
    469Posts

    Re: Redeem for diamonds? PlusEMU

    Go to CreditFurniRedeemEvent.cs, find where it states CF_, and then replace that if section with this
    Code:
    if (!Exchange.GetBaseItem().ItemName.StartsWith("CF_") && !Exchange.GetBaseItem().ItemName.StartsWith("CFC_") && !Exchange.GetBaseItem().ItemName.StartsWith("DF_") && !Exchange.GetBaseItem().ItemName.StartsWith("DFD_"))                return;
               
                string[] Split = Exchange.GetBaseItem().ItemName.Split('_');
                int Value = int.Parse(Split[1]);
    
                if (Value > 0)
                {
                    if (Exchange.GetBaseItem().ItemName.StartsWith("CF_") || Exchange.GetBaseItem().ItemName.StartsWith("CFC_"))
                    {
                        Session.GetHabbo().Credits += Value;
                        Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));
                    }
                    else if(Exchange.GetBaseItem().ItemName.StartsWith("DF_") || Exchange.GetBaseItem().ItemName.StartsWith("DFD_"))
                    {
                        Session.GetHabbo().Diamonds += Value;
                        Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Diamonds, Value, 5));
                    }
                }
    After that, inside of your furniture table for the item name you wish to redeem into Diamonds, you must name it DF_AMOUNT_itemname.

    Credits to Meap from DB for posting this on a rival forum.



Advertisement