(Note: This is a repeat of an older post from the old forums that got deleted).
If you wish to get an InWorld Notecard with the Script already made, just send me a PM or notecard requesting it. Name is the same as listed on the left.
Ok.. what this does is simply give you an example of how you can add your own button to Huddles EZDeluxe (other models may or may not work) which when clicked will generate an SLURL for your current position.
The SLURL feature requires two things.
1) A script
2) An entry in an existing notecard (or a new one if you prefer).
3) Optional - SLURL may also be invoked by command line slash if you wish.
Steps:
1) Create a new Script with the following code:
//SLURL maker for channel 125
//To Activate type /125 SLURL
//By Atriel Starbrook
//Version History
//1.0 First version
//1.1 Modified listener start and added removal upon Detach
key owner;
integer SLURLChannel;
string VersionNumber = "1.1";
integer ChannelNumber = 125;
string escape(string msg)
{
return llDumpList2String(llParseString2List(msg, [" "], []), "%20"

}
default
{
state_entry()
{
//Set the owner variable to the current owner ID
owner = llGetOwner();
llInstantMessage(owner,"Resetting SLURL scripts. This may Take a moment."

llListenRemove( SLURLChannel ); //Removes any previous listeners on this channel
SLURLChannel = llListen(ChannelNumber,"",owner,""

llInstantMessage(owner,"SLURL: Version " + VersionNumber + " Ready"

}
attach(key attached)
{
//Resetting Script each time it's attached to make sure that owners are all purged
if (attached != NULL_KEY)
{
llResetScript();
}
else if (attached == NULL_KEY) // object has been detached
{
llListenRemove( SLURLChannel ); //Removes listener so we don't need to keep it running
}
}
//This will allow the script to listen to link messages with the word SLURL to trigger
link_message(integer sender_num, integer num, string str, key id)
{
if (str == "SLURL"

{
vector pos = llGetPos();
//llInstantMessage(owner,"------------------ Here is your SLURL -------------------" );
llInstantMessage(owner,"SLURL==>> http://slurl.com/secondlife/" + escape(llGetRegionName()) + "/" + (string)llRound(pos.x) + "/" + (string)llRound(pos.y) + "/" + (string)llRound(pos.z) + "/"

//llInstantMessage(owner,"----------Copy/Paste above to send to other chats -------" );
}
}
//Listen for actual chat info from the owner on the current channel.
//Listens for the command SLURL, ex: /125 SLURL
listen(integer c, string name, key id, string msg)
{
if ( llGetOwnerKey(id) == owner ) //Ensures we only listen to the owner
{
if (msg == "SLURL"

{
vector pos = llGetPos();
//llInstantMessage(owner,"------------------ Here is your SLURL -------------------" );
llInstantMessage(owner,"SLURL==>> http://slurl.com/secondlife/" + escape(llGetRegionName()) + "/" + (string)llRound(pos.x) + "/" + (string)llRound(pos.y) + "/" + (string)llRound(pos.z) + "/"

//llInstantMessage(owner,"----------Copy/Paste above to send to other chats -------" );
} // Close if (msg == "SLURL"

} // Close if ( llGetOwnerKey(id) == owner )
} //Close Listen Event
}
You may rename the button by changing the words "SLURL MAKER" with whatever you choose.
Step 3:
Rez your Huddles on the ground in a safe area (Sand boxes work well).
Step 4:
Drop in the Notecard and the Script into your Huddles.
Step 5:
Wait for the Huddles to finish uploading your 2 new objects
IMPORTANT! - Wait for the Huddles to upload both the script and notecard before you pick it up.
The method I use is to Right click on anything in the huddles, and if you see a popup more than 4 items long (ie if it shows about 3 dozen options) then the HUD is still uploading/downloading the information. You can leave the Superlong popup showing and as soon as the HUD is finished it will automatcially disappear.
When the HUD is finished there should only be 4 options: Open, Properties, Delete and Rename (some items won't have a rename).
Step 6:
Pick up your Hud and wear it as normal.
Step 7:
Press the Load Notecard Button and select either your Modified Notecard containing the line in step 2, or the sample notecard provided.
Step 8:
Press your new MAKE SLURL button and it will create the SLURL of your location in your chat window.
You can then Copy/Paste it to any other chat or IM that you wish.
Enjoy!
Atriel Starbrook
PS- You can also manually make the SLURL at anytime by typing in
"/125 SLURL" (in all caps)
to force it to create one regardless of which notecard is loaded.
Speical Notes:
1) This script will automatically remove it's listener when you remove the Huddles.
2) You can place the script into ANY object that you own, and use the command line to call it.
3) You may change the channel it listens for by changing the line that says: integer ChannelNumber = 125; to some other number instead of 125 if you wish. (No need unless you have other items which work off that channel and interfere).