Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Diamond Gift Box
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Silenos" data-source="post: 452012" data-attributes="member: 77057"><p>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. <img src="https://i.sharefa.st/uEpEusTD1py3.png" class="smilie" loading="lazy" alt="PepeHands" title="PepeHands PepeHands" data-shortname="PepeHands" /></p><p>Tried it out and everything works as expected, here is how:</p><p></p><p>- Go to your [ICODE]furniture[/ICODE] table and search for the desired crackable furniture</p><p>- Copy the Id of the furniture from the [ICODE]id[/ICODE] column to your clipboard and set the interaction type to [ICODE]crackable[/ICODE]</p><p>- Go to your [ICODE]items_crackable_rewards[/ICODE] table and insert a new row which links the reward with the desired crackable furniture.</p><p>[ICODE]item_id[/ICODE]: Crackable furniture Id</p><p>[ICODE]hit_requirement[/ICODE]: How much hits you need to crack the furniture / get rewarded</p><p>[ICODE]reward_type[/ICODE]: Type of reward - BADGE, ITEM, COINS, VIP_POINTS, ACTIVITY_POINTS, EFFECT</p><p><span style="font-size: 10px">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.</span></p><p>[ICODE]reward_data[/ICODE]: Only for reward type BADGE, e.g [ICODE]ADM[/ICODE]</p><p>[ICODE]reward_data_int[/ICODE]: Only for reward type ITEM(Id), COINS(Amount), VIP_POINTS(Amount), ACTIVITY_POINTS(Amount), EFFECT(Id)</p><p></p><p>That's it.</p></blockquote><p></p>
[QUOTE="Silenos, post: 452012, member: 77057"] 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 [ICODE]furniture[/ICODE] table and search for the desired crackable furniture - Copy the Id of the furniture from the [ICODE]id[/ICODE] column to your clipboard and set the interaction type to [ICODE]crackable[/ICODE] - Go to your [ICODE]items_crackable_rewards[/ICODE] table and insert a new row which links the reward with the desired crackable furniture. [ICODE]item_id[/ICODE]: Crackable furniture Id [ICODE]hit_requirement[/ICODE]: How much hits you need to crack the furniture / get rewarded [ICODE]reward_type[/ICODE]: Type of reward - BADGE, ITEM, COINS, VIP_POINTS, ACTIVITY_POINTS, EFFECT [SIZE=2]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.[/SIZE] [ICODE]reward_data[/ICODE]: Only for reward type BADGE, e.g [ICODE]ADM[/ICODE] [ICODE]reward_data_int[/ICODE]: Only for reward type ITEM(Id), COINS(Amount), VIP_POINTS(Amount), ACTIVITY_POINTS(Amount), EFFECT(Id) That's it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Diamond Gift Box
Top