G General

[CrocTech] Give Random object on payment [Full Permission]

[CrocTech] Give Random object on payment [Full Permission]
Details
Features
Contents
Reviews

Set the object’s Sale Price (in Edit > General tab) to match the PRICE in the notecard config given with this system. You can choose the price you want. Add the main script.

When a user touches the object, the script responds by providing them with clear, private instructions. Specifically, it sends a message via instant message (IM) that tells them exactly how much they need to pay and how to proceed. This message is based on the amount configured in the notecard named "Config", which the script reads automatically upon startup. For example, if the notecard contains PRICE=50, the user will see a message like: "This object costs exactly L$50. Right-click and choose 'Pay' to receive a random item."

The touch action does not trigger a payment or item delivery on its own—it is simply used to inform the user of the required amount and how to initiate the purchase. This ensures clarity and reduces confusion, particularly for users unfamiliar with scripted vendors.

If the notecard is missing, misnamed, or does not contain a valid price line, the script will inform the user that the system is not properly configured and will advise them to contact the owner. This helps prevent invalid transactions and ensures the vendor only functions when fully set up.

By using the touch interaction as a simple informational step, this system creates a smoother user experience, guiding buyers to use the correct payment method while ensuring they know exactly what to expect before any money changes hands.

The object’s Click to Pay popup will only show this set sale price.

The script reads the same price from the notecard and checks payment validity.

If payment matches, script gives a random item; if not, it refunds.

Copyright & Permissions Policy
This product is sold with Full Permissions (Copy, Modify, Transfer) to facilitate ease of use in your own creations. However, the following usage restrictions apply:

❌ You may NOT resell, redistribute, or give away this script as-is, whether standalone or as part of a script pack.

✅ You may include this script only as part of your own builds or creations, such as doors, houses, or furniture.

⚠️ When including in a build for sale or distribution, the script must be set to:
NO MODIFY / NO TRANSFER (Copy only or Transfer only are allowed, but not both).

⚖️ Violation of this policy may result in DMCA action and removal of your listings from marketplaces.

By purchasing or using this product, you agree to abide by this copyright and licensing policy. Thank you for respecting the work of creators in Second Life™.

See item in Second Life View Video »