Script Function: Q4YP

From Ultima Online: The Second Age
Revision as of 03:59, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">obj</span> Q4YP(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">loc</span> w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function obj Q4YP(obj user, loc where)
 {
   list Q4ND;
   getObjectsInRange(Q4ND, where, 0x02);
   int num = numInList(Q4ND);
   for(int i = 0x00; i < num; i++)
   {
     obj it = Q4ND[i];
     if (isMultiComp(it))
     {
       obj multi = getMultiSlaveId(it);
       if (Q58P(multi) == 0x00)
       {
         if (Q4X6(multi, user))
         {
           return (multi);
         }
       }
     }
   }
   return (NULL());
 }