Difference between revisions of "Script Function: isOwnedPet"

From Ultima Online: The Second Age
Jump to: navigation, search
(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">if<...")
 
(No difference)

Latest revision as of 09:34, 21 October 2018

function int isOwnedPet(obj it)
{
  if (hasObjListVar(this, "myBoss"))
  {
    list Q4TN;
    getObjListVar(Q4TN, this, "myBoss");
    if (numInList(Q4TN) > 0x00)
    {
      return (0x01);
    }
  }
  return (0x00);
}