Guest User

Untitled

a guest
May 27th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. integer channel = 12311;
  2. integer ismessage = 0;
  3. integer channelscan = 20000;
  4. integer i = -20000;
  5. string interuptmsg;
  6.  
  7. default
  8. {
  9. touch_start(integer total_number)
  10. {
  11. llListen(channel, "", "", "");
  12. }
  13. listen(integer channel, string name, key id, string msg)
  14. {
  15.  
  16. if(msg == "Scan Msg")
  17. {
  18. for(i = -20000; i < channelscan; i++)
  19. {
  20. if(msg == "")
  21. {
  22. ismessage = 0;
  23. }
  24. else
  25. {
  26. ismessage = 1;
  27. }
  28. llSetText("Scanning channels\n"+(string) i, <1,1,1>, 1);
  29. if(i == 19999)
  30. {
  31. llSetText("Scanning channels\n Complete", <1,1,1>, 1);
  32. }
  33.  
  34. if(ismessage == 1)
  35. {
  36. llSay(0, (string) name +": "+ (string) msg + " - " + (string) channel);
  37. }
  38. }
  39. }
  40. }
  41. }
Add Comment
Please, Sign In to add comment