Script Function: Q4ZP

From Ultima Online: The Second Age
Revision as of 03:34, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4ZP(<span style="color:#0000FF">obj</span> gate, <span style="color:#0000FF">obj</span> i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4ZP(obj gate, obj it)
 {
   if (!Q5FU)
   {
     return (0x00);
   }
   if (getDistanceInTiles(getLocation(gate), getLocation(it)) > 0x01)
   {
     return (0x00);
   }
   int Q5YU = getZ(getLocation(it));
   int Q5AW = getZ(getLocation(gate));
   int Q5AD = getHeight(gate);
   int Q5AT = Q5AW + Q5AD;
   if ((Q5YU < Q5AW) || (Q5YU > Q5AT))
   {
     return (0x00);
   }
   return (0x01);
 }