Jump to content

Recommended Posts

Posted (edited)

I am sure this cant be just me, but is there a way to say stop me from accidentally TP'ing into a G or M rated sim?

I  ask this because a few times I have gotten caught in a mass Tp, or pulled to a shop without thinking about it, and ended up having to scramble to change outfits or mash the back button.

Is this something that can be done Viewer side, with RLVa (like those neat get into a full sim huds)?

Any thoughts or advice on this would be appreciated and if there is a better suited forum for this, please point (or shove) me in the right direction.

Ideally having two more selections (Moderate, Adult and Adult)in this setting would be grand.

e0a6e5feb9e2cf4c1299ede3d7eec7ca.png

Edited by Doomed Zeimer
Clarification

Share this post


Link to post
Share on other sites
Posted (edited)

Some adult stuff can autohide in non adult places...

Maybe someone could script an RLV addon that auto-Ruths you in G/M sims...

Edited by Fionalein

Share this post


Link to post
Share on other sites

That's a good point that i hadn't thought about,  Sim rating is something that a script can detect, that is something that is well worth looking into, thanks Fionalein

3 minutes ago, Fionalein said:

Some adult stuff can autohide in non adult places...

 

Share this post


Link to post
Share on other sites
Posted (edited)

It's a bit late here, so I'm not guaranteeing this would work, but feel free to give it a try. ;)

key regionQuery;

checkRating() {
    llSleep(3);
    regionQuery = llRequestSimulatorData(llGetRegionName(), DATA_SIM_RATING);
}

default {

    on_rez (integer start_param) {
        llResetScript();   
    }

    state_entry() {
        checkRating();
        llSetMemoryLimit(llGetUsedMemory() + 5120);
    }

    changed (integer change) {
        if (change & CHANGED_REGION) {
            checkRating();
        }
    }

    dataserver (key queryId, string data) {
        if (queryId == regionQuery && (data == "PG" || data == "MATURE")) {
            llOwnerSay("Applying emergency outfit, '" + llGetRegionName() + "' is a region with '" + data + "' rating.");
            llOwnerSay("@detach=force"); // Removes ALL attachments
            llSleep(5); // Small pause just in case of slow regions
            llOwnerSay("@attach:Outfits/Emergencypg=force"); // #RLV/Outfits/Emergencypg/[items here]
        }
    }

}

 

Edited by panterapolnocy

Share this post


Link to post
Share on other sites

Ah, yes, you'd need to add...

llOwnerSay("@detach=n");

... right at the beginning of state_entry() to prevent the script detaching the attachment that is running it. :P 

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, panterapolnocy said:

Ah, yes, you'd need to add...


llOwnerSay("@detach=n");

... right at the beginning of state_entry() to prevent the script detaching the attachment that is running it. :P 

You'd then need to include some method of issuing an llOwnerSay("@detach=y"); command, otherwise you'd be stuck with it until you either disabled RLV and relogged, or you relogged with a non-RLV viewer.

Alternatively, you could give the object a name that includes the word "nostrip", "Rating tester (nostrip)" for example. (Or, I think, though I've never tried it, you could keep it in a folder – an #RLV subfolder? – whose name includes the word "nostrip".)

This stops RLV commands from detaching it, but lets you detach it using the normal SL methods.

Edited by KT Kingsley

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...