Damit dieses Script funktionieren kann muss zuvor die E-Mail Funktion in der Konfigurationsdatei opensim.ini eingeschaltet und konfiguriert werden.
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); } }