I've tried it,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.
After I add these, what do I do after?@You must be registered for see linksFrom *****
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));
I changed it in the furniture table, now the sack isn't redeemableYou'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.
Your going about threads, Saying the most useless shit ever.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.
So what he said is irrelevant? or?Your going about threads, Saying the most useless shit ever.
I am needing help for myself too he came on my thread with a ton if shitSo what he said is irrelevant? or?
I'm so confused just want help lol
Do you know how to change diamonds to redeem instead of creditsI am needing help for myself too he came on my thread with a ton if shit
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@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?@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