Script Function: Q4RF

From Ultima Online: The Second Age
Revision as of 03:28, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4RF() { <span style="color:#0000FF">string</span> Q60M; <span style="color:#...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }