Script Function: Q41H

From Ultima Online: The Second Age
Revision as of 16:30, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q41H(<span style="color:#0000FF">obj</span> Q4XN) { <span style="color:#0000FF">int...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q41H(obj Q4XN)
 {
   int value = 0x00;
   if (hasObjVar(Q4XN, "mybasevalue"))
   {
     value = getObjVar(Q4XN, "mybasevalue");
   }
   int Q4AX = Q42M();
   int Q5BE = 0x00;
   if (Q4AX < 0x00)
   {
     Q5BE = 0x03E7;
   }
   else
   {
     Q5BE = 0x01 * Q4AX / 0x0A;
   }
   Q5BE = Q5BE + 0x05;
   if (Q5BE != value)
   {
     setObjVar(Q4XN, "mybasevalue", Q5BE);
   }
   return ();
 }