Difference between revisions of "Script Function: Q4C5"

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> Q4C5(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">string</span...")
 
 
Line 6: Line 6:
 
     }
 
     }
 
     [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petTransfer"</span>, 0x01);
 
     [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"petTransfer"</span>, 0x01);
     <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:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Whom do you wish me to work for?"</span>);
 
       [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Whom do you wish me to work for?"</span>);

Latest revision as of 00:48, 21 October 2018

 function int Q4C5(obj this, string Q698, obj speaker)
 {
   if (Q698 != "transfer")
   {
     return (0x00);
   }
   setObjVar(this, "petTransfer", 0x01);
   if (!isPet(this))
   {
     bark(this, "Whom do you wish me to work for?");
   }
   else
   {
     systemMessage(speaker, "Click on the person to transfer ownership to.");
   }
   targetObj(speaker, this);
   return (0x01);
 }