Difference between revisions of "Script Function: Q5ML"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q5ML(<span style="color:#0000FF">obj</span> Q68S) { <span style="color:#0000FF">int<...") |
(No difference)
|
Latest revision as of 04:23, 10 October 2018
function int Q5ML(obj Q68S) { int Q5W5; int Q5LU; int Q5W0; int Q5NC; int Q5NG = 0x00; for(int i = 0x00; i < 0x03; i++) { Q5W5 = getStatMod(Q68S, i); if (Q5W5 != 0x00) { Q5NC = setStatMod(Q68S, i, 0x00); Q5NG = 0x01; } Q5LU = getRealStat(Q68S, i); Q5W0 = getStatAttributeMax(Q68S, i); if (Q5LU != Q5W0) { Q5NC = setStatAttributeMax(Q68S, i, Q5LU); Q5NG = 0x01; } } return (Q5NG); }