Contents

Support Managers

Kaitlynn Rizzo
English
online
xartashah
English
online
show offline managers  
English, Hindi, Russian  

SSTI_SERV_EVENT_RESET (SSTI API Event)

Event fires when SSTI main script has just restarted.

Variables

The following table shows input values (you send them with the API call) and returned output values.

Variable Required Description
link_message parameters:
num SSTI_SERV_EVENT_RESET
str -- not used --
id -- not used --

Comments

This event fires when SSTI server main script has got restarted. No initialization has been read at this point (group name is not known). The configuration notecard will be read after this event.

The server initialization events order is the following:

  1. Server restarted
  2. SSTI_SERV_EVENT_RESET
  3. Server starts reading config, this takes 10-20 seconds
  4. Config notecard has been read, config is known now
  5. SSTI_SERV_EVENT_INITIALIZED
  6. SSTI_SERV_EVENT_GROUP (sent without your request)
  7. SSTI_SERV_EVENT_CLOUD (sent without your request)
  8. SSTI server starts doing its work

Important: The server can be restarted by the user or sim at any moment. Be prepared to get this event at any time (for example, customer edits the configuration notecard).

Example

This example demonstrates the arrival of SSTI initialization events

// Server API
// Commands:
integer SSTI_SERV_API_CUSTOM_BUTTON=-45050001;
integer SSTI_SERV_API_GET_GROUP=-45050002;
integer SSTI_SERV_API_GET_CLOUD=-45050003;
integer SSTI_SERV_API_BOX_CUSTOM_BUTTON=-45050004;
integer SSTI_SERV_API_GET_PARAM=-45050005;
integer SSTI_SERV_API_CUSTOM_HTTP_BUTTONS=-45050006;
integer SSTI_SERV_API_HTTP_REPLY=-45050007;
 
// Events:
integer SSTI_SERV_EVENT_INITIALIZED=-45060001;
integer SSTI_SERV_EVENT_CUSTOM_BUTTON=-45060002;
integer SSTI_SERV_EVENT_GROUP=-45060003;
integer SSTI_SERV_EVENT_CLOUD=-45060004;
integer SSTI_SERV_EVENT_BOX_CUSTOM_BUTTON=-45060005;
integer SSTI_SERV_EVENT_PARAM=-45060006;
integer SSTI_SERV_EVENT_RESET=-45060007;
integer SSTI_SERV_EVENT_LOCALURL=-45060008;
integer SSTI_SERV_EVENT_HTTPBUTTON=-45060009;
integer SSTI_SERV_EVENT_TENANT=-45060010;
integer SSTI_SERV_EVENT_NEW_GUESTPARTNER=-45060011;
integer SSTI_SERV_EVENT_GUESTPARTNER_REMOVED=-45060012;
//
// Example code starts here
default {
    link_message(integer sender, integer cmd, string str, key id) {
        if(cmd == SSTI_SERV_EVENT_RESET) {
            llOwnerSay("SSTI script just restarted");
        }
 
        if(cmd == SSTI_SERV_EVENT_INITIALIZED) {
            llOwnerSay("SSTI script initialized, configuration known");
        }
 
        if(cmd == SSTI_SERV_EVENT_GROUP) {
            llOwnerSay("SSTI tells us its group: " + str);
        }
 
        if(cmd == SSTI_SERV_EVENT_CLOUD) {
            llOwnerSay("SSTI tells us the cloud #: " + str);
        }
    }
}


<< return back to SSTI API reference