Collectibles
Collectibles are numbered items that players collect into sets. PlusEMU has two separate parts:
- The Collectibles hub. Players collect sets, buy collectibles with Emeralds, and turn furniture into collectibles.
- Avatar collectibles. Staff give a player a fixed look. The player wears it from the avatar editor.
On Habbo, collectibles live on a blockchain. In PlusEMU, they live only in your database. Players cannot trade them, sell them, or move them outside the hotel.
Open the Collectibles hub
Section titled “Open the Collectibles hub”Players open the hub from the Me menu. Click your avatar in the toolbar, then click Collectibles.
The Me menu shows this entry only when both of these flags are true in Volt’s ui-config.json:
{ "classic.collectibles.hub.enabled": true, "collectibles.hub.enabled": true}Two more flags show or hide single tabs:
nft.shop.enabledshows the Shop tab.nft.minting.enabledshows the Relics tab.
Volt’s example ui-config.json turns on all four flags. See client connection and furniture data for where the file lives.
The top of the hub shows the player’s collector score, highest score, collector level, and Emeralds.
Tabs in the hub
Section titled “Tabs in the hub”Tab names come from the hotel’s external texts. With Habbo’s texts, the tabs are Rewards, Collection, Shop, Relics, and Info.
Rewards
Section titled “Rewards”This tab lists monthly collector rewards that the player can claim now. Claim all puts every open reward into the player’s Collector Wallet.
A fresh install has no monthly rewards, so the tab is empty. To add rewards, see monthly rewards.
Collection
Section titled “Collection”This tab lists every enabled set. It shows which items of a set the player owns, and the score of each item and of the whole set.
If a set has a bonus or reward item, the player can claim it here after they own every item of the set. A fresh install has no bonus or reward items.
Players buy collectibles here with Emeralds. A bought collectible goes into the player’s Collector Wallet. It does not go into the furniture inventory.
An offer can have a limit. When the hotel has that many copies of the item, the offer is sold out. The limit counts every copy, also copies from minting or rewards.
An offer can also need a collector level. If the player’s level is too low, the client shows a lock on the offer and the level that the player needs, and the Buy button stays off. The server also refuses the purchase. See collector level for shop offers.
Relics
Section titled “Relics”Here, players turn a furniture item into a collectible. This is called minting. Minting costs Emeralds.
To mint, the player needs:
- A matching furniture item in their inventory. Placed furniture does not count.
- Enough Emeralds. The price is
collectible_mintable_items.emerald_price. - An open minting period for that furniture.
When the player clicks Collect, the server takes the price from the player’s Emeralds. Then it deletes the furniture item for good, and the player gets the matching relic collectible in its place. If the player does not have enough Emeralds, nothing changes.
This tab shows two texts:
collectibles.info.hubsays what the hub is.collectibles.info.emeraldssays how Emeralds, Collector XP, levels, and relics work.
Volt ships English values for both texts in public/configuration/wired-texts.json. The Shop lock text collectibles.shop.level_required is in the same file. These shipped values only fill texts that your hotel’s own external texts do not have. To change a text, add the key to your own external texts.
Wallets, score, and levels
Section titled “Wallets, score, and levels”Wallets
Section titled “Wallets”Every player gets one Collector Wallet the first time they open the hub. A player has only this one wallet. Its address is a random text that starts with 0x. It is not a real blockchain address. The emulator uses it only as an internal key in the database.
Collectibles and score belong to the wallet, not directly to the player. Each copy of a collectible gets a serial number: 1, 2, 3 and so on per item.
Older versions had linked wallets. The emulator now ignores every row in collectible_wallets where is_collector is 0.
Score and level
Section titled “Score and level”The collector score of a wallet is:
- The
scoreof each item the wallet owns. More copies of the same item count once. - Plus the
boost_scoreof each complete set.
The level is the highest row in collectible_levels whose min_score is not above the score. A fresh install has 20 levels, from level 1 at 0 points to level 20 at 60000 points. The first levels are:
| Level | min_score |
|---|---|
| 2 | 100 |
| 3 | 250 |
| 4 | 500 |
| 5 | 1000 |
| 6 | 1750 |
Volt’s texts call the score Collector XP.
Emeralds
Section titled “Emeralds”Emeralds are the only currency of the hub. They are activity point type 1001. Players use them to buy shop offers and to mint relics.
The balance is a row in user_currencies. PlusEMU has no way for players to earn Emeralds. Staff must give them.
To give Emeralds to an online player, use the :give command with the type number:
:give PlayerName 1001 200The staff account needs command.give and command.give_diamonds. In the default roles, Administrator, Manager, Community Leader, Developer, and Owner have both. The rules from give currency to a player also apply here.
The emulator keeps the balance of an online player in memory. If you change user_currencies with SQL, do it while the player is offline.
Prices
Section titled “Prices”Each price comes from a database table:
| What | Table and column | Currency |
|---|---|---|
| Shop offer | collectible_shop_offers.emerald_price |
Emeralds |
| Minting one furniture item | collectible_mintable_items.emerald_price |
Emeralds |
On a fresh install, most relics cost 50 Emeralds. A few cost 150, 200, or 250 Emeralds.
Give an avatar collectible
Section titled “Give an avatar collectible”An avatar collectible is a saved copy of a look. Staff give one with this chat command:
:givecollectible PlayerName [avatar|clothes|genesis]- The collectible is a copy of your own current look, not the player’s look. Change into the look you want to give first.
- The last word is optional. The default is
avatar. The word only changes the name and button color in the avatar editor. - The player must be online. Your account must outrank the player. You can also give a collectible to yourself.
- The player gets a notification. The collectible shows up in their avatar editor.
The command needs the command.givecollectible permission. In a fresh install, Senior Moderator, Administrator, Manager, Community Leader, Developer, and Owner have it. On an existing hotel, the update gives it to every role that already had command.givebadge.
Avatar collectibles are stored in user_nft_wardrobe. They are not part of the hub, so they do not count toward score or sets.
Wear an avatar collectible
Section titled “Wear an avatar collectible”- Open the avatar editor.
- Open the Avatar Collectibles tab.
- Click a look.
- Click Save.
The look changes in the room at once. PlusEMU remembers the look the player had before.
The collectible stays on until the player saves any other look. When the player opens a clothing tab of the editor, the editor shows their earlier look to start from. Saving that look takes the collectible off.
Manage sets and offers
Section titled “Manage sets and offers”The emulator does not cache these tables. It reads them each time the client asks for hub data, so you do not need to restart the emulator.
A fresh install copies Habbo’s current sets, shop offers, and mintable furniture. It adds only items whose furniture exists in your furniture table. Every collectible needs a furniture definition and client assets for its image and name.
Tables
Section titled “Tables”collectible_collectionsholds the sets. Main columns:id,name,boost_score,bonus_product_code,reward_product_code,released_at,snapshot_at,sort_order,enabled.collectible_productsholds every item a collectible can be. Main columns:product_code,collection_id,product_type,item_type_id,score,rarity,figure_set_ids,sort_order.collectible_shop_offersholds the Shop tab. Main columns:product_code,emerald_price,min_level,is_featured,is_limited,mint_limit,sort_order,enabled.collectible_mintable_itemsholds the furniture that players can mint. Main columns:item_type,sprite_id,product_code,emerald_price,starts_at,ends_at,enabled.emerald_pricehas no default, so set it on every row. A price of0makes the relic free.collectible_levelsholds the level ladder:levelandmin_score.collectible_reward_claimsholds the monthly rewards.
All times are UTC.
Products
Section titled “Products”product_typeis1for floor furniture,0for wall furniture, and11for clothing furniture.item_type_idis thesprite_idof the furniture. The client takes the name and image from it.collection_idputs the item in a set. Leave itNULLfor items outside a set, such as relics and bonus items.rarityis a text such asCommon,Uncommon,Rare, orEpic.
- The client shows the external text
collectibles.set.<id>as the set name. If that text is missing, it showsname. - A player can claim the bonus item only between
released_atandsnapshot_at. An empty time leaves that side open. - A player can claim the reward item at any time after the set is complete.
- Each wallet can claim the bonus and the reward of a set once.
Shop offers
Section titled “Shop offers”mint_limitis the highest number of copies.-1means no limit.min_levelis the lowest collector level that can buy the offer. The default0means no level is needed.- Set
enabledto0to hide an offer without deleting it.
Collector level for shop offers
Section titled “Collector level for shop offers”The server compares min_level with the level of the player’s Collector Wallet. If the level is lower, the purchase fails, and the server takes no Emeralds.
Migration 113 gives each offer a level from its price. It changes only offers that cost more than 75 Emeralds and have min_level 0. This covers the offers that a fresh install copies from Habbo, and on an existing hotel also the offers that staff added:
emerald_price |
min_level |
|---|---|
| 75 or less | 0 (no level needed) |
| 76 to 150 | 2 |
| 151 to 300 | 3 |
| 301 to 600 | 4 |
| 601 to 1200 | 5 |
| more than 1200 | 6 |
Staff can change min_level on any offer at any time. The level thresholds are in collectible_levels, see score and level.
Mintable furniture
Section titled “Mintable furniture”item_typeissfor floor furniture andifor wall furniture.sprite_idmust match the furniture’s sprite ID.product_codeis the collectible the player gets.- Always set
ends_at. The client does not allow minting for a row without an end time. - The Relics tab hides rows after
ends_at. Minting beforestarts_atfails. - To turn off all minting, set
collectibles.minting.enabledto0inserver_settings, then run:update settings.
Example: add a shop offer
Section titled “Example: add a shop offer”This example adds an existing floor furniture item to a set and sells it for 100 Emeralds to players with collector level 2 or higher. Replace my_chair with the furniture’s furnidata_classname, and witch_scholar with the ID of an existing set.
INSERT INTO collectible_products (product_code, collection_id, product_type, item_type_id, score, rarity, sort_order)SELECT 'nft_my_chair', 'witch_scholar', 1, sprite_id, 25, 'Rare', 10FROM furniture WHERE furnidata_classname = 'my_chair' AND type = 's';
INSERT INTO collectible_shop_offers (product_code, emerald_price, min_level, sort_order)VALUES ('nft_my_chair', 100, 2, 50);Monthly rewards
Section titled “Monthly rewards”Each row of collectible_reward_claims is one reward:
claim_idis a unique text.product_codeis the item the player gets.set_idandset_nameare shown in the Rewards tab.min_levelis the lowest collector level that can claim it.claim_limitis how many copies each player gets.valid_fromandvalid_toset when the reward is open.
Claim all gives all remaining copies at once.
Update an existing hotel
Section titled “Update an existing hotel”Migration 113_CollectiblesEmeraldsOnly.sql changes a hotel that already has the hub. It adds collectible_shop_offers.min_level and sets it by price, as shown in collector level for shop offers. It adds collectible_mintable_items.emerald_price, fills it with the old token_price times 50, and drops token_price. It turns each wallet’s mint tokens into Emeralds at 50 Emeralds per token, then deletes the collectible_mint_token_offers table, the collectible_wallets.mint_tokens column, and the collectibles.transfer.fee setting. Silver balances stay in user_currencies, but the hub does not use them any more. The emulator runs the migration at startup, see database migrations.
Differences from Habbo
Section titled “Differences from Habbo”- Collectibles are stored in your database, not on a blockchain. Wallet addresses are not real.
- Each player has only the Collector Wallet. There are no linked wallets and no Transfer tab.
- Emeralds are the only currency. There is no silver and there are no mint tokens. Relics cost Emeralds.
- Shop offers can need a collector level. Habbo has no such limit. Because the Shop offer list carries this level, the hub needs Volt. The official AIR client cannot read that list.
- Players cannot trade or sell collectibles. Bought and minted collectibles never go to the furniture inventory.
- Players cannot earn Emeralds in the hotel. Staff give them.
- No chat command gives hub collectibles.
:givecollectiblegives avatar collectibles only. - Set boost scores are
0and no set has a bonus or reward item. Habbo’s values were not available. - Every relic is worth 10 points and is
Common. These values were chosen for PlusEMU. - A fresh install has no monthly rewards.