Fix support mode being automatic
This commit is contained in:
parent
fbac872549
commit
26853b43aa
3 changed files with 14 additions and 8 deletions
|
@ -95,5 +95,4 @@ integer MASK_CUSTOM_TEXT_COLOR = 2;
|
|||
integer MASK_WHITEFRAME = 4;
|
||||
|
||||
integer STATE_REBOOT_PENDING =1;
|
||||
integer STATE_REBOOT_FAST =2;
|
||||
|
||||
integer STATE_REBOOT_FAST = 2;
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,11 +5,11 @@ default
|
|||
{
|
||||
state_entry()
|
||||
{
|
||||
llSetObjectName("FFF Stall Board Flash Drive [ZNI]");
|
||||
llSetObjectName("Stall Board Flash Drive [AC]");
|
||||
llListen(5, "", "", "");
|
||||
llListen(99, "", llGetOwner(), "");
|
||||
//llSay(0, "Memory stick is ready");
|
||||
g_iProtocol = 0x2110b;
|
||||
g_iProtocol = 0x2110c;
|
||||
llSetLinkColor(LINK_ROOT, <1,0,0>, 6);
|
||||
//llSay(0, "Flash Memory is empty");
|
||||
|
||||
|
|
Loading…
Reference in a new issue