Script Function: Q4DH

From Ultima Online: The Second Age
Revision as of 17:26, 12 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4DH(int Q68Q)
 {
   if (Q68Q == 0x00)
   {
     if (0x00 < numInList(Q67L))
     {
       for(int Q629 = 0x00; Q629 < numInList(Q67L); Q629++)
       {
         int Q61S = getObjType(Q67L[Q629]);
         if (Q61S == 0x0335)
         {
           removeItem(Q67L, Q629);
           removeItem(Q67K, Q629);
         }
       }
     }
   }
   else
   {
     if (0x00 < numInList(Q5CD))
     {
       for(Q629 = 0x00; Q629 < numInList(Q5CD); Q629++)
       {
         Q61S = getObjType(Q5CD[Q629]);
         if (Q61S == 0x0335)
         {
           removeItem(Q5CD, Q629);
           removeItem(Q5CC, Q629);
         }
       }
     }
   }
   return ();
 }
 function void Q4DH(int Q68Q)
 {
   if (Q68Q == 0x00)
   {
     if (0x00 < numInList(Q67L))
     {
       for(int Q629 = 0x00; Q629 < numInList(Q67L); Q629++)
       {
         int Q61S = getObjType(Q67L[Q629]);
         if (isValid(Q67L[Q629]))
         {
           if (Q61S == 0x0336)
           {
             removeItem(Q67L, Q629);
             removeItem(Q67K, Q629);
           }
         }
       }
     }
   }
   else
   {
     if (0x00 < numInList(Q5CD))
     {
       for(Q629 = 0x00; Q629 < numInList(Q5CD); Q629++)
       {
         if (!isValid(Q67L[Q629]))
         {
           Q61S = getObjType(Q5CD[Q629]);
           if (Q61S == 0x0336)
           {
             removeItem(Q5CD, Q629);
             removeItem(Q5CC, Q629);
           }
         }
       }
     }
   }
   return ();
 }