Script Function: Q4AK

From Ultima Online: The Second Age
Revision as of 21:32, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4AK() { Q453 = 0x00; <span style="color:#0000FF">if</span> (random|<span styl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4AK()
 {
   Q453 = 0x00;
   if (random(0x00, 0x01) == 0x01)
   {
     Q63S = Q4GK();
     Q453 = Q453 + 0x08;
   }
   else
   {
     if (Q559 < 0x06)
     {
       if (random(0x00, 0x01) == 0x00)
       {
         Q453 = Q453 + 0x08;
       }
     }
     Q63S = Q4OB();
   }
   Q453 = Q453 + random(Q63S, 0x07);
   Q5XJ = Q4BF(Q453);
   if (Q5XJ == 0x00)
   {
     return (Q453);
   }
   return (Q5XJ);
 }