Script Function: Q4LN

From Ultima Online: The Second Age
Revision as of 00:47, 21 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4LN(obj this, obj usedon, obj user)
 {
   debugMessage("I are here");
   if (Q4KK(this, 0x00))
   {
     string Q60K;
     if (hasObjVar(this, "isPet"))
     {
       Q60K = "I shall obey the orders given me by " + getName(usedon) + " and treat " + getHimHer(usedon) + " as a friend.";
       bark(this, Q60K);
     }
     else
     {
       Q60K = getName(this) + " will not guard against " + getName(usedon) + " and will obey " + getHisHer(usedon) + " orders as if they were your own.";
       systemMessage(user, Q60K);
       if (isPlayer(usedon))
       {
         Q60K = getName(user) + " has granted you the ability to give orders to " + getHisHer(user) + " pet " + getName(this) + ". This creature will now consider you a friend.";
         systemMessage(usedon, Q60K);
       }
     }
     debugMessage("I are here2");
     receiveHelpfulActionFrom(usedon, user);
     Q458(this, usedon);
   }
   return ();
 }