User talk:Nelson Porthos

From Second Life Wiki
Revision as of 03:10, 1 May 2010 by Nelson Porthos (talk | contribs) (Created page with ' == Simple script to send a simple e-mails via Second life == default { state_entry() { llListen( 1, "", NULL_KEY, "" ); llListen( 2, "", NULL_KEY, "" );...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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);
        
    }

}