Script Function: Q4LM

From Ultima Online: The Second Age
Revision as of 04:04, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4LM(<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 Q4LM(obj this, obj usedon, obj user)
 {
   if (Q4BD(this, usedon))
   {
     Q4LJ(this);
   }
   else
   {
     if (!Q4KK(this, 0x00))
     {
       return ();
     }
   }
   if (usedon == this)
   {
     removeObjVar(this, "petWhoFollow");
     stopFollowing(this);
   }
   else
   {
     setObjVar(this, "petWhoFollow", usedon);
     followNpc(this, usedon, 0x00);
   }
   removeObjVar(this, "petFollow");
   return ();
 }