Jump to content

Content rating settings


You are about to reply to a thread that has been inactive for 1410 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1410 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...