Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

archiv:opensim:downloads:scripts:e-mail [2024/01/09 22:25] – ↷ Seite von archiv:opensim:downloads:scripts:e-mail nach intern:work:archiv:opensim:downloads:scripts:e-mail verschoben mikearchiv:opensim:downloads:scripts:e-mail [Unbekanntes Datum] (aktuell) – Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1
Zeile 1: Zeile 1:
 +===== E-Mail =====
 +
 +Damit dieses Script funktionieren kann muss zuvor die E-Mail Funktion in der Konfigurationsdatei opensim.ini eingeschaltet und konfiguriert werden.
 +
 +<code>
 +string email_address = "adresse@domain.xyz"; // who will receive the messages
 +string hname = "User Name"; // name that will be displayed in hover text as receiver of mail
 +string date;
 +string name;
 +string sim;
 +default
 +{
 +    state_entry() {
 +
 +        //Send an email to a normal email account
 +        llSetText("click to send " + hname + " an email",<1,1,1>,1);
 +        llEmail( email_address, "Initializing Email Module", "[STARTUP COMPLETE]");
 +    }
 +
 +    touch_start( integer num_detected ) {
 +        integer i = 0;
 +        date = llGetDate();
 +        name = llDetectedName(i);
 +        sim = llGetRegionName();
 +
 +        // Send another email, telling who touched the prim.
 +        do
 +            llEmail( email_address, "Prim Touched", "I was touched by: " + llDetectedName(i) + "\nKey: " + (string) llDetectedKey(i) + "\n On the Following Date: " + date);
 +        while(++i < num_detected);
 +        llSay(0,"------------------------>");
 +        llSay(0,"E-Mail sent from " + name + "@" + sim + ".DOMAIN");
 +        llSay(0,"------------------------>");
 +        llPlaySound("Boing", 1.0);
 +    }
 +}
 +</code>
  
Navigation

Alternative Startseite
Helpdesk
Links
Maps
Radio
Suchmaschine


Drucken/exportieren