Diamond Gift Box

tyutu

Member
Oct 25, 2016
110
8
How can I structure the Diamond Gift Box on my emulator? Would I need some packet?

If you don't know which furni it is, I'll show you below:

You must be registered for see images attach



@Sledmore
 

Silenos

Obsessed.
Aug 7, 2017
104
65
Are you using Plus? This seems to be a crackable furniture like the party hat gift boxes, eggs etc., not implemented in Plus.
Edit: Didn't answer your actual question, I'm sorry. Since 'crackable' is just an interaction-type, I think you only have to create the interaction for it where you most likely have to send back the current state of the crackable but I'm not 100% sure I have not dealt with it yet.
I will look into it since Comet doesn't have crackables implemented either, I might do so and help you out with plus afterwards.
 
Last edited:

tyutu

Member
Oct 25, 2016
110
8
Are you using Plus? This seems to be a crackable furniture like the party hat gift boxes, eggs etc., not implemented in Plus.
Edit: Didn't answer your actual question, I'm sorry. Since 'crackable' is just an interaction-type, I think you only have to create the interaction for it where you most likely have to send back the current state of the crackable but I'm not 100% sure I have not dealt with it yet.
I will look into it since Comet doesn't have crackables implemented either, I might do so and help you out with plus afterwards.
I use Comet!
 

Silenos

Obsessed.
Aug 7, 2017
104
65
I use Comet!
I looked at the GitHub repo from Leon *drumroll* and it's already implemented since a looong looong time - lul, my bad tbh, I wish I had searched for it earlier. PepeHands
Tried it out and everything works as expected, here is how:

- Go to your furniture table and search for the desired crackable furniture
- Copy the Id of the furniture from the id column to your clipboard and set the interaction type to crackable
- Go to your items_crackable_rewards table and insert a new row which links the reward with the desired crackable furniture.
item_id: Crackable furniture Id
hit_requirement: How much hits you need to crack the furniture / get rewarded
reward_type: Type of reward - BADGE, ITEM, COINS, VIP_POINTS, ACTIVITY_POINTS, EFFECT
There is no case for EFFECT in the switch statement, you can add it yourself in this class: game/rooms/objects/items/types/floor/CrackableFloorItem.java otherwise it will most likely not work.
reward_data: Only for reward type BADGE, e.g ADM
reward_data_int: Only for reward type ITEM(Id), COINS(Amount), VIP_POINTS(Amount), ACTIVITY_POINTS(Amount), EFFECT(Id)

That's it.
 

Users who are viewing this thread

Top