Difference between revisions of "Script Function: Q4PM"

From Ultima Online: The Second Age
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4PM(<span style="color:#0000FF">obj</span> it)
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4PM(<span style="color:#0000FF">obj</span> it)
 
   {
 
   {
     <span style="color:#0000FF">if</span> ([[fixStats|<span style="color:#2B91AF">fixStats</span>]](it))
+
     <span style="color:#0000FF">if</span> ([[Script_Function:_fixStats|<span style="color:#2B91AF">fixStats</span>]](it))
 
     {
 
     {
 
       [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](it, <span style="color:#800000">"Stat(s) fixed"</span>);
 
       [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](it, <span style="color:#800000">"Stat(s) fixed"</span>);
 
       [[Script_Function:_Q5LY|<span style="color:#2B91AF">Q5LY</span>]](it);
 
       [[Script_Function:_Q5LY|<span style="color:#2B91AF">Q5LY</span>]](it);
 
     }
 
     }
     [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](it, <span style="color:#800000">"statfix"</span>);
+
     [[Engine Function:_detachScript|<span style="color:#FF0000;font-weight:bold">detachScript</span>]](it, <span style="color:#800000">"fixStats"</span>);
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 05:18, 24 October 2018

 function void Q4PM(obj it)
 {
   if (fixStats(it))
   {
     bark(it, "Stat(s) fixed");
     Q5LY(it);
   }
   detachScript(it, "fixStats");
   return ();
 }