Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key CosmosstatusQuery;
  2. float interval = 5.0; // do stuff every this seconds
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.         llSetTimerEvent(interval);
  8.        
  9.     }
  10.     timer()
  11.     {
  12.         key CosmosstatusQuery = llRequestSimulatorData( "Cosmos", DATA_SIM_STATUS );
  13.        
  14.     }
  15.    
  16.     dataserver(key query_id, string data)
  17.     {
  18.         if (query_id == CosmosstatusQuery)
  19.         {
  20.             if (data =="up")
  21.             {
  22.                 llSetObjectName( "Guide");
  23.                 llSay ( 0, "Cosmos is up");
  24.             }
  25.             else
  26.             {
  27.                 llSetObjectName( "Cosmos is rebooting please wait");
  28.                 llSay ( 0, "Cosmos is rebooting please wait");
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement