Fix menu activation on helper click for all avatars. (#21)
It was broken for some.
This commit is contained in:
parent
77fe80bb66
commit
2d9b5aebfa
2 changed files with 6 additions and 6 deletions
|
@ -819,7 +819,7 @@ default
|
|||
else if (llGetOwnerKey(id) == llGetOwner())
|
||||
{
|
||||
list data = llParseString2List(msg, ["|"], []);
|
||||
integer num = (integer)llList2String(data, 1);
|
||||
integer num = llList2Integer(data, 1);
|
||||
if (llList2String(data, 0) == "REG")
|
||||
{
|
||||
HELPER_KEY_LIST = llListReplaceList(HELPER_KEY_LIST, [id], num, num);
|
||||
|
@ -827,7 +827,7 @@ default
|
|||
}
|
||||
else if (llList2String(data, 0) == "MENU")
|
||||
{
|
||||
if (llList2String(data, 1) == controller)
|
||||
if (llList2Key(data, 2) == controller)
|
||||
{
|
||||
llMessageLinked(LINK_SET, 90005, "", llDumpList2String([controller, llList2String(SITTERS, num)], "|"));
|
||||
}
|
||||
|
|
|
@ -259,7 +259,7 @@ default
|
|||
{
|
||||
if (llGetStartParameter() != 0)
|
||||
{
|
||||
llRegionSay(comm_channel, "MENU|" + (string)llDetectedKey(0));
|
||||
llRegionSay(comm_channel, "MENU|" + (string)sitter_number + "|" + (string)llDetectedKey(0));
|
||||
}
|
||||
}
|
||||
run_time_permissions(integer perm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue