Jump to content

Open profile by script?


Tattooshop
 Share

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

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

Recommended Posts

49 minutes ago, Rolig Loon said:

Oh that's nice! Thank you very much! Based on an example script, it shows link in the chat but how to make so I do not have to click on the link?

string Who(key id)
{
    return "secondlife:///app/agent/" + (string)id + "/about";
}
 
default
{
    touch_start(integer num)
    {
        llSay(0, "Touched by " + Who(llDetectedKey(0)) + "." );
    }
}

 

Link to comment
Share on other sites

22 minutes ago, Rolig Loon said:

You could trigger it in any event you wish:  timer, listen, link_message, .... It all depends on what you are trying to do.

I tried

default
{
    touch_start(integer total_number)
    {
        return "secondlife:///app/agent/" + (string)id + "/about";
    }
}

but it says "Return statement type does not match function return type".

Link to comment
Share on other sites

7 minutes ago, Tattooshop said:

Hi! WITH clicking a scripted object not the link in a chat.

You have to click the link to open the profile.

You can change what method the link gets delivered, llSay, llShout, llInstantMessage, and so on. Even in a popup dialog box, but you need that link delivered in some form of text.

  • Like 1
Link to comment
Share on other sites

Now I have

default
{
    touch_start(integer num_detected)
    {
        key id = llDetectedKey(0);
        llLoadURL(id,"","secondlife:///app/agent/" + (string)id + "/about");
    }
}

but it still doesn't go to profile directly, I see blue window with text "Load web page?" and only when I click "Go to page" button it opens.

Link to comment
Share on other sites

4 minutes ago, Gadget Portal said:

What you want to do is impossible, and will never be possible, for security reasons.

Yes thank you very much, I already understood it... :D I guess dialog box is the best for me.

Thanks everyone for participation!

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1230 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...