Script Function: Q4KK

From Ultima Online: The Second Age
Revision as of 03:27, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4KK(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">int</span> Q...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4KK(obj this, int Q57Y)
 {
   int myLoyalty;
   string debug;
   myLoyalty = Q4SC();
   if (0x00)
   {
     debug = myLoyalty;
     bark(this, debug);
   }
   if ((random(0x00, 0x64) + Q57Y) > myLoyalty)
   {
     Q4LP(this);
     if (myLoyalty < 0x00)
     {
       Q4IH(this);
     }
     return (0x00);
   }
   myLoyalty = myLoyalty + 0x01;
   setObjVar(this, "myLoyalty", myLoyalty);
   Q4LJ(this);
   return (0x01);
 }