AvatarShot

AvatarShot Docs

Knowledge Base and Policy Center

AvatarShot Knowledge Base

Vendor Script Setup

Structured guidance for users, creators, brands, developers, trust operations, and legal compliance.

Vendor Script Setup

Set up in-world vendors that automatically process payments and deliver products.

How It Works

  1. You create a product on AvatarShot with a Product UUID
  2. You put our LSL script in a prim in your SL store
  3. Customer pays the prim → script notifies AvatarShot → item is delivered
  4. 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

  1. Create a prim (box, cylinder, etc.) for your vendor display
  2. Put the product (the item to deliver) inside the prim's inventory
  3. Put the configured script inside the prim
  4. The prim will display the product name and price
  5. 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:

  1. Download: avatarshot.com/lsl/AvatarShot_DeliveryBot.lsl
  2. Create a prim and put ALL your products inside its inventory
  3. Put the delivery bot script inside
  4. The bot polls the server every 30 seconds for pending deliveries
  5. When a redelivery is requested on the web, the bot sends the item

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

ProblemSolution
Vendor shows "Loading..."Check API_KEY and PRODUCT_ID are correct
Payment received but no deliveryCheck item is in prim inventory with correct name
API Error in owner chatCheck your internet connection and API key
Wrong price displayedUpdate the price on avatarshot.com, then reset the script