Advertisement
itoibo

block counter

Jun 28th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer tChan = -135790;
  2. integer statusChan1 = -51069;
  3. integer blockTotal;
  4. statusListener()
  5. {
  6.     integer stat1 = llListen(statusChan1, "1cannon wall w fire physical v 4.0", "", "");//listen for status reports on this channel
  7. }
  8.  
  9.  
  10.  
  11. default
  12. {
  13.     state_entry()
  14.     {
  15.         statusListener();
  16.         llSetTimerEvent(10);
  17.     }
  18.    
  19.     timer()
  20.     {
  21.         llSay(0, (string)blockTotal);
  22.         blockTotal = 0;
  23.         llRegionSay(tChan, "Status");
  24. //        llSay(0, "Hello, Avatar!");
  25.     }
  26.  
  27.  
  28.     listen(integer channel, string name, key ID, string message)
  29.     {
  30.         blockTotal += (integer)message;
  31.        
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement