Script Function: Q4LQ

From Ultima Online: The Second Age
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 ();
 }