Script Function: Q4ZV

From Ultima Online: The Second Age
Revision as of 03:31, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4ZV(<span style="color:#0000FF">obj</span> Q5HY, <span style="color:#0000FF">obj</span> p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4ZV(obj Q5HY, obj pet)
 {
   list Q48U;
   if (!hasObjListVar(pet, "myBoss"))
   {
     return (0x00);
   }
   getObjListVar(Q48U, pet, "myBoss");
   if (!isInList(Q48U, Q5HY))
   {
     return (0x00);
   }
   if (!hasObjVar(pet, "myLoyalty"))
   {
     return (0x00);
   }
   int myLoyalty = getObjVar(pet, "myLoyalty");
   if (myLoyalty < 0x01)
   {
     return (0x00);
   }
   return (0x01);
 }