Difference between revisions of "Script Function: Q4C0"

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> Q4C0(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">string</span...")
 
 
Line 5: Line 5:
 
       <span style="color:#0000FF">return</span> (0x00);
 
       <span style="color:#0000FF">return</span> (0x00);
 
     }
 
     }
     <span style="color:#0000FF">if</span> ([[isPet|<span style="color:#2B91AF">isPet</span>]](this))
+
     <span style="color:#0000FF">if</span> ([[Script_Function:_isPet|<span style="color:#2B91AF">isPet</span>]](this))
 
     {
 
     {
 
       [[Script_Function:_Q4LJ|<span style="color:#2B91AF">Q4LJ</span>]](this);
 
       [[Script_Function:_Q4LJ|<span style="color:#2B91AF">Q4LJ</span>]](this);
Line 14: Line 14:
 
     }
 
     }
 
     [[Engine Function:_shortcallback|<span style="color:#FF0000;font-weight:bold">shortcallback</span>]](this, 0x08, 0x08);
 
     [[Engine Function:_shortcallback|<span style="color:#FF0000;font-weight:bold">shortcallback</span>]](this, 0x08, 0x08);
     <span style="color:#0000FF">if</span> ([[isPet|<span style="color:#2B91AF">isPet</span>]](this))
+
     <span style="color:#0000FF">if</span> ([[Script_Function:_isPet|<span style="color:#2B91AF">isPet</span>]](this))
 
     {
 
     {
 
       [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petCanTame"</span>, 0x00);
 
       [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petCanTame"</span>, 0x00);

Latest revision as of 01:49, 21 October 2018

 function int Q4C0(obj this, string Q698, obj speaker)
 {
   if (Q698 != "release")
   {
     return (0x00);
   }
   if (isPet(this))
   {
     Q4LJ(this);
   }
   else
   {
     bark(this, "I thank thee for thy kindness!");
   }
   shortcallback(this, 0x08, 0x08);
   if (isPet(this))
   {
     setObjVar(this, "petCanTame", 0x00);
   }
   Q4IH(this);
   return (0x01);
 }