Difference between revisions of "Script Function: Q5SB"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q5SB(<span style="color:#0000FF">int</span> Q5T4, <span style="color:#0000FF">int</span> Q...")
 
(No difference)

Latest revision as of 22:01, 11 October 2018

 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);
 }