Script Function: Q46K

From Ultima Online: The Second Age
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);
 }