Script Function: Q4S6
From Ultima Online: The Second Age
function string Q4S6(obj item) { int Q4Q1; int bar; string Q69U; int Q4DO; int Q52J; string Q5NE; Q4Q1 = getResource(Q4DO, item, "cloth", 0x03, 0x02); bar = getResource(Q52J, item, "leather", 0x03, 0x02); if (Q4DO > 0x00) { Q69U = Q4DO; if (Q4DO > 0x01) { Q5NE = Q69U + " yards of cloth"; } else { Q5NE = Q69U + " yard of cloth"; } return (Q5NE); } if (Q52J > 0x00) { Q69U = Q52J; if (Q52J > 0x01) { Q5NE = Q69U + " yards of leather"; } else { Q5NE = Q69U + " yard of leather"; } return (Q5NE); } Q5NE = "useless scraps"; Q4H8 = 0x01; return (Q5NE); }