SHARE
TWEET

Untitled

Cassandra_Kestrel Oct 13th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list rooms = ["kitchen","living", "bedroom"];
  2. list kitchen = ["open","close","tnt","texture","menu"];
  3. list living = ["open","close","tnt","texture","menu"];
  4. list bedroom = ["open","close","tnt","texture","menu"];
  5. key user;
  6. integer menuListen;
  7. integer channel = 100;
  8. //------------------------------------------------------------------------------------
  9.  
  10.  
  11.  
  12. default
  13. {
  14.     state_entry()
  15.     {
  16.        
  17.     }
  18.  
  19.     touch_start(integer total_number)
  20.     {
  21.         llListenRemove(menuListen);
  22.         menuListen = llListen(channel, "", user, "");
  23.         user = llGetOwner();
  24.         llDialog(user,"rooms",rooms,channel);
  25.        
  26.     }
  27.    
  28.      listen(integer channel,string name, key id,string message)
  29.     {
  30.         if(id==user)
  31.         {
  32.            
  33.             if(message=="kitchen")
  34.             {
  35.                llSay(0, message);
  36.            
  37.            
  38.             }
  39.    
  40.      if(message=="living")
  41.             {
  42.                  llSay(0, message);
  43.            
  44.             }
  45.      if(message=="bedroom")
  46.             {
  47.              llSay(0, message);    
  48.            
  49.             }
  50.    
  51.         }
  52.     }
  53. }
RAW Paste Data
Top