Fix security of products

This commit is contained in:
zontreck 2025-02-16 11:42:32 -07:00
parent 69f389a5ff
commit 1bac95f82c
2 changed files with 13 additions and 1 deletions

View file

@ -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;
}
}

View file

@ -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;