← MPP-Mainstore › Scripts MPP - Store Listing Opener Download the documentation (.md)

Version 1.3.1 · updated September 24, 2026

MPP - Store Listing Opener Script V1.3.1 - Documentation

Turns any object of your scene into a direct link to a Sansar Store listing: a click opens the Store panel of that listing for the visitor. Paste the listing link, or its UUID alone, and you are done. The same opener can also be driven by an MPP - Action Button (a "Buy" button on a control desk), and can play a sound when the listing opens.

This script is standalone - it does not require any other MPP script to function. It works with MPP - Action Button for a button that opens the listing.

New in V1.3: a per-visitor cooldown (0.75 s by default) with a private "please wait" message for a click that comes too soon; the listing opens first, then the sound plays; the listing link is checked once at start, with a clear warning when it is not usable (the object is then not clickable at all, instead of a dead button); Sound Volume 0 is silent; the hover text is kept to one line. Settings grouped by category and a Debug Logging switch. V1.3.1 only changes the version number. Your settings are kept when you update: see "Updating from V1.2".


Quick Start

  1. After purchase, the script is in your Inventory in Build mode. Add it to the object that shows the product: the product itself, a poster, a sign.
  2. On the Sansar Store, open the listing you want and copy its link (https://www.sansar.com/store/listings/<uuid>/<name>). Paste it in Listing/Listing URL Or UUID.
  3. Build and visit: hover the object ("Show Details"), click it, the Store panel of the listing opens.

That is all most showrooms need. The rest of this guide details every option.


How It Works

SourceSettingsWhat happens
ClickActivation/Enable Click, Hover TextThe listing opens for the visitor who clicks
Script EventActivation/Enable Script Event, Script Event NameSent by an MPP - Action Button: the listing opens for the avatar who pressed the button

Both go through the same per-visitor cooldown, then the listing opens, then Sound/Click Sound plays at the object (everyone nearby hears it). In the Build panel the settings are grouped by category: Activation/, Listing/, Sound/ and Debug/.


The Listing

Listing/Listing URL Or UUID accepts:

The UUID is read once, when the scene starts. A link without a UUID is only kept when it starts with http:// or https://: it then opens as a location detail view (an Atlas link, for example), with a warning at start. Anything else (an empty value, a truncated UUID alone, free text) is a setup error: a warning tells you what to fix, and the object gets no click interaction and ignores the Script Event until the value is corrected.


Activation

Click

Script Event

Activation/Enable Script Event (Off) listens to Activation/Script Event Name (default mpp_store_open). Set an MPP - Action Button to send that name as a script event: the listing opens for the avatar who pressed the button, under the same cooldown, without a "please wait" message (the button has its own). Every opener listening to the same name opens at once: give each opener its own event name.


Sound

Sound/Click Sound: an optional sound from your inventory, played at the object when the listing opens, for a click or a Script Event. Sound/Sound Volume goes from 0 to 200 percent (100 = the sound as recorded, 0 = no sound). The sound only plays when the listing really opened.


Editor Properties Reference (11 total)

Activation

PropertyTypeDefaultDescription
Activation/Enable ClickboolOnClick on the object opens the listing
Activation/Hover Textstring"Show Details"Hover text, one line of 128 characters at most
Activation/Cooldown Secondsnumber, 0-600.75Wait per visitor between two openings
Activation/Cooldown NoticeboolOnPrivate "please wait" message for a click during the cooldown
Activation/Cooldown Notice Textstring"Please wait {time} before opening this listing again."Text of that message; {time} and {seconds} are replaced, empty = no message
Activation/Enable Script EventboolOffListen to the Script Event below
Activation/Script Event Namestring"mpp_store_open"Event sent by MPP - Action Button; one name per opener

Listing

PropertyTypeDefaultDescription
Listing/Listing URL Or UUIDstring(an MPP listing link)Full Store link, or the listing UUID alone

Sound

PropertyTypeDefaultDescription
Sound/Click SoundSoundResource(none)Sound played at the object when the listing opens
Sound/Sound Volumeinteger, 0-200100Loudness in percent; 0 = no sound

Debug

PropertyTypeDefaultDescription
Debug/Debug LoggingboolOffWrites the setup, the opened listings and the refused requests, with the avatar handle and UUID, to the script console

Version Notes

VersionWhat changed
V1.0First release: one click, one listing
V1.1New Store link format, UUID alone accepted, fallback for other links
V1.2Script Event trigger, compatible with MPP - Action Button. Sold until V1.3.1
V1.3.0Per-visitor cooldown with the "please wait" message, listing opened before the sound, link checked once at start (unusable value = no interaction, warning), Sound Volume 0 silent, one-line hover text, guarded calls, settings grouped by category
V1.3.1 (this version)Version number only

Updating from V1.2

V1.2V1.3.1
Enable Click InteractionActivation/Enable Click
PromptActivation/Hover Text
Enable Script Event, Script Event NameActivation/Enable Script Event, Script Event Name
Listing URL Or UUIDListing/Listing URL Or UUID
Click Sound, VolumeSound/Click Sound, Sound Volume
Debug LoggingDebug/Debug Logging

Recipes

A - A product in a showroom. The product itself, its listing link, Hover Text "Buy this lamp".

B - A poster wall. One poster per product, each with its own link and hover text; Cooldown Seconds 2 to keep the panel from reopening on impatient clicks.

C - A "Buy" button on a control desk. An MPP - Action Button set to send the script event mpp_store_open, Activation/Enable Script Event On on the opener, Enable Click Off if the product itself should not be clickable.

D - Several openers on one desk. Give each opener its own Script Event Name (mpp_store_open_lamp, mpp_store_open_chair) and one button per name.


Troubleshooting

SymptomCheck
The object has no hover text and cannot be clickedListing URL Or UUID empty or without a UUID (warning at start: paste the Store link or its UUID), or Enable Click Off
Nothing opens on clickYour own cooldown (you get the "please wait" message), or the listing was refused by Sansar for a moment (warning in the script console: try again after the cooldown)
The wrong window opensA link without a UUID opens as a location detail view (warning at start): paste the full listing link
The Action Button does nothingEnable Script Event On, the button's command equal to Script Event Name; the button must be an MPP - Action Button (it carries the avatar)
Two openers open at onceThey share the same Script Event Name: give each its own
No soundA sound in Click Sound, Sound Volume above 0; the sound only plays when the listing really opened
The hover text is cutIt is limited to one line of 128 characters
I want to know what the script doesTurn Debug/Debug Logging On: the script console shows the start summary ("Target=listing UUID ..."), every opening and every refusal

Limits


ItemWhat it adds
Action Button ScriptButtons that open the listing through a script event. Store: https://www.sansar.com/store/listings/3e1a3546-6c79-4527-bc1e-78d02648d19e/action-button-script
Open Creator Store ScriptOpens a creator's whole store instead of one listing. Store: https://www.sansar.com/store/listings/3d87d439-c908-4c2d-bd55-3d9969d2a524/open-creator-store-script
Send Website To Nearby Chat ScriptSends a website link in the chat. Store: https://www.sansar.com/store/listings/2b1465e7-ca59-4f7c-b01f-797ffb860ebe/send-website-to-nearby-chat-script

MPP - My Pretty Pixels. Store Listing Opener Script V1.3.1 (script MPP - Store Listing Opener). Store: https://www.sansar.com/store/listings/8c7e1415-e339-4db5-98d1-6dfacee78d14/store-listing-opener-script

↑