Advertisement
Gayngel

Untitled

Jan 29th, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string GetLocation()
  2. {
  3.     string globe = "http://maps.secondlife.com/secondlife";
  4.     string region = llGetRegionName();
  5.    
  6.    
  7.    
  8.     vector pos = llGetPos();
  9.    
  10.     string posx = (string)(llRound(pos.x));
  11.     string posy = (string)(llRound(pos.y) - 3);
  12.     string posz = (string)(llRound(pos.z) + 2);
  13.     return (globe + "/" + llEscapeURL(region) +"/" + posx + "/" +posy  + "/" + posz);
  14. }
  15.  
  16. default
  17. {
  18.    
  19.     touch_start(integer total_number)
  20.     {
  21.         llSay(0, "Hello, someone will be here soon to assist you!");  
  22.         llInstantMessage(llGetOwner(),llKey2Name(llDetectedKey(0)) + " needs assistance at your jewelry shop at " + GetLocation() +".");  
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement