Keeping Appliers Secure!

Keeping Appliers Secure!

I know mesh makers aren’t always master script makers, so I’m going to share a couple snippets of code to make your applier scripts more secure wither or not you’re on our system.

if(perm_mask & PERM_TRANSFER) { llRemoveInventory(llGetScriptName()); }

Replace the the bold variable is whatever listen handler you are using to ensure the script breaks when put into full perm mesh. (warning, this means it won’t work for YOU, but will for your customers).

If you want to be fancy, and make it so it works for you, but breaks for your customers when in full perm mesh:

if(perm_mask & PERM_TRANSFER && llGetOwner() != “<your key here>”) { llRemoveInventory(llGetScriptName()); }


key creatorThisPrim = llGetCreator();
if ( (string)creatorThisPrim != “——your key here——-” ){ llRemoveInventory(llGetScriptName()); }

This ensures that the script will only work in meshes you’ve created.