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)
{
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Post", "Tools..", "Color"];
if(kID != llGetOwner())
{
list lMenu = ["main..", "Length", Checkbox(g_iTurn, "Turn2Leasher"), "Tools..", "Color"];
if(g_kLeashedTo)
lMenu += ["Grab Leash"];
else lMenu += ["Unleash"];
{
// Unleash button
// Post button
}else {
if(g_kLeashedTo) lMenu += ["Unleash"];
// Check Authority Level
if(iAuth <= g_iLeashedToAuth)
{
lMenu += ["Unleash", "Post"];
}
}else {
// Grab Leash
// Post
if(kID != llGetOwner()) lMenu += ["Grab Leash"];
lMenu += ["Post"];
}
list lHelper = [];
string sText = "Leash Menu";

View file

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