Script Function: Q4SC

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4SC()
 {
   if (!hasObjVar(this, "myLoyalty"))
   {
     return (0x00);
   }
   int myLoyalty = getObjVar(this, "myLoyalty");
   if (myLoyalty > 0x64)
   {
     myLoyalty = 0x64;
     setObjVar(this, "myLoyalty", myLoyalty);
   }
   return (myLoyalty);
 }