Script Function: Q4S6

From Ultima Online: The Second Age
Revision as of 05:17, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4S6(<span style="color:#0000FF">obj</span> item) { <span style="color:#0000FF">i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 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);
 }