Script Function: Q5MB

From Ultima Online: The Second Age
Revision as of 21:33, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5MB() { <span style="color:#0000FF">obj</span> Q4E2 = containedBy|<span style="c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ();
 }