Script Function: Q557

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q557(string Q4Y5, list Q4YF)
 {
   int count;
   int Q5EJ = numInList(Q4YF);
   for(count = 0x00; count < Q5EJ; count++)
   {
     string Q5ZE = Q4YF[count];
     if (count == (Q5EJ - 0x01))
     {
       Q4Y5 = Q4Y5 + Q5ZE;
     }
     if (count == (Q5EJ - 0x02))
     {
       Q4Y5 = Q4Y5 + Q5ZE + " and ";
     }
     if (count < (Q5EJ - 0x02))
     {
       Q4Y5 = Q4Y5 + Q5ZE + ", ";
     }
   }
   return ();
 }