Difference between revisions of "Script Function: checkStatus"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> checkStatus() { <span style="color:#0000FF">if</span> (Engine Function:_isContainer|...") |
(No difference)
|
Latest revision as of 10:42, 21 October 2018
function void checkStatus() { if (isContainer(this)) { list Q4E4; getContents(Q4E4, this); while(numInList(Q4E4)) { list args; if (!hasScript(Q4E4[0x00], "vended")) { attachScript(Q4E4[0x00], "vended"); } message(Q4E4[0x00], "checkStatus", args); removeItem(Q4E4, 0x00); } } if (Q4SH() < 0x00) { if (!Q4Z0(this)) { setObjVar(this, "vendedPrice", getValue(this)); } } return (); }