Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

script to notify you when your land sells

Angel Fluffy
Very Helpful
Join date: 3 Mar 2006
Posts: 810
08-05-2006 12:47
In reponse to Diamondback Deckard's question in SL answers about land management tools, I created this script :

CODE

integer ctime = 10;

default
{
state_entry()
{
llSay(0, "Online. Will check every "+(string)ctime+" seconds. If land owner is NOT the same as object owner, will message object owner with location and 'your land sold' message, and self delete.");
llSetTimerEvent((float)ctime);
}

timer() {
if (llGetLandOwnerAt(llGetPos()) == llGetOwner()) {
// object owner matches land owner
} else {
// object owner does NOT match land owner!
llInstantMessage(llGetOwner(),"Your land at "+(string)llGetRegionName()+":"+(string)llGetPos()+" has been sold. The new buyer may be : "+llKey2Name(llGetLandOwnerAt(llGetPos()))+" (if this fails, a group now has it).");
llDie();
}

}
}



It's very simple : it simply sends you an IM when your land is sold to someone else, then deletes itself. I've NOT tested it AT ALL, so I make no assurances AT ALL that it will work. It's intended to be more of an idea than anything else - if it works, consider that a bonus :)
_____________________
Volunteer Portal (FAQs!) : https://wiki.secondlife.com/wiki/Volunteer_Portal

JIRA / Issue Tracker : http://jira.secondlife.com (& http://tinyurl.com/2jropp)
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
08-05-2006 20:19
/54/11/127423/1.html
_____________________
i've got nothing. ;)