Difference between revisions of "Script Function: Q4S5"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4S5(<span style="color:#0000FF">obj</span> item, <span style="color:#0000FF">int</span...") |
|||
Line 69: | Line 69: | ||
<span style="color:#0000FF">if</span> (Q5KY == 0x01) | <span style="color:#0000FF">if</span> (Q5KY == 0x01) | ||
{ | { | ||
− | Q5NF = <span style="color:#800000">"piles of | + | Q5NF = <span style="color:#800000">"piles of hides"</span>; |
} | } | ||
<span style="color:#0000FF">else</span> | <span style="color:#0000FF">else</span> | ||
{ | { | ||
− | Q5NF = <span style="color:#800000">"a pile of | + | Q5NF = <span style="color:#800000">"a pile of hides"</span>; |
} | } | ||
<span style="color:#0000FF">break</span>; | <span style="color:#0000FF">break</span>; |
Latest revision as of 16:44, 19 October 2018
function string Q4S5(obj item, int Q5KY) { string Q5NF; int Q513 = getObjType(item); switch (Q513) { case 0x0F95 case 0x0F96 case 0x0F97 case 0x0F98 case 0x0F99 case 0x0F9A case 0x0F9B case 0x0F9C if (Q5KY == 0x01) { Q5NF = "bolts of cloth"; } else { Q5NF = "a bolt of cloth"; } break; case 0x175D case 0x175E case 0x175F case 0x1760 case 0x1761 case 0x1762 case 0x1763 case 0x1764 if (Q5KY == 0x01) { Q5NF = "piles of folded cloth"; } else { Q5NF = "a pile of folded cloth"; } break; case 0x1765 case 0x1766 case 0x1767 case 0x1768 if (Q5KY == 0x01) { Q5NF = "pieces of cloth"; } else { Q5NF = "a piece of cloth"; } break; case 0x1067 case 0x1068 case 0x1081 case 0x1082 if (Q5KY == 0x01) { Q5NF = "pieces of leather"; } else { Q5NF = "a piece of leather"; } break; case 0x1078 case 0x1079 if (Q5KY == 0x01) { Q5NF = "piles of hides"; } else { Q5NF = "a pile of hides"; } break; } return (Q5NF); }