Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. //exterior tp
  2.  
  3. integer warpchannel = -1716231163; //Channel to receive the id of the exit prim of the wormhole or console to teleport to.
  4. integer send = -1716231164; // Channel to send a message to the exit prim to stop broadcasting its id.
  5. integer delete_channel = -1716231166; // Channel to delete the exterior when in flight.
  6. integer listen_handle;
  7. integer listen_handle2;
  8. vector exitprim; // The vector of the exit prim.
  9. list destination; // Adding the vector of the exit prim to a list.
  10. key toucher;
  11.  
  12. default
  13. {
  14.  
  15.  
  16. on_rez(integer start_param)
  17. {
  18. llResetScript();
  19. }
  20.  
  21. state_entry()
  22. {
  23. integer Channel = (integer) ( "0x" + (string) llGetOwner() ) - 654321;
  24. listen_handle = llListen(Channel,"","",""); //Listens on the channel for the id of the exit prim.
  25. listen_handle2 = llListen(Channel,"","","");
  26. llRequestPermissions(llGetOwner(), PERMISSION_TELEPORT);
  27.  
  28.  
  29. }
  30.  
  31. touch_end(integer num)
  32. { toucher = llDetectedKey(0);
  33. if(toucher == llGetOwner())
  34. {
  35. llTeleportAgent(llGetOwner(),"",llList2Vector(llGetObjectDetails(llList2Key(destination,0), [OBJECT_POS]),0),<0.0, 0.0, 0.1>);
  36. }
  37. }
  38. listen(integer channel, string name, key id, string message)
  39. {
  40. integer Channel = (integer) ( "0x" + (string) llGetOwner() ) - 654321;
  41. if(channel == Channel) //If we hear the id from the exit prim.
  42. {
  43.  
  44. llListenRemove(listen_handle);
  45.  
  46. exitprim = llList2Vector(llGetObjectDetails(id, [OBJECT_POS]),0);
  47. //Set the vector to the position of the exit prim.
  48.  
  49.  
  50. destination += id; //Add the id of the exit prim to a list so we can call the list to update its position when changed.
  51. llRegionSay(Channel,"Stop"); //Sends a message to the exit prim to stop broadcasting its id.
  52.  
  53. }
  54. }
  55. }
  56.  
  57.  
  58. // rezzer
  59.  
  60. integer rezext = -1716231165;
  61. integer listen_handle;
  62. default
  63. {
  64. state_entry()
  65. {
  66. integer Channel = (integer) ( "0x" + (string) llGetOwner() ) - 654321;
  67. listen_handle = llListen(Channel,"","","");
  68. }
  69.  
  70. listen(integer channel, string name, key id, string message)
  71. {
  72. integer Channel = (integer) ( "0x" + (string) llGetOwner() ) - 654321;
  73. if(channel == Channel)
  74. {
  75. if(message == "Land")
  76. {
  77. llRezObject("~MPBDr12-2.24", llGetPos() + <0.0,0.0,2.0>, <0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>, 0);
  78. }
  79.  
  80. }
  81.  
  82. }
  83.  
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement