Difference between revisions of "Script Function: Q4LQ"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4LQ(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">obj</span>...")
 
 
Line 3: Line 3:
 
     <span style="color:#0000FF">if</span> (![[Engine Function:_isPlayer|<span style="color:#FF0000;font-weight:bold">isPlayer</span>]](usedon))
 
     <span style="color:#0000FF">if</span> (![[Engine Function:_isPlayer|<span style="color:#FF0000;font-weight:bold">isPlayer</span>]](usedon))
 
     {
 
     {
       <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:_Q4LP|<span style="color:#2B91AF">Q4LP</span>]](this);
 
         [[Script_Function:_Q4LP|<span style="color:#2B91AF">Q4LP</span>]](this);
Line 18: Line 18:
 
     [[Engine Function:_receiveHelpfulActionFrom|<span style="color:#FF0000;font-weight:bold">receiveHelpfulActionFrom</span>]](usedon, user);
 
     [[Engine Function:_receiveHelpfulActionFrom|<span style="color:#FF0000;font-weight:bold">receiveHelpfulActionFrom</span>]](usedon, user);
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"petTransfer"</span>);
 
     [[Engine Function:_removeObjVar|<span style="color:#FF0000;font-weight:bold">removeObjVar</span>]](this, <span style="color:#800000">"petTransfer"</span>);
     <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);

Latest revision as of 01:46, 21 October 2018

 function void Q4LQ(obj this, obj usedon, obj user)
 {
   if (!isPlayer(usedon))
   {
     if (isPet(this))
     {
       Q4LP(this);
     }
     else
     {
       bark(this, "Uhh... Sure. If you say so. Uh-huh. No problem. Soon as it gives an order, I'll obey...");
     }
     removeObjVar(this, "petTransfer");
     return ();
   }
   removeObjVar(this, "myBoss");
   Q458(this, usedon);
   receiveHelpfulActionFrom(usedon, user);
   removeObjVar(this, "petTransfer");
   if (isPet(this))
   {
     Q4LJ(this);
   }
   else
   {
     bark(this, "Very well, I transfer my allegiance.");
   }
   if (hasObjVar(this, "petWhoFollow"))
   {
     removeObjVar(this, "petWhoFollow");
   }
   stopFollowing(this);
   Q4DG(this);
   return ();
 }