Jump to content

Transponder


Sari6t
 Share

You are about to reply to a thread that has been inactive for 2099 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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 by Callum Meriman
  • Like 1
Link to comment
Share on other sites

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

You are about to reply to a thread that has been inactive for 2099 days.

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
 Share

×
×
  • Create New...