Advertisement
Guest User

Untitled

a guest
Aug 27th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer action;
  2. integer brush;
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.         llListen( 67, "", NULL_KEY, "" );
  8.     }
  9.     listen(integer channel, string name, key uuid, string msg)
  10.     {
  11.         if(msg=="LEVEL")
  12.         {
  13.             action=0;
  14.             llModifyLand(  action, brush );
  15.         }
  16.         if(msg=="RAISE")
  17.         {
  18.             action=1;
  19.             llModifyLand(  action, brush );
  20.         }
  21.         if(msg=="LOWER")
  22.         {
  23.             action=2;
  24.             llModifyLand(  action, brush );
  25.         }
  26.         if(msg=="SMOOTH")
  27.         {
  28.             action=3;
  29.             llModifyLand(  action, brush );
  30.         }
  31.         if(msg=="NOISE")
  32.         {
  33.             action=4;
  34.             llModifyLand(  action, brush );
  35.         }
  36.         if(msg=="REVERT")
  37.         {
  38.             action=5;
  39.             llModifyLand(  action, brush );
  40.         }
  41.         if(msg=="SMALL 2")
  42.         {
  43.             llSetScale(<2,2,.5>);
  44.             brush=0;
  45.         }
  46.         if(msg=="MEDIUM 4")
  47.         {
  48.             llSetScale(<4,4,.5>);
  49.             brush=1;
  50.         }
  51.         if(msg=="LARGE 8")
  52.         {
  53.             llSetScale(<8,8,.5>);
  54.             brush=2;
  55.         }
  56.         if(msg!="EXIT")
  57.         {
  58.            llDialog(llGetOwner(),"Select Land Action or Brush Size:",["LEVEL","RAISE","LOWER","SMOOTH","NOISE","REVERT","SMALL 2","MEDIUM 4","LARGE 8","EXIT"],67);  
  59.         }
  60.        
  61.     }
  62.  
  63.     touch_start(integer total_number)
  64.     {
  65.         if(llDetectedKey(0)==llGetOwner())
  66.         {
  67.       llDialog(llGetOwner(),"Select Land Action or Brush Size:",["LEVEL","RAISE","LOWER","SMOOTH","NOISE","REVERT","SMALL 2","MEDIUM 4","LARGE 8","EXIT"],67);  
  68.         }
  69.  
  70.     }
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement