Sari6t Posted July 21, 2018 Share Posted July 21, 2018 Hello, I have a flying machine I made and its lovely and public and it tends to get taken across a sim or two making it hard to find. I love letting people enjoy the ride but would like it to tell me where it is. Anyone ever see such a script? Ive tried the Market Place. nothing, well not from my searching anyway. So if I was going to try to make this Im thinking; timer() llBESTLOCATIONEVENT ( ) llGetOwner IIInstantMessage () the logic being, where am I ( sim and co-ordinates) who owns me send owner message with surl send every x minutes, say 30 Link to comment Share on other sites More sharing options...
Coffee Pancake Posted July 21, 2018 Share Posted July 21, 2018 Yeah, just format your location message like this and you will be able to click a button on a popup and teleport straight to it. llInstantMessage(<YOUR KEY>,"http://maps.secondlife.com/secondlife/<SIM NAME>/<X POS>/<Y POS>/<Z POS>"); 1 Link to comment Share on other sites More sharing options...
Callum Meriman Posted July 21, 2018 Share Posted July 21, 2018 (edited) 4 hours ago, Sari6t said: send every x minutes, say 30 Prepare for spam. Especially if 10, 20, 30 people take them out. At the least put in a counter so there is only one message. You would be better, I think, turning the plane to a temporary item once they sit. That way when they stand, even in a no-script area, the plane will just clean up. As long as people are sitting on a temporary item it won't dissapear. As soon as they stand, pretty much instant clean up. Edited July 21, 2018 by Callum Meriman 1 Link to comment Share on other sites More sharing options...
animats Posted July 21, 2018 Share Posted July 21, 2018 Shergood Aviation has a transponder system. This puts your aircraft on maps on a map server, which can be viewed in a cockpit screen if you get that option. Or you can view the live map of air traffic in SL. 1 Link to comment Share on other sites More sharing options...
Sari6t Posted July 21, 2018 Author Share Posted July 21, 2018 So this is the basic script cobbled from a few examples in the Wiki and it works a treat for what I need. Might mod it more but if someone needs something like this, then this works. float gap = 1800.0; // Send Message Interval float counter = 0.0; string wwGetSLUrl() { string text = "Located at ...."; string globe = "http://maps.secondlife.com/secondlife"; string region = llGetRegionName(); vector pos = llGetPos(); string posx = (string)llRound(pos.x); string posy = (string)llRound(pos.y); string posz = (string)llRound(pos.z); return (text + globe + "/" + llEscapeURL(region) +"/" + posx + "/" + posy + "/" + posz); } default { state_entry() { llSetTimerEvent(gap); } timer() { counter = counter + gap; key owner = llGetOwner(); llInstantMessage(owner,wwGetSLUrl() ); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now