De DigiWiki.
// Example / Sample Script to show function use.
//
// Script Title: osGetAgentIP.lsl
// Script Author:
// Threat Level: High
//
// Notes: This sample is full opensource and available to use as you see fit and desire.
// Threat Levels only apply to OSSL & AA Functions
//================================================================
// Inworld Script Line: osGetAgentIP(key agent);
//
// Example of osGetAgentIP
//
default
{
state_entry()
{
llSay(0, "Touch to get see osGetAgentIP tell you your IP Address");
}
touch_start(integer total_number)
{
key Agent = llDetectedKey(0);
llInstantMessage(Agent, "Your IP is: " + osGetAgentIP(Agent));
}
}