User talk:Nelson Porthos
Simple script to send a simple e-mails via Second life
default {
state_entry()
{
llListen( 1, "", NULL_KEY, "" );
llListen( 2, "", NULL_KEY, "" );
llListen( 3, "", NULL_KEY, "" );
}
touch_start(integer total_number)
{
llOwnerSay("/1 to adress!");
llOwnerSay("/2 to subject!");
llOwnerSay("/3 to message!");
}
listen( integer channel, string name, key id, string message )
{
string emailadress;
string Subject;
string Body;
if(channel ==1)
{
emailadress = message;
}
if(channel ==2)
{
Subject = message;
}
if(channel ==3)
{
Body = message;
}
[llEmail][1](emailadress,Subject,Body);
}
}