Browse Source

Small bugs stamped out

Gwyneth Llewelyn 6 years ago
parent
commit
c4fa5524f2
2 changed files with 8 additions and 3 deletions
  1. 3 1
      query.lsl
  2. 5 2
      touch.lsl

+ 3 - 1
query.lsl

@@ -31,6 +31,7 @@ default
     
     timer()
     {
+        llWhisper(0, "No response from web services...");
         llResetScript();
     }
 
@@ -44,9 +45,10 @@ default
         if (request_id == http_request_id)
         {
             if (status == 200)
-                llInstantMessage(avatar, "Key is " + body);
+                llInstantMessage(avatar, body);
             else
                 llInstantMessage(avatar, "Error " + (string)status + ": " + body);
         }
+        llSetTimerEvent(0.0);
     }
 }

+ 5 - 2
touch.lsl

@@ -14,13 +14,15 @@ default
         llSetText("Sending...", <1,0,0>, 1);
         for (i = 0; i < howmany; i++) {
             http_request_id = llHTTPRequest(touchURL + "?name=" + llEscapeURL(llDetectedName(i)) +
-                "&amp;key=" + llEscapeURL(llDetectedKey(i)), [], "");    
+                "&amp;key=" + llEscapeURL(llDetectedKey(i)), [], "");
+            llSetTimerEvent(360.0);   
         }
-        state default;
+        llSetText("Touch to register your avatar name and UUID", <1,1,1>, 1);
     }
     
     timer()
     {
+        llWhisper(0, "No response from web services...");
         llResetScript();
     }
 
@@ -32,6 +34,7 @@ default
                 llWhisper(0, body);
             else
                 llWhisper(0, "Error " + (string)status + ": " + body);
+            llSetTimerEvent(0.0);
         }
     }
 }