Script Function: Q46K

From Ultima Online: The Second Age
Revision as of 20:19, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q46K(<span style="color:#0000FF">loc</span> where, <span style="color:#0000FF">int</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q46K(loc where, int Q4VQ)
 {
   list Q5FJ;
   int Q57E = getZ(where);
   int Q56I = Q57E + Q4VQ;
   getObjectsAtInZRange(Q5FJ, where, Q57E, Q56I);
   int num = numInList(Q5FJ);
   obj it;
   for(int i = 0x00; i < num; i++)
   {
     it = Q5FJ[i];
     if (hasScript(it, "crtwall"))
     {
       return (0x01);
     }
   }
   return (0x00);
 }