Fix security of products
This commit is contained in:
parent
69f389a5ff
commit
1bac95f82c
2 changed files with 13 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue