Script Function: Q50P

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q50P(loc place)
 {
   int x = getX(place);
   int y = getY(place);
   int Q6A0 = getZ(place);
   if (x < 0x00)
   {
     return (0x00);
   }
   if (x > 0x0BB8)
   {
     return (0x00);
   }
   if (y < 0x00)
   {
     return (0x00);
   }
   if (y > 0x0BB8)
   {
     return (0x00);
   }
   if (Q6A0 > 0x7F)
   {
     return (0x00);
   }
   if (Q6A0 < (0x00 - 0x7F))
   {
     return (0x00);
   }
   return (0x01);
 }