Difference between revisions of "Script Function: Q4SD"
From Ultima Online: The Second Age
Line 1: | Line 1: | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4SD() | <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4SD() | ||
{ | { | ||
− | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, | + | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"owner"</span>)); |
} | } | ||
<span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4SD() | <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4SD() | ||
{ | { | ||
− | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, | + | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"vendedOwner"</span>)) |
{ | { | ||
− | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, | + | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"vendedOwner"</span>)); |
} | } | ||
− | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]]([[Script_Function:_Q4TJ|<span style="color:#2B91AF">Q4TJ</span>]](), | + | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]]([[Script_Function:_Q4TJ|<span style="color:#2B91AF">Q4TJ</span>]](), <span style="color:#800000">"owner"</span>)); |
} | } |
Latest revision as of 01:15, 8 October 2018
function obj Q4SD() { return (getObjVar(this, "owner")); }
function obj Q4SD() { if (hasObjVar(this, "vendedOwner")) { return (getObjVar(this, "vendedOwner")); } return (getObjVar(Q4TJ(), "owner")); }