Difference between revisions of "Script Function: Q4SP"

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> Q4SP() { <span style="color:#0000FF">int</span> Q5MH = Q4TH|<span style="color:#2B...")
 
 
Line 2: Line 2:
 
   {
 
   {
 
     <span style="color:#0000FF">int</span> Q5MH = [[Script_Function:_Q4TH|<span style="color:#2B91AF">Q4TH</span>]]([[Engine Function:_getBackpack|<span style="color:#FF0000;font-weight:bold">getBackpack</span>]](this)) / 0x01F4 + 0x14;
 
     <span style="color:#0000FF">int</span> Q5MH = [[Script_Function:_Q4TH|<span style="color:#2B91AF">Q4TH</span>]]([[Engine Function:_getBackpack|<span style="color:#FF0000;font-weight:bold">getBackpack</span>]](this)) / 0x01F4 + 0x14;
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"ownerMurderCount"</span></span>))
+
     <span style="color:#0000FF">if</span> ([[Engine Function:_hasObjVar|<span style="color:#FF0000;font-weight:bold">hasObjVar</span>]](this, <span style="color:#800000">"ownerMurderCount"</span>))
 
     {
 
     {
       Q5MH = Q5MH * [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style=<span style="color:#800000">"color:#800000"</span>><span style="color:#800000">"ownerMurderCount"</span></span>);
+
       Q5MH = Q5MH * [[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"ownerMurderCount"</span>);
 
     }
 
     }
 
     <span style="color:#0000FF">return</span> (Q5MH);
 
     <span style="color:#0000FF">return</span> (Q5MH);
 
   }
 
   }

Latest revision as of 01:18, 8 October 2018

 function int Q4SP()
 {
   int Q5MH = Q4TH(getBackpack(this)) / 0x01F4 + 0x14;
   if (hasObjVar(this, "ownerMurderCount"))
   {
     Q5MH = Q5MH * getObjVar(this, "ownerMurderCount");
   }
   return (Q5MH);
 }