Advertisement
Gayngel

HUD root prim

Sep 4th, 2016
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string name = "hair_color_red";
  2. integer comchan = -77;
  3. integer uniquechannel;
  4. integer listen_handle;
  5. integer uniquechan1;
  6. integer uniquechan2;
  7. integer uniquechan3;
  8.  
  9.  
  10. default
  11. {
  12. on_rez(integer start_param)
  13. {
  14.  
  15. llResetScript():
  16. }
  17.  
  18. state_entry()
  19. {
  20. uniquechannel = uniquechan = -(integer)("0x" + (string) llGetKey());
  21. uniquechan1 = uniquechannel -1234;
  22. uniquechan2 = uniquechannel - 5678;
  23. uniquechan3 = uniquechannel - 91011;
  24. listen_handle = llListen(comchan,"","","");
  25. llSetTimerEvent(1.0);
  26. }
  27.  
  28. listen(integer channel, string name, key id, string msg)
  29. {
  30.  
  31.     if(channel == comchan)
  32.     {
  33.         if(msg == "Pong!")
  34.         {
  35.  
  36.     llSetTimerEvent(0.0);
  37.     llListenRemove(listen_handle);
  38.  
  39.         }
  40.     }
  41.  
  42. }
  43.  
  44. timer()
  45. {
  46.     llRegionSay(comchan,name+"#"+(string)uniquechannel);
  47.  
  48. }
  49.  
  50.  
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement