/* * Noob-detector - Make a report about an AVsitter setup * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) the AVsitter Contributors (http://avsitter.github.io) * AVsitterā„¢ is a trademark. For trademark use policy see: * https://avsitter.github.io/TRADEMARK.mediawiki * * Please consider supporting continued development of AVsitter and * receive automatic updates and other benefits! All details and user * instructions can be found at http://avsitter.github.io */ /* * Things not implemented: * ~ perms of the object * ~ creator of the object * ~ which platform/world (OpenSim/SL) */ integer sendToSupport=FALSE; integer sendItems = TRUE; string support_avi = ""; string disclaimer = "This script will inspect your object and create a link you can share with others.\n\nClick OK to proceed."; string start_message = "Preparing info, please wait..."; string end_message = "Inspection complete! Script removed."; string product = "Noob Detector"; string version = "1.3"; list allowed_products = ["AVpos","[AV]menu","[AV]object"]; string out; string next_out; list notecards_to_read; key notecard_query; integer notecard_index; integer notecard_line; list item_types = ["TEXTURE","SOUND","LANDMARK","CLOTHING","OBJECT","NOTECARD","SCRIPT","BODYPART","ANIMATION","GESTURE","ALL TYPES"]; list item_ints = [0,1,3,5,6,7,10,13,20,21]; integer menu_channel; string url = "https://avsitter.com/settings.php"; string cache; string webkey; integer webcount; add_out(string say, integer force){ cache+=say; if(!force){ cache+="\n"; } if(llStringLength(llEscapeURL(cache))>1024 || force){ webcount++; llHTTPRequest(url, [HTTP_METHOD,"POST",HTTP_MIMETYPE,"application/x-www-form-urlencoded",HTTP_VERIFY_CERT,FALSE], "w="+webkey+"&c="+(string)webcount+"&t="+llEscapeURL(cache)); cache=""; } } remove_script(){ llOwnerSay("Diagnostic script removed."); llRemoveInventory(llGetScriptName()); } default { state_entry(){ integer i; for(i=0;i1){ i=1; } while (i<=llGetObjectPrimCount(llGetKey())){ list data = llGetLinkPrimitiveParams(i,[PRIM_NAME,PRIM_DESC]); add_out((string)i+", "+llDumpList2String(data,", "),FALSE); i++; if(llGetObjectPrimCount(llGetKey())==1){ jump end; } } @end; // Inventory string line; integer j; for (j=0;j