Script Function: Q4T3

From Ultima Online: The Second Age
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);
 }