Difference between revisions of "Script Function: Q4SD"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4SD() { <span style="color:#0000FF">return</span> (getObjVar|<span style="color:#...") |
|||
Line 2: | Line 2: | ||
{ | { | ||
<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">"color:#800000"</span>><span style="color:#800000">"owner"</span></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:#800000">"color:#800000"</span>><span style="color:#800000">"owner"</span></span>)); | ||
+ | } | ||
+ | |||
+ | <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:#800000">"color:#800000"</span>><span style="color:#800000">"vendedOwner"</span></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:#800000">"color:#800000"</span>><span style="color:#800000">"vendedOwner"</span></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:#800000">"color:#800000"</span>><span style="color:#800000">"owner"</span></span>)); | ||
} | } |
Revision as of 17:50, 7 October 2018
function obj Q4SD() { return (getObjVar(this, <span style="color:#800000">"owner"</span>)); }
function obj Q4SD() { if (hasObjVar(this, <span style="color:#800000">"vendedOwner"</span>)) { return (getObjVar(this, <span style="color:#800000">"vendedOwner"</span>)); } return (getObjVar(Q4TJ(), <span style="color:#800000">"owner"</span>)); }