Script Function: Q4ZV

From Ultima Online: The Second Age
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);
 }