Difference between revisions of "Script Function: Q4RF"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RF() { <span style="color:#0000FF">string</span> Q60M; <span style="color:#...") |
(No difference)
|
Latest revision as of 03:28, 12 October 2018
function string Q4RF() { string Q60M; list myBoss; int Q4NR; if (!hasObjListVar(this, "myBoss")) { return ("myself"); } getObjListVar(myBoss, this, "myBoss"); Q4NR = numInList(myBoss); for(int i = 0x00; i < Q4NR; i++) { concat(Q60M, getName(myBoss[i])); if (i < (Q4NR - 0x02)) { concat(Q60M, ", "); } else { if (i == (Q4NR - 0x02)) { if (Q4NR == 0x02) { concat(Q60M, " and "); } else { concat(Q60M, " and "); } } } } return (Q60M); }