Script Function: Q41L

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q41L(obj Q4P2, obj target)
 {
   if (isCounselor(target))
   {
     return (0x00);
   }
   int Q5NC = 0x00;
   loc Q4P3 = getLocation(Q4P2);
   int Q6A1 = getZ(Q4P3);
   loc Q5YV = getLocation(target);
   int Q6A3 = getZ(Q5YV);
   int Q4HE = 0x08;
   if (Q6A3 >= Q6A1)
   {
     int Q63Q = Q6A1 + Q4HE;
     if (Q6A3 <= Q63Q)
     {
       Q5NC = 0x01;
     }
   }
   return (Q5NC);
 }