Script Function: Q4LQ

From Ultima Online: The Second Age
Revision as of 00:46, 21 October 2018 by Grimoric (talk | contribs)
(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 ();
 }