From 1bac95f82c27c7f1cd1e641c5cef2a280501666f Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 16 Feb 2025 11:42:32 -0700 Subject: [PATCH] Fix security of products --- LSL/raw/tree.lsl | 7 +++++++ LSL/raw/water_well.lsl | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/LSL/raw/tree.lsl b/LSL/raw/tree.lsl index b67b50f..46901ad 100644 --- a/LSL/raw/tree.lsl +++ b/LSL/raw/tree.lsl @@ -144,12 +144,19 @@ default } touch_start(integer t) { + if(!llSameGroup(llDetectedKey(0))) { + llRegionSayTo(llDetectedKey(0), 0, "/!\\ WARNING /!\\\n\n> You are not wearing the required group tag. All products in the Aria's Creations Farm System require you to wear the correct group tag for security reasons."); + return; + } // Show the menu if done growing if(g_iTreeStage == 1 && g_iTreeGrowth >= 100) { g_iChannel = llRound(llFrand(0xFFFF)); g_iListen = llListen(g_iChannel, "", llDetectedKey(0), ""); llDialog(llDetectedKey(0), "Tree\n=====\nDo you want to chop the tree down?\n\n* Tools are not yet implemented", ["Yes", "No"], g_iChannel); + } else { + llRegionSayTo(llDetectedKey(0), 0, "/!\\ Tree Not Grown /!\\\n\n> At this time, the ability to chop the tree down at earlier stages is unavailable."); + return; } } diff --git a/LSL/raw/water_well.lsl b/LSL/raw/water_well.lsl index 6f8383d..5478fcc 100644 --- a/LSL/raw/water_well.lsl +++ b/LSL/raw/water_well.lsl @@ -12,7 +12,7 @@ float g_fEmpty = -1.142; float g_fFull = -0.202; integer g_iRequestTime = 0; string WATER_WELL_NAME = "WoodStoneWaterWell"; -string VERSION = "1.0.2"; +string VERSION = "1.0.3"; integer g_iWaterPrim; integer g_iRoofPrim; integer g_iDestroyed = 0; @@ -249,6 +249,11 @@ default } touch_start(integer t) { + if(!llSameGroup(llDetectedKey(0))) { + llRegionSayTo(llDetectedKey(0), 0, "/!\\ WARNING /!\\\n\n> You are not wearing the required group tag. All products in the Aria's Creations Farm System require you to wear the correct group tag for security reasons."); + return; + } + if(g_iDestroyed) { llSay(0, "The well appears to have sustained a lot of damage. You'll need to construct a new one."); return;