Script Function: Q4LQ

From Ultima Online: The Second Age
Revision as of 03:04, 12 October 2018 by Grimoric (talk | contribs) (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>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 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 ();
 }