I wanted to add an email-receiving functionality to an object...
I first tried out llGetNextEmail with a seperate script, it worked fine! Then I added the same code into my already prepared script of the object and it did not work anymore.
Here's the code of the different scripts:
Basic, testing-only script:
default
{
state_entry()
{
}
touch_start(integer totalnumber)
{
llGetNextEmail("", ""
;llSay(0, "check"
;}
email(string time, string address, string subj, string message, integer num_left)
{
llSay(0,"mail! " + (string)num_left + " remaining"
;}
}
Now the part where I included the same funtionality into my second script, which did not work:
default
{
state_entry()
{
aktStatus = statusStehend;
llSay(0, "Script gestartet"
;llSetText("Ich bin ein Demozug! Klick mich an!",<1.0,0.0,0.0>,1.0);
llSetStatus(STATUS_PHYSICS, TRUE);
llSetStatus(STATUS_ROTATE_X, FALSE);
llSetStatus(STATUS_ROTATE_Y, FALSE);
llSetStatus(STATUS_BLOCK_GRAB, TRUE);
}
touch_start(integer total_number)
{
llSay(0, "Touched."
;llGetNextEmail("",""
;state searching;
}
email(string time, string address, string subj, string message, integer num_left)
{
llSay(0,"mail! " + (string)num_left + " remaining"
;}
}
Where is my mistake? email() is never called, even though I sent several mails to the object...
