Difference between revisions of "Script Function: Q4TJ"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
 
Line 11: Line 11:
 
     }
 
     }
 
     <span style="color:#0000FF">return</span> (Q63O);
 
     <span style="color:#0000FF">return</span> (Q63O);
  }
 
//// http://wiki.uot2a.com/index.php?action=edit&title=cleanup
 
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> cleanup()
 
  {
 
    <span style="color:#0000FF">if</span> ([[Engine Function:_isContainer|<span style="color:#FF0000;font-weight:bold">isContainer</span>]](this))
 
    {
 
      <span style="color:#0000FF">list</span> Q4E4;
 
      [[Engine Function:_getContents|<span style="color:#FF0000;font-weight:bold">getContents</span>]](Q4E4, this);
 
      while([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q4E4))
 
      {
 
        <span style="color:#0000FF">list</span> args;
 
        [[Engine Function:_message|<span style="color:#FF0000;font-weight:bold">message</span>]](Q4E4[0x00], <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"cleanup"</span></span>, args);
 
        [[Engine Function:_removeItem|<span style="color:#FF0000;font-weight:bold">removeItem</span>]](Q4E4, 0x00);
 
      }
 
    }
 
    [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"vendedOwner"</span></span>);
 
    [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"vendedPrice"</span></span>);
 
    [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"description"</span></span>);
 
    [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"vended"</span></span>);
 
    <span style="color:#0000FF">return</span> ();
 
 
   }
 
   }

Revision as of 19:09, 12 October 2018

 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);
 }