[Request] Diamond Exchange? [Request]

FastHabbo

Member
Aug 23, 2011
160
8
Has anyone got any diamond exchange furnis?
Items you can exchange to trade Diamonds on PlusEMU?
anyone that can help it would be much appreciated :)
 

Joe

Well-Known Member
Jun 10, 2012
4,090
1,918
They already exist in the furniture table, just write them into catalog_items. Somewhere in the Help section on this forum you can learn how to redeem them for diamonds instead of credits.
 

zakiy

Member
Dec 5, 2011
44
4

@ From *****
ItemUtility.cs

Code:
public static class ItemUtility {
public static bool CanGiftItem(CatalogItem Item)
{
if (!Item.Data.AllowGift || Item.IsLimited || Item.Amount > 1 || Item.Data.ItemName.ToLower().StartsWith("cf_") || Item.Data.ItemName.ToLower().StartsWith("cfc_") || Item.Data.ItemName.ToLower().StartsWith("dfd_") ||
Item.Data.InteractionType == InteractionType.BADGE || (Item.Data.Type != 's' && Item.Data.Type != 'i') || Item.CostDiamonds > 0 ||
Item.Data.InteractionType == InteractionType.TELEPORT || Item.Data.InteractionType == InteractionType.DEAL)
return false;


if (Item.Data.IsRare)
return false;


if (PetUtility.IsPet(Item.Data.InteractionType))
return false;
return true;
}


public static bool CanSelectAmount(CatalogItem Item)
{
if (Item.IsLimited || Item.Amount > 1 || Item.Data.ItemName.ToLower().StartsWith("cf_") || Item.Data.ItemName.ToLower().StartsWith("cfc_") || Item.Data.ItemName.ToLower().StartsWith("dfd_") || !Item.HaveOffer || Item.Data.InteractionType == InteractionType.BADGE || Item.Data.InteractionType == InteractionType.DEAL)
return false;
return true;
}



CreditFurniRedeemEvent.cs:

Code:
Item Exchange = Room.GetRoomItemHandler().GetItem(Packet.PopInt()); if (Exchange == null)
return;


if (!Exchange.GetBaseItem().ItemName.StartsWith("CF_") && !Exchange.GetBaseItem().ItemName.StartsWith("CFC_") && !Exchange.GetBaseItem().ItemName.StartsWith("DFD_"))
return;

string[] Split = Exchange.GetBaseItem().ItemName.Split('_');
int Value = int.Parse(Split[1]);


if (Value > 0)
{
Session.GetHabbo().Credits += Value;
Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));
 

FastHabbo

Member
Aug 23, 2011
160
8
@ From *****
ItemUtility.cs

Code:
public static class ItemUtility {
public static bool CanGiftItem(CatalogItem Item)
{
if (!Item.Data.AllowGift || Item.IsLimited || Item.Amount > 1 || Item.Data.ItemName.ToLower().StartsWith("cf_") || Item.Data.ItemName.ToLower().StartsWith("cfc_") || Item.Data.ItemName.ToLower().StartsWith("dfd_") ||
Item.Data.InteractionType == InteractionType.BADGE || (Item.Data.Type != 's' && Item.Data.Type != 'i') || Item.CostDiamonds > 0 ||
Item.Data.InteractionType == InteractionType.TELEPORT || Item.Data.InteractionType == InteractionType.DEAL)
return false;


if (Item.Data.IsRare)
return false;


if (PetUtility.IsPet(Item.Data.InteractionType))
return false;
return true;
}


public static bool CanSelectAmount(CatalogItem Item)
{
if (Item.IsLimited || Item.Amount > 1 || Item.Data.ItemName.ToLower().StartsWith("cf_") || Item.Data.ItemName.ToLower().StartsWith("cfc_") || Item.Data.ItemName.ToLower().StartsWith("dfd_") || !Item.HaveOffer || Item.Data.InteractionType == InteractionType.BADGE || Item.Data.InteractionType == InteractionType.DEAL)
return false;
return true;
}



CreditFurniRedeemEvent.cs:

Code:
Item Exchange = Room.GetRoomItemHandler().GetItem(Packet.PopInt()); if (Exchange == null)
return;


if (!Exchange.GetBaseItem().ItemName.StartsWith("CF_") && !Exchange.GetBaseItem().ItemName.StartsWith("CFC_") && !Exchange.GetBaseItem().ItemName.StartsWith("DFD_"))
return;

string[] Split = Exchange.GetBaseItem().ItemName.Split('_');
int Value = int.Parse(Split[1]);


if (Value > 0)
{
Session.GetHabbo().Credits += Value;
Session.SendMessage(new CreditBalanceComposer(Session.GetHabbo().Credits));
After I add these, what do I do after?
 

FastHabbo

Member
Aug 23, 2011
160
8
You'd change the names in your furniture table to DFD_name_price, REMEMBER YOU DO NOT NEED TO CHANGE THE SWF NAME IN FURNIDATA OR HOF_FURNI.
I changed it in the furniture table, now the sack isn't redeemable
isit possible for you to TV me? or have I done something wrong
 

zakiy

Member
Dec 5, 2011
44
4
@Hashh you need to chill, I dont see anyone else replying to your crappy thread, so be quiet and be thankful Im even trying to help your noob self fix it. It works fine on my hotel, so shut up, that's why I referenced JayCustom, because he coded it on the hotel i'm at, HabPulse.com

Btw FastHabbo, pm me your skype, I can help you over teamviewer/join.me
 

Hashh

adam
Apr 17, 2015
799
170
@Hashh you need to chill, I dont see anyone else replying to your crappy thread, so be quiet and be thankful Im even trying to help your noob self fix it. It works fine on my hotel, so shut up, that's why I referenced JayCustom, because he coded it on the hotel i'm at, HabPulse.com

Btw FastHabbo, pm me your skype, I can help you over teamviewer/join.me
Crappy thread how can I thread be crappy ? I am not a noob I have never been in a situation like this! I like how your new and your acting like a fucking tard
 

FastHabbo

Member
Aug 23, 2011
160
8
@Hashh you need to chill, I dont see anyone else replying to your crappy thread, so be quiet and be thankful Im even trying to help your noob self fix it. It works fine on my hotel, so shut up, that's why I referenced JayCustom, because he coded it on the hotel i'm at, HabPulse.com

Btw FastHabbo, pm me your skype, I can help you over teamviewer/join.me
Message me on skype / Or anyone know a fix to this still?
 
Fixed it, was a pain in the ass but I did it.
 

Users who are viewing this thread

Top