Script Function: Q593

From Ultima Online: The Second Age
Revision as of 05:10, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q593(<span style="color:#0000FF">obj</span> house, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q593(obj house, obj Q5HY)
 {
   obj Q5AB = NULL();
   if (hasObjVar(house, "myhousedoor"))
   {
     Q5AB = getObjVar(house, "myhousedoor");
   }
   if (Q5AB == NULL())
   {
     if (hasObjListVar(house, "myhousedoors"))
     {
       list Q5Z5;
       getObjListVar(Q5Z5, house, "myhousedoors");
       if (numInList(Q5Z5) > 0x00)
       {
         Q5AB = Q5Z5[0x00];
       }
     }
   }
   if (Q5AB == NULL())
   {
     return (0x00);
   }
   obj Q5NC = mobileHasObjWithListObjOfObj(Q5HY, "whatIUnlock", Q5AB);
   if (Q5NC == NULL())
   {
     return (0x00);
   }
   return (0x01);
 }