Difference between revisions of "Script Function: Q4TJ"

From Ultima Online: The Second Age
Jump to: navigation, search
 
Line 6: Line 6:
 
       <span style="color:#0000FF">return</span> ([[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]());
 
       <span style="color:#0000FF">return</span> ([[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]());
 
     }
 
     }
     <span style="color:#0000FF">if</span> (![[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](Q63O, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"vendor"</span></span>))
+
     <span style="color:#0000FF">if</span> (![[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](Q63O, <span style="color:#800000">"vendor"</span>))
 
     {
 
     {
 
       <span style="color:#0000FF">return</span> ([[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]());
 
       <span style="color:#0000FF">return</span> ([[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]());

Latest revision as of 20:10, 12 October 2018

 function obj Q4TJ()
 {
   obj Q63O = getTopmostContainer(this);
   if (Q63O == NULL())
   {
     return (NULL());
   }
   if (!hasScript(Q63O, "vendor"))
   {
     return (NULL());
   }
   return (Q63O);
 }