Script Function: Q42G

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