Fix the grab leash button not showing for others

This commit is contained in:
zontreck 2023-11-12 17:01:37 -07:00
parent 8b325653ca
commit d9ba708f86
2 changed files with 15 additions and 14 deletions

View file

@ -69,16 +69,25 @@ call_menu(integer id, key kAv)
Main(key kID, integer iAuth) Main(key kID, integer iAuth)
{ {
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Post", "Tools..", "Color"]; list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Tools..", "Color"];
if(kID != llGetOwner())
{
if(g_kLeashedTo) if(g_kLeashedTo)
lMenu += ["Grab Leash"]; {
else lMenu += ["Unleash"]; // Unleash button
// Post button
}else { // Check Authority Level
if(g_kLeashedTo) lMenu += ["Unleash"]; if(iAuth <= g_iLeashedToAuth)
{
lMenu += ["Unleash", "Post"];
} }
}else {
// Grab Leash
// Post
if(kID != llGetOwner()) lMenu += ["Grab Leash"];
lMenu += ["Post"];
}
list lHelper = []; list lHelper = [];
string sText = "Leash Menu"; string sText = "Leash Menu";

View file

@ -1,14 +1,6 @@
#include "src/includes/common.lsl" #include "src/includes/common.lsl"
string sSetor(integer test, string a, string b)
{
if(test)return a;
return b;
}
default default
{ {
state_entry() state_entry()