Script Function: Q4AN

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