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