Difference between revisions of "Script Function: Q4SD"
From Ultima Online: The Second Age
Line 6: | Line 6: | ||
<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= | + | <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style=<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= | + | <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style=<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= | + | <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=<span style="color:#800000">"owner"</span>)); |
} | } |
Revision as of 17:55, 7 October 2018
function obj Q4SD() { return (getObjVar(this, <span style="color:#800000">"owner"</span>)); }
function obj Q4SD() { if (hasObjVar(this, <span style="vendedOwner")) { return (getObjVar(this, <span style="vendedOwner")); } return (getObjVar(Q4TJ(), <span style="owner")); }