//YEngine: yoptions; constant __DEBUG__ = TRUE; constant SCRIPT_PIN = 72743825; constant updateChan = -4744320; integer lhandle; debug( string text ){ if( __DEBUG__ ){ llOwnerSay( text ); } } endListen(){ if( lhandle != 0 ){ llListenRemove( lhandle ); lhandle = 0; } llSetTimerEvent(0.0); } default { state_entry() { llSetText("Receiver",<1,0.685,0>,1.0); llSetRemoteScriptAccessPin(SCRIPT_PIN); debug("Access pin set"); } touch_start(integer num){ if( llDetectedKey(0) == llGetOwner() ){ lhandle = llListen( updateChan, "", "", "" ); llSetTimerEvent(60.0); debug("Waiting for updater"); } } timer(){ endListen(); } listen(integer channel, string name, key id, string msg){ if( llGetOwnerKey( id ) == llGetOwner() ){ if( msg == "UPDATE-PING" ){ debug("Updater identified, sending READY"); endListen(); llRegionSayTo( id, updateChan, "UPDATE-PONG" ); } } } }