From 2d9b5aebfa1a9938b8444b349feb834b319449c5 Mon Sep 17 00:00:00 2001 From: Sei-Lisa Date: Tue, 29 Aug 2017 10:48:51 +0200 Subject: [PATCH] Fix menu activation on helper click for all avatars. (#21) It was broken for some. --- AVsitter2/[AV]adjuster.lsl | 4 ++-- AVsitter2/[AV]helper.lsl | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AVsitter2/[AV]adjuster.lsl b/AVsitter2/[AV]adjuster.lsl index 8af22ad..4cf9304 100644 --- a/AVsitter2/[AV]adjuster.lsl +++ b/AVsitter2/[AV]adjuster.lsl @@ -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)], "|")); } diff --git a/AVsitter2/[AV]helper.lsl b/AVsitter2/[AV]helper.lsl index ab9e1d5..1e5ada2 100644 --- a/AVsitter2/[AV]helper.lsl +++ b/AVsitter2/[AV]helper.lsl @@ -1,6 +1,6 @@ /* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) the AVsitter Contributors (http://avsitter.github.io) @@ -8,7 +8,7 @@ * https://avsitter.github.io/TRADEMARK.mediawiki * * Please consider supporting continued development of AVsitter and - * receive automatic updates and other benefits! All details and user + * receive automatic updates and other benefits! All details and user * instructions can be found at http://avsitter.github.io */ @@ -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)