Script Function: Q4S5

From Ultima Online: The Second Age
Jump to: navigation, search
 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);
 }