Script Function: Q4RZ

From Ultima Online: The Second Age
Jump to: navigation, search
 function obj Q4RZ(obj item)
 {
   obj Q4BA;
   obj Q5KE = item;
   int first = 0x01;
   while((first == 0x01) || (isContainer(Q5KE)))
   {
     first = 0x00;
     Q4BA = containedBy(Q5KE);
     if (Q4BA == NULL())
     {
       return (NULL());
     }
     if (isPlayer(Q4BA))
     {
       return (Q4BA);
     }
     if (isNPC(Q4BA))
     {
       return (Q4BA);
     }
     Q5KE = Q4BA;
   }
   return (NULL());
 }