Script Function: Q5SB

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q5SB(int Q5T4, int Q65M)
 {
   switch (Q5T4)
   {
   case 0x00
     switch (Q65M)
     {
     case 0x3ED4
       return (0x3EB2);
     case 0x3E84
       return (0x3E85);
     case 0x3ED5
       return (0x3EB1);
     case 0x3E89
       return (0x3E8A);
     case 0x3EB2
       return (0x3ED4);
     case 0x3E85
       return (0x3E84);
     case 0x3EB1
       return (0x3ED5);
     case 0x3E8A
       return (0x3E89);
     }
     break;
   case 0x01
     switch (Q65M)
     {
     case 0x3ED5
       return (0x3EB1);
     case 0x3E89
       return (0x3E8A);
     case 0x3ED4
       return (0x3EB2);
     case 0x3E84
       return (0x3E85);
     case 0x3EB1
       return (0x3ED5);
     case 0x3E8A
       return (0x3E89);
     case 0x3EB2
       return (0x3ED4);
     case 0x3E85
       return (0x3E84);
     }
     break;
   }
   return (Q65M);
 }