Fix support mode being automatic
This commit is contained in:
parent
fbac872549
commit
26853b43aa
3 changed files with 14 additions and 8 deletions
|
@ -185,8 +185,6 @@ state boot{
|
|||
llSetLinkColor(LINK_ROOT, <1,1,1>, 0);
|
||||
}
|
||||
|
||||
UpdateDSRequest(NULL, llHTTPRequest("https://api.zontreck.dev/zni/Get_Support.php", [], ""), "get_sup");
|
||||
|
||||
if(g_kLeasedTo==NULL && !g_iHaveKVP){
|
||||
//llRegionSay(0x99f9, llList2Json(JSON_OBJECT, ["op","request","get","kvp_get", "var", "$.FFF."+llGetObjectDesc()]));
|
||||
g_iHaveKVP=0;
|
||||
|
@ -362,6 +360,14 @@ state boot{
|
|||
llRegionSay(70, llDumpList2String(["checkgroup", "menu", llDetectedKey(0)], "%"));
|
||||
}
|
||||
|
||||
touch_end(integer n) {
|
||||
if(llDetectedTouchPos(0) == ZERO_VECTOR) {
|
||||
// Dragged off
|
||||
if(g_lSupport == [])
|
||||
checkSupport();
|
||||
}
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
#if DEVELOPER == 1
|
||||
|
@ -461,9 +467,10 @@ state boot{
|
|||
|
||||
list lPar = llParseStringKeepNulls(b,[";;"],[]);
|
||||
if(llList2String(lPar,0)=="GetSupport"){
|
||||
g_lSupport = llParseString2List(llList2String(lPar,1), ["~"],[]);
|
||||
g_lSupport = StrideOfList(llParseString2List(llList2String(lPar,1), ["~"],[]), 2, 0, -1);
|
||||
llMessageLinked(LINK_SET, 0x1D, llList2Json(JSON_ARRAY, g_lSupport), "");
|
||||
|
||||
|
||||
llWhisper(0, "Obtained support representative list");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue