Changes

Jump to navigation Jump to search
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