Changing currency in Marketplace

FuryHotel

New Member
Nov 25, 2016
8
0
I want to change the currency used in the marketplace to be diamonds instead of coins. How would this be done?
505c2bce5725410180d8e6b817ed825f.png


Also need to change the color of the "10" here to red. Any ideas to where this would be done?
d5b04548fae148c1998f3c0908e44366.png

Ty :)
 

Core

Member
Nov 10, 2016
356
138
I want to change the currency used in the marketplace to be diamonds instead of coins. How would this be done?
505c2bce5725410180d8e6b817ed825f.png


Also need to change the color of the "10" here to red. Any ideas to where this would be done?
d5b04548fae148c1998f3c0908e44366.png

Ty :)
Go to BuyOfferEvent.cs and find:
Code:
                if (Convert.ToInt32(Row["total_price"]) > Session.GetHabbo().Credits)
                {
                    Session.SendNotification("Oops, you do not have enough credits for this.");
                    return;
                }

                Session.GetHabbo().Credits -= Convert.ToInt32(Row["total_price"]);
                Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));

And replace with
Code:
                if (Convert.ToInt32(Row["total_price"]) > Session.GetHabbo().Diamonds)
                {
                    Session.SendNotification("Oops, you do not have enough diamonds for this.");
                    return;
                }

                Session.GetHabbo().Diamonds -= Convert.ToInt32(Row["total_price"]);
                Session.SendMessage(new HabboActivityPointNotificationComposer(Session.GetHabbo().Diamonds, 0, 5));
 

Users who are viewing this thread

Top