Difference between revisions of "Script Function: Q4ST"

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> Q4ST(<span style="color:#0000FF">obj</span> Q4H5) { <span style="color:#0000FF">if</...")
 
 
Line 5: Line 5:
 
       <span style="color:#0000FF">return</span> (0x00 - 0x01);
 
       <span style="color:#0000FF">return</span> (0x00 - 0x01);
 
     }
 
     }
     <span style="color:#0000FF">return</span> ([[getobjvar_int|<span style="color:#FF0000;font-weight:bold">getobjvar_int</span>]](Q4H5, <span style="color:#800000">"myshiptype"</span>));
+
     <span style="color:#0000FF">return</span> ([[Engine_Function:_getobjvar_int|<span style="color:#FF0000;font-weight:bold">getobjvar_int</span>]](Q4H5, <span style="color:#800000">"myshiptype"</span>));
 
   }
 
   }

Latest revision as of 03:45, 21 October 2018

 function int Q4ST(obj Q4H5)
 {
   if (!hasObjVar(Q4H5, "myshiptype"))
   {
     return (0x00 - 0x01);
   }
   return (getobjvar_int(Q4H5, "myshiptype"));
 }