Difference between revisions of "Script Function: Q4UX"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4UX(<span style="color:#0000FF">int</span> Q52T) { debugMessage(<span style="color:...") |
|||
Line 7: | Line 7: | ||
} | } | ||
[[Script_Function:_Q5N6|<span style="color:#2B91AF">Q5N6</span>]](); | [[Script_Function:_Q5N6|<span style="color:#2B91AF">Q5N6</span>]](); | ||
+ | <span style="color:#0000FF">return</span> (0x01); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4UX(<span style="color:#0000FF">int</span> Q52T) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (Q52T < 0x02) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x01); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_hasScript|<span style="color:#FF0000;font-weight:bold">hasScript</span>]](this, <span style="color:#800000">"stables"</span>)) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x01); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isShopkeeper|<span style="color:#FF0000;font-weight:bold">isShopkeeper</span>]](this)) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
<span style="color:#0000FF">return</span> (0x01); | <span style="color:#0000FF">return</span> (0x01); | ||
} | } |
Latest revision as of 14:46, 12 October 2018
function int Q4UX(int Q52T) { debugMessage("Armageddon! (Stables)"); if (Q52T < 0x02) { return (0x01); } Q5N6(); return (0x01); }
function int Q4UX(int Q52T) { if (Q52T < 0x02) { return (0x01); } if (hasScript(this, "stables")) { return (0x01); } if (isShopkeeper(this)) { return (0x00); } return (0x01); }