Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key CosmosstatusQuery;
- float interval = 5.0; // do stuff every this seconds
- default
- {
- state_entry()
- {
- llSetTimerEvent(interval);
- }
- timer()
- {
- key CosmosstatusQuery = llRequestSimulatorData( "Cosmos", DATA_SIM_STATUS );
- }
- dataserver(key query_id, string data)
- {
- if (query_id == CosmosstatusQuery)
- {
- if (data =="up")
- {
- llSetObjectName( "Guide");
- llSay ( 0, "Cosmos is up");
- }
- else
- {
- llSetObjectName( "Cosmos is rebooting please wait");
- llSay ( 0, "Cosmos is rebooting please wait");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement