Script Function: Q4TJ

From Ultima Online: The Second Age
Revision as of 20:07, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4TJ() { <span style="color:#0000FF">obj</span> Q63O = getTopmostContainer|<span s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function obj Q4TJ()
 {
   obj Q63O = getTopmostContainer(this);
   if (Q63O == NULL())
   {
     return (NULL());
   }
   if (!hasScript(Q63O, <span style="color:#800000">"vendor"</span>))
   {
     return (NULL());
   }
   return (Q63O);
 }
//// http://wiki.uot2a.com/index.php?action=edit&title=cleanup
 function void cleanup()
 {
   if (isContainer(this))
   {
     list Q4E4;
     getContents(Q4E4, this);
     while(numInList(Q4E4))
     {
       list args;
       message(Q4E4[0x00], <span style="color:#800000">"cleanup"</span>, args);
       removeItem(Q4E4, 0x00);
     }
   }
   removeObjVar(this, <span style="color:#800000">"vendedOwner"</span>);
   removeObjVar(this, <span style="color:#800000">"vendedPrice"</span>);
   removeObjVar(this, <span style="color:#800000">"description"</span>);
   detachScript(this, <span style="color:#800000">"vended"</span>);
   return ();
 }