Advertisement
Gayngel

User Functions Lesson 2, Box 2 Incompleted Script

Apr 28th, 2016
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key Owner;
  2. key av;
  3. integer chan;
  4. integer listen_handle;
  5.  
  6. // Write your function below this comment:
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. //  Write your function above this line.
  16.  
  17.  
  18. default
  19. {
  20.    state_entry()
  21.    {
  22.      
  23.      Owner = llGetOwner();
  24.      chan = -(integer)("0x"+llGetSubString((string)llGetKey(),-8,-1)) -38628;
  25.        
  26.    }
  27.    
  28.    on_rez(integer start_param)
  29.    {
  30.    
  31.      llResetScript();  
  32.        
  33.     }
  34.    
  35.    touch_end(integer num)
  36.    {
  37.    
  38.     av = llDetectedKey(0);
  39.  
  40.     llSetTimerEvent(120.0);  
  41.     listen_handle = llListen(chan,"",av,"");
  42.     llTextBox(av, "\nTell me something good:", chan);
  43.  
  44.  
  45.       //Call your function below this comment:
  46.      
  47.      
  48.      
  49.      
  50.       //  Call your function above this line.
  51.      
  52.      
  53.      
  54.        
  55.    }
  56.    
  57.    collision_start(integer num)
  58.    {
  59.      
  60.     //Call your function below this comment:
  61.        
  62.        
  63.    }  
  64.    
  65.    listen(integer channel, string name, key id, string msg)
  66.    {
  67.      
  68.       if(channel == chan)
  69.       {
  70.        
  71.         llListenRemove(listen_handle);  
  72.         av = id;  
  73.  
  74.      //Call your function below this comment:
  75.                
  76.          
  77.       }
  78.        
  79.     }
  80.  
  81.  
  82.      timer()
  83.     {
  84.      
  85.      llSetTimerEvent(0.0);
  86.      llListenRemove(listen_handle);  
  87.        
  88.     }
  89. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement