Script Function: Q4SC

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> Q4SC() { <span style="color:#0000FF">if</span> (!hasObjVar|<span style="color:#FF0...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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);
 }