Jump to content

Efficient way to execute llDie() If parcel owner is changed or purchased?


IZHRAH
 Share

You are about to reply to a thread that has been inactive for 3419 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

  • 4 weeks later...

Very simple script with an adjustable timer for you that should work  :)

 

float interval = 5.0; // Interval to check if the parcel has changed owner.key defOwner; // Default Owner (Parcel owner when rezzed).key curOwner; // Current Owner (Parcel owner when checked).default{    on_rez(integer r)    {        llResetScript();    }        state_entry()    {        list Details = llGetParcelDetails(llGetPos(),[PARCEL_DETAILS_OWNER]);        defOwner = llList2String(Details ,0);        llSetTimerEvent(interval);    }    timer()    {        list Details = llGetParcelDetails(llGetPos(),[PARCEL_DETAILS_OWNER]);        curOwner = llList2String(Details ,0);        if (curOwner != defOwner)        {            llDie();        }    }}

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3419 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...