Script Function: Q4ZP

From Ultima Online: The Second Age
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);
 }