Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
archiv:opensim:downloads:scripts:e-mail [2024/01/24 16:39] – ↷ Seite von archiv:opensim:downloads:scripts:e-mail nach intern:work:archiv:opensim:downloads:scripts:e-mail verschoben mike | archiv: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. | ||
+ | |||
+ | < | ||
+ | string email_address = " | ||
+ | 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(" | ||
+ | llEmail( email_address, | ||
+ | } | ||
+ | |||
+ | 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, | ||
+ | while(++i < num_detected); | ||
+ | llSay(0," | ||
+ | llSay(0," | ||
+ | llSay(0," | ||
+ | llPlaySound(" | ||
+ | } | ||
+ | } | ||
+ | </ | ||