Vendor Script Setup
Set up in-world vendors that automatically process payments and deliver products.
Where to Get the Seller Tools
The technical LSL files are already available below, and packaged seller kits with the ready-to-rez vendor box flow will be distributed this weekend.
How It Works
- You create a product on AvatarShot with a Product UUID
- You put our LSL script in a prim in your SL store
- Customer pays the prim → script notifies AvatarShot → item is delivered
- Sale is tracked, stats updated, buyer gets redelivery access on the web
Setup Instructions
Step 1: Create your product on AvatarShot
Make sure you have the product created with the correct price and Product UUID set.
Step 2: Get the Vendor Script
Download the script from: avatarshot.com/lsl/AvatarShot_Vendor.lsl
Step 3: Configure the Script
Open the script and edit these lines at the top:
string API_KEY = "YOUR_API_KEY_HERE"; // From your store dashboard
integer PRODUCT_ID = 123; // Your product ID
string PRODUCT_UUID = ""; // Item name in prim inventory
Step 4: Set Up the Prim
- Create a prim (box, cylinder, etc.) for your vendor display
- Put the product (the item to deliver) inside the prim's inventory
- Put the configured script inside the prim
- The prim will display the product name and price
- Set the prim's texture to your product image
Step 5: Test
Right-click the prim → Pay → pay the listed amount. You should receive the item and see the sale on your dashboard.
Delivery Bot (for Redelivery)
For redelivery support, set up a separate Delivery Bot prim:
- Download: avatarshot.com/lsl/AvatarShot_DeliveryBot.lsl
- Create a prim and put ALL your products inside its inventory
- Put the delivery bot script inside
- The bot polls the server every 30 seconds for pending deliveries
- When a redelivery is requested on the web, the bot sends the item
If you prefer a simpler setup, wait for the packaged seller box kits that will be released this weekend.
Important Notes
- The vendor prim must stay rezzed and in a region that allows scripts
- Items in the prim inventory must be Copy + Transfer permission
- The delivery bot needs to be online 24/7 for redelivery to work
- If the bot goes offline, deliveries queue up and are sent when it comes back
Troubleshooting
| Problem | Solution |
|---|---|
| Vendor shows "Loading..." | Check API_KEY and PRODUCT_ID are correct |
| Payment received but no delivery | Check item is in prim inventory with correct name |
| API Error in owner chat | Check your internet connection and API key |
| Wrong price displayed | Update the price on avatarshot.com, then reset the script |