// Reset zpup frame when nobody is sitting

integer FRAME = 1 ; // reset to this frame



integer GetNumberOfAgents(){
   integer a = llGetNumberOfPrims();
   integer b = a;
   if(1 < a)
      while(llGetAgentSize(llGetLinkKey(a)))
      --a;
   return b - a;
}

default {
   changed(integer change) {
      if(change & CHANGED_LINK)
         if (!GetNumberOfAgents()) llMessageLinked(LINK_ROOT, FRAME, "show", "" );
   }
}