Script Function: Q5K6

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