Script Function: Q5MA

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q5MA(list Q5AG)
 {
   int Q4NB = 0x00;
   list Q4EB;
   copyList(Q4EB, Q5AG);
   clearList(Q5AG);
   obj it;
   int num = numInList(Q4EB);
   for(int i = 0x00; i < num; i++)
   {
     it = Q4EB[i];
     if (isInList(Q5AG, it))
     {
       Q4NB++;
     }
     else
     {
       appendToList(Q5AG, it);
     }
   }
   return (Q4NB);
 }