Script Function: Q5MB

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q5MB()
 {
   obj Q4E2 = containedBy(this);
   if (Q4E2 == NULL())
   {
     return ();
   }
   if (hasObjVar(Q4E2, "transmitList"))
   {
     list transmitList;
     clearList(transmitList);
     getObjListVar(transmitList, Q4E2, "transmitList");
     removeSpecificItem(transmitList, this);
     if (numInList(transmitList) == 0x00)
     {
       removeObjVar(Q4E2, "transmitList");
       list Q5DP;
       message(Q4E2, "removefromparent", Q5DP);
       detachScript(Q4E2, "speechrelay");
     }
     else
     {
       setObjVar(Q4E2, "transmitList", transmitList);
     }
   }
   return ();
 }