Add code that forces an error if compiled in LSO to all scripts
This should prevent accidents when saving in inventory in the official viewer.
This commit is contained in:
parent
9c84243390
commit
f1ec6bde26
22 changed files with 46 additions and 32 deletions
|
@ -24,7 +24,7 @@ integer notecard_section;
|
|||
integer SCRIPT_CHANNEL;
|
||||
string myPose;
|
||||
key mySitter;
|
||||
list camera_triggers;
|
||||
list camera_triggers = [myPose]; //OSS::list camera_triggers; // Force error in LSO
|
||||
list camera_settings;
|
||||
integer lastByButton = -1;
|
||||
string lastPose;
|
||||
|
@ -109,6 +109,7 @@ default
|
|||
|
||||
state_entry()
|
||||
{
|
||||
camera_triggers = [];
|
||||
SCRIPT_CHANNEL = (integer)llGetSubString(llGetScriptName(), llSubStringIndex(llGetScriptName(), " "), 99999);
|
||||
notecard_key = llGetInventoryKey(notecard_name);
|
||||
if (llGetInventoryType(notecard_name) == INVENTORY_NOTECARD)
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
integer COMM_CHANNEL = -57841689;
|
||||
integer comm_handle;
|
||||
list A = [comm_handle]; //OSS::list A; // Force error if not compiled in Mono
|
||||
|
||||
list findPrimsWithSubstring(string name)
|
||||
{
|
||||
|
|
|
@ -77,7 +77,7 @@ integer COMM_CHANNEL = -57841689;
|
|||
integer comm_handle;
|
||||
key avatar;
|
||||
list links;
|
||||
list ring_prims;
|
||||
list ring_prims = [avatar]; //OSS::list ring_prims; // Force error if not compiled in Mono
|
||||
integer all_poses = -2; // cache the position of the "*" if it exists, for performance
|
||||
|
||||
goChain(list new_links)
|
||||
|
|
|
@ -27,7 +27,7 @@ list XCITE_TILT;
|
|||
integer TIMER_DEFAULT = 30;
|
||||
string CURRENT_POSE;
|
||||
list TIMERS;
|
||||
list SITTERS;
|
||||
list SITTERS = [CURRENT_POSE]; //OSS::list SITTERS; // Force error if not compiled in Mono
|
||||
integer DEBUG;
|
||||
|
||||
Out(integer level, string out)
|
||||
|
|
|
@ -27,7 +27,7 @@ key SLAVE;
|
|||
string menu;
|
||||
integer menuPage;
|
||||
list folderPath;
|
||||
list folderOptions;
|
||||
list folderOptions = [menu]; //OSS::list folderOptions; // Force error in LSO
|
||||
list folderNamesFullLength;
|
||||
list CLOTHING_LAYERS = ["gloves", "jacket", "pants", "shirt", "shoes", "skirt", "socks", "underpants", "undershirt", "", "", "", "", "alpha", "tattoo"];
|
||||
list ATTACHMENT_POINTS = ["", "chest", "skull", "left shoulder", "right shoulder", "left hand", "right hand", "left foot", "right foot", "spine", "pelvis", "mouth", "chin", "left ear", "right ear", "left eyeball", "right eyeball", "nose", "r upper arm", "r forearm", "l upper arm", "l forearm", "right hip", "r upper leg", "r lower leg", "left hip", "l upper leg", "l lower leg", "stomach", "left pec", "right pec", "", "", "", "", "", "", "", "", "neck", "root"];
|
||||
|
|
|
@ -49,7 +49,7 @@ integer SEARCHhandle;
|
|||
integer CHECKhandle;
|
||||
integer ASKROLEhandle;
|
||||
list DETECTED_AVATAR_SHORTNAMES;
|
||||
list DETECTED_AVATAR_KEYS;
|
||||
list DETECTED_AVATAR_KEYS = [WAITPOSE]; //OSS::list DETECTED_AVATAR_KEYS; // Force error in LSO
|
||||
integer awaiting_results;
|
||||
string baseCaptureRestrictions = "@unsit=n";
|
||||
string baseReleaseRestrictions = "@unsit=force";
|
||||
|
|
|
@ -22,7 +22,7 @@ list DESIGNATIONS_NOW;
|
|||
key CONTROLLER = NULL_KEY;
|
||||
integer KEY_TAKEN;
|
||||
string CONTROLLER_NAME;
|
||||
list SITTERS_MENUKEYS;
|
||||
list SITTERS_MENUKEYS = [CONTROLLER_NAME]; //OSS::list SITTERS_MENUKEYS; // Force error in LSO
|
||||
list SITTERS_SHORTNAMES;
|
||||
integer menu_channel;
|
||||
integer menu_handle;
|
||||
|
|
|
@ -57,7 +57,7 @@ list anim_animsequences;
|
|||
list running_uuid;
|
||||
list running_sequence_indexes;
|
||||
list running_pointers;
|
||||
list SITTERS;
|
||||
list SITTERS = [key_request]; //OSS::list SITTERS; // Force error in LSO
|
||||
list SITTER_POSES;
|
||||
|
||||
integer get_number_of_scripts()
|
||||
|
|
|
@ -29,7 +29,7 @@ string last_menu_avatar;
|
|||
integer menu_channel;
|
||||
key notecard_key;
|
||||
key notecard_query;
|
||||
list MENU_LIST;
|
||||
list MENU_LIST = [custom_text]; //OSS::list MENU_LIST; // Force error in LSO
|
||||
list DATA_LIST;
|
||||
integer MTYPE;
|
||||
integer LMSOURCE = 0; //lmsource self = 0, lmsource linkset = 1
|
||||
|
@ -314,6 +314,7 @@ default
|
|||
{
|
||||
remove_script("Use only one copy of this script!");
|
||||
}
|
||||
MENU_LIST = [];
|
||||
check_avsit();
|
||||
notecard_key = llGetInventoryKey(notecard_name);
|
||||
Out(0, "Loading...");
|
||||
|
|
|
@ -25,6 +25,7 @@ integer experience_denied_reason;
|
|||
key originalowner;
|
||||
key parentkey;
|
||||
key give_prop_warning_request;
|
||||
list A = [parentkey]; //OSS::list A; // Force error in LSO
|
||||
|
||||
unsit_all()
|
||||
{
|
||||
|
@ -90,7 +91,9 @@ state prop
|
|||
}
|
||||
|
||||
//LSL::
|
||||
parentkey = llList2String(llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY]), 0);
|
||||
parentkey = llList2String(llGetObjectDetails(llGetKey(), [OBJECT_REZZER_KEY]) + A, 0);
|
||||
A = [];
|
||||
|
||||
if(llGetStartParameter() && !llList2Integer(llGetObjectDetails(parentkey, [OBJECT_ATTACHED_POINT]), 0))
|
||||
{
|
||||
llSetTimerEvent(10);
|
||||
|
|
|
@ -34,7 +34,7 @@ list prop_groups;
|
|||
list prop_points;
|
||||
list sequential_prop_groups;
|
||||
integer HAVENTNAGGED = TRUE;
|
||||
list SITTERS;
|
||||
list SITTERS = [key_request]; //OSS::list SITTERS; // Force error in LSO
|
||||
list SITTER_POSES;
|
||||
list ATTACH_POINTS =
|
||||
[ ATTACH_CHEST, "chest"
|
||||
|
|
|
@ -28,7 +28,7 @@ list SEQUENCE_DATA_ACTIONS;
|
|||
list SEQUENCE_DATA_DATAS;
|
||||
string CURRENT_SEQUENCE_NAME;
|
||||
list CURRENT_SEQUENCE_ACTIONS;
|
||||
list CURRENT_SEQUENCE_DATAS;
|
||||
list CURRENT_SEQUENCE_DATAS = [CURRENT_SEQUENCE_NAME]; //OSS::list CURRENT_SEQUENCE_DATAS; // Force error in LSO
|
||||
integer SEQUENCE_LINKNUMBER = 90210;
|
||||
integer SEQUENCE_POINTER = -1;
|
||||
integer sequence_running;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue