Script Function: Q50P

From Ultima Online: The Second Age
Revision as of 18:24, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q50P(<span style="color:#0000FF">loc</span> place) { <span style="color:#0000FF">int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }