Script Function: Q42G

From Ultima Online: The Second Age
Jump to: navigation, search
 function obj Q42G(obj Q47Z)
 {
   list Q4E4;
   getContents(Q4E4, Q47Z);
   int Q55T = numInList(Q4E4);
   for(int i = 0x00; i < Q55T; i++)
   {
     obj item = Q4E4[i];
     if (getObjType(item) == 0x0EB0)
     {
       if (hasObjVar(item, "isPkMsg"))
       {
         return (item);
       }
     }
   }
   return (NULL());
 }