Script Function: Q4P7

From Ultima Online: The Second Age
Revision as of 16:29, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4P7(<span style="color:#0000FF">list</span> Q57R) { <span style="color:#0000FF">int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4P7(list Q57R)
 {
   int Q5T8 = numInList(Q57R);
   if (hasObjVar(this, "findScript"))
   {
     int Q5VU = Q5T8;
     Q5T8 = 0x00;
     string Q5OM = getObjVar(this, "findScript");
     for(int i = 0x00; i < Q5VU; i++)
     {
       obj Q57Q = Q57R[0x00];
       removeItem(Q57R, 0x00);
       if (hasScript(Q57Q, Q5OM))
       {
         Q5T8++;
         append(Q57R, Q57Q);
       }
     }
   }
   if (hasObjVar(this, "findTemplate"))
   {
     Q5VU = Q5T8;
     Q5T8 = 0x00;
     int Q5ZB = getObjVar(this, "findTemplate");
     for(i = 0x00; i < Q5VU; i++)
     {
       Q57Q = Q57R[0x00];
       removeItem(Q57R, 0x00);
       if (getTemplate(Q57Q) == Q5ZB)
       {
         Q5T8++;
         append(Q57R, Q57Q);
       }
     }
   }
   return (Q5T8);
 }