Difference between revisions of "Script Function: Q46K"

From Ultima Online: The Second Age
Jump to: navigation, search
(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>...")
 
(No difference)

Latest revision as of 19:19, 10 October 2018

 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);
 }