Script Function: Q4AL

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4AL()
 {
   Q453 = 0x13;
   if (Q559 < 0x04)
   {
     Q453 = 0x0F;
   }
   else
   {
     Q63S = Q4TY();
     Q453 = Q453 + random(Q63S, 0x04);
   }
   if (Q4AP < 0x02)
   {
     return (0x00 - 0x13);
   }
   Q5XJ = Q4BF(Q453);
   if (Q5XJ == 0x00)
   {
     return (Q453);
   }
   return (Q5XJ);
 }