Script Function: Q4T3

From Ultima Online: The Second Age
Revision as of 19:02, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4T3(<span style="color:#0000FF">int</span> num) { <span style="color:#0000FF">if</s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4T3(int num)
 {
   if ((num < 0x00) || (num > 0x3F))
   {
     return (0x00 - 0x01);
   }
   int Q5NC;
   if (num == 0x06)
   {
     Q5NC = 0x1F2D;
   }
   else
   {
     if ((num >= 0x00) && (num <= 0x05))
     {
       Q5NC = 0x1F2E + num;
     }
     else
     {
       Q5NC = 0x1F34 + num - 0x07;
     }
   }
   return (Q5NC);
 }