CasperLet/OpenSourceScripts

From CasperTech Wiki
Jump to navigation Jump to search

Cautions & Warnings

Stop icon.pngBoth the door and sign objects (and thus their full perm scripts) are provided "As-Is", as a tool for scripters to use, without warranty, guarantee or support. This also means CasperTech is NOT under any obligation to add any new features.

Making a product using these scripts?

Info.pngCasper Warden requests that if you use these scripts in a more advanced product and set it up for sale that you let him know, send him a vendor for the final product, and he'll help promote it.

Sample Door Script (Unsupported)


Using the door script as-is


You may informally ask in the CasperTech support group if you get stuck, of course, but remember that that CasperTech will not be adding new features to these scripts - this is why they're open-source and full perm. Chances are there's a scripter in the group who might be willing to help, or you can see if there's a scripter already on your team.

Naturally, you're welcome to use them without restriction. To use them as-is (applies to both door and sign):

  1. Rez the door near the CasperLet unit
  2. Touch/click it
  3. Click the CasperLet unit you want to link the door to
  4. Click "Yes" on the popup menu
  5. Now click the CasperLet unit once more to send the most recent data
  6. The door should now function as most doors will, save that it will automatically restrict itself to the current CasperLet tenant when rented.

The door will still work from within a linkset.

Door script code


Sample Sign Script (Unsupported)


Landlords: Using the sign as-is


  1. Rez the sign near the CasperLet unit,
  2. Touch/click it
  3. Click the CasperLet unit you want to link the door to
  4. Click "Yes" on the popup menu
  5. Now click the CasperLet unit once more to send the most recent data
  6. The sign will now be linked to the rental, and only allow the tenant to change the texture

Tenant usage of properly linked sign


  1. Customer pays the associated rental unit to begin a rental.
  2. Customer clicks sign, gets "Please HOLD DOWN CONTROL and drag the texture..." message.
  3. Texture must be set by the renter as FULL PERM to NEXT OWNER
  4. Customer then CTL + drags the proper texture over to the sign.
  5. If customer drags the wrong texture, they need to repeat steps 3 and 4 to change the texture.

New texture is NOT stored within the rental unit or the sign - the script calls it by the UUID, which is why the texture needs to be set to full perms.

Error message


If the message on the tenant's click changes to "This store is available! If you pay the rental meter below..." then the CasperLet system owner needs to properly link the sign.

CasperLet API


See the CasperLet API page for details.