Difference between revisions of "Script Function: Q4T9"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4T9(<span style="color:#0000FF">int</span> Q5VX, <span style="color:#0000FF">int</span...")
 
 
Line 6: Line 6:
 
     {
 
     {
 
     <span style="color:#0000FF">case</span> 0x01
 
     <span style="color:#0000FF">case</span> 0x01
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"strup"</span></span>;
+
       Q5OK = <span style="color:#800000">"strup"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     <span style="color:#0000FF">case</span> 0x02
 
     <span style="color:#0000FF">case</span> 0x02
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"strdown"</span></span>;
+
       Q5OK = <span style="color:#800000">"strdown"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     <span style="color:#0000FF">case</span> 0x03
 
     <span style="color:#0000FF">case</span> 0x03
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"dexup"</span></span>;
+
       Q5OK = <span style="color:#800000">"dexup"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     <span style="color:#0000FF">case</span> 0x04
 
     <span style="color:#0000FF">case</span> 0x04
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"dexdown"</span></span>;
+
       Q5OK = <span style="color:#800000">"dexdown"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     <span style="color:#0000FF">case</span> 0x05
 
     <span style="color:#0000FF">case</span> 0x05
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"intup"</span></span>;
+
       Q5OK = <span style="color:#800000">"intup"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     <span style="color:#0000FF">case</span> 0x06
 
     <span style="color:#0000FF">case</span> 0x06
       Q5OK = <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"intdown"</span></span>;
+
       Q5OK = <span style="color:#800000">"intdown"</span>;
 
       <span style="color:#0000FF">break</span>;
 
       <span style="color:#0000FF">break</span>;
 
     }
 
     }
 
     <span style="color:#0000FF">return</span> (Q5OK);
 
     <span style="color:#0000FF">return</span> (Q5OK);
 
   }
 
   }

Latest revision as of 19:06, 12 October 2018

 function string Q4T9(int Q5VX, int Q463)
 {
   string Q5OK;
   int num = Q4SS(Q5VX, Q463);
   switch (num)
   {
   case 0x01
     Q5OK = "strup";
     break;
   case 0x02
     Q5OK = "strdown";
     break;
   case 0x03
     Q5OK = "dexup";
     break;
   case 0x04
     Q5OK = "dexdown";
     break;
   case 0x05
     Q5OK = "intup";
     break;
   case 0x06
     Q5OK = "intdown";
     break;
   }
   return (Q5OK);
 }