Script Function: Q4Z3

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4Z3(loc place)
 {
   int Q63M;
   int Q52M;
   int Q5NS;
   int Q48W;
   Q63M = getElevation(place);
   loc Q52P = getX(place), getY(place) + 0x01, 0x00;
   Q52M = getElevation(Q52P);
   loc Q5NU = getX(place) + 0x01, getY(place), 0x00;
   Q5NS = getElevation(Q5NU);
   loc Q48X = getX(place) + 0x01, getY(place) + 0x01, 0x00;
   Q48W = getElevation(Q48X);
   if (Q63M != Q48W)
   {
     return (0x00);
   }
   if (Q63M != Q5NS)
   {
     return (0x00);
   }
   if (Q63M != Q52M)
   {
     return (0x00);
   }
   return (0x01);
 }