Script Function: Q4SS

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4SS(int Q5VX, int Q463)
 {
   int num = 0x00;
   switch (Q5VX)
   {
   case 0x00
     if (Q463 > 0x00)
     {
       num = 0x01;
     }
     else
     {
       num = 0x02;
     }
     break;
   case 0x01
     if (Q463 > 0x00)
     {
       num = 0x03;
     }
     else
     {
       num = 0x04;
     }
     break;
   case 0x02
     if (Q463 > 0x00)
     {
       num = 0x05;
     }
     else
     {
       num = 0x06;
     }
     break;
   }
   return (num);
 }