Difference between revisions of "Script Function: Q662"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q662(<span style="color:#0000FF">obj</span> Q61K, <span style="color:#0000FF">int</span>...") |
|||
Line 7: | Line 7: | ||
<span style="color:#0000FF">if</span> (Q5MG) | <span style="color:#0000FF">if</span> (Q5MG) | ||
{ | { | ||
− | <span style="color:#0000FF">if</span> ([[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](Q61K, <span style="color:#800000">" | + | <span style="color:#0000FF">if</span> ([[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](Q61K, <span style="color:#800000">"hidesk"</span>)) |
{ | { | ||
− | [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](Q61K, <span style="color:#800000">" | + | [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](Q61K, <span style="color:#800000">"hidesk"</span>); |
} | } | ||
} | } | ||
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 02:33, 19 October 2018
function void Q662(obj Q61K, int Q5MG) { if (isInvisible(Q61K)) { setInvisible(Q61K, 0x00); } if (Q5MG) { if (hasScript(Q61K, "hidesk")) { detachScript(Q61K, "hidesk"); } } return (); }