Script Function: Q4RF

From Ultima Online: The Second Age
Jump to: navigation, search
 function string Q4RF()
 {
   string Q60M;
   list myBoss;
   int Q4NR;
   if (!hasObjListVar(this, "myBoss"))
   {
     return ("myself");
   }
   getObjListVar(myBoss, this, "myBoss");
   Q4NR = numInList(myBoss);
   for(int i = 0x00; i < Q4NR; i++)
   {
     concat(Q60M, getName(myBoss[i]));
     if (i < (Q4NR - 0x02))
     {
       concat(Q60M, ", ");
     }
     else
     {
       if (i == (Q4NR - 0x02))
       {
         if (Q4NR == 0x02)
         {
           concat(Q60M, " and ");
         }
         else
         {
           concat(Q60M, " and ");
         }
       }
     }
   }
   return (Q60M);
 }