Script Function: IsOwnedPet

From Ultima Online: The Second Age
Revision as of 03:28, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> isOwnedPet(<span style="color:#0000FF">obj</span> it) { <span style="color:#0000FF">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int isOwnedPet(obj it)
 {
   if (hasObjListVar(this, "myBoss"))
   {
     list Q4TN;
     getObjListVar(Q4TN, this, "myBoss");
     if (numInList(Q4TN) > 0x00)
     {
       return (0x01);
     }
   }
   return (0x00);
 }