Difference between revisions of "Script Function: Q4TJ"
From Ultima Online: The Second Age
(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...") |
|||
(One intermediate revision by the same user not shown) | |||
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="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>]]()); | ||
} | } | ||
<span style="color:#0000FF">return</span> (Q63O); | <span style="color:#0000FF">return</span> (Q63O); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } |
Latest revision as of 19:10, 12 October 2018
function obj Q4TJ() { obj Q63O = getTopmostContainer(this); if (Q63O == NULL()) { return (NULL()); } if (!hasScript(Q63O, "vendor")) { return (NULL()); } return (Q63O); }