Changes

Jump to navigation Jump to search
<br>
 
* Create a prim in world
* Add a new script to the prim
* Make a new notecard called Location and add it to the prims contents
* Adjust the notecard to your requirements
* Edit the two lists in the User Variables to change the fixed and dynamic button names
<br>
 
=== Script On Github ===
[https://github.com/Fire-And-Ice-Grid/LSL-And-OSSL-Script-Library LSL And OSSL Script Library On GitHub]
==== Licence ====
string regionName = "";
string destination = "";
integer debug = TRUEFALSE;
integer mainMenuChannel;
integer mainMenuChannelListen;
ProcessInstructionLine(string instruction, string data)
{
if (debug)
{
llOwnerSay("Debug:ProcessInstruction: Instruction:" + instruction + " Data:" + data);
}
if (instruction == "landing")
{
string SetLocationName()
{
if (debug) llOwnerSay("Debug:SetLocationName:Entered");
string locationName = "";
if (name == "")
{
if (debug) llOwnerSay("Debug:SetLocationName:Empty Name string found");
if (regionName == "")
{
if (debug) llOwnerSay("Debug:SetLocationName:Empty Region Name found, location name set to the region name");
locationName += llGetRegionName();
}
else
{
if (debug) llOwnerSay("Debug:SetLocationName:location name set to the region name");
locationName += regionName;
}
}
}
else
{
locationName = name;
}
if (debug) llOwnerSay("Debug:SetLocationName:LocationName: " + locationName);
return locationName;
}
llResetScript();
}
 
changed(integer change) // something changed, take action
{
if(change & (CHANGED_OWNER | CHANGED_REGION_RESTART | CHANGED_INVENTORY))
{
llResetScript();
SetUpListeners();
ReadConfigCards("TpLocation");
UpdateImage();
llSetObjectName(SetLocationName() + " Teleport Board");
}

Navigation menu