Difference between revisions of "Script Function: Q4SH"

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> Q4SH() { <span style="color:#0000FF">if</span> (!hasObjVar|<span style="color:#FF0...")
 
 
Line 1: Line 1:
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4SH()
 
   <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4SH()
 
   {
 
   {
     <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">"vendedPrice"</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">"vendedPrice"</span>))
 
     {
 
     {
 
       <span style="color:#0000FF">return</span> (0x00 - 0x01);
 
       <span style="color:#0000FF">return</span> (0x00 - 0x01);
 
     }
 
     }
     <span style="color:#0000FF">return</span> ([[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">"vendedPrice"</span></span>));
+
     <span style="color:#0000FF">return</span> ([[Engine Function:_getObjVar|<span style="color:#FF0000;font-weight:bold">getObjVar</span>]](this, <span style="color:#800000">"vendedPrice"</span>));
 
   }
 
   }

Latest revision as of 02:17, 8 October 2018

 function int Q4SH()
 {
   if (!hasObjVar(this, "vendedPrice"))
   {
     return (0x00 - 0x01);
   }
   return (getObjVar(this, "vendedPrice"));
 }