Script Function: Q4CG

From Ultima Online: The Second Age
Revision as of 17:01, 7 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4CG(<span style="color:#0000FF">obj</span> owner) { <span style="color:#0000FF">if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4CG(obj owner)
 {
   if (isMurderer(owner))
   {
     int ownerMurderCount = 0x00;
     if (hasObjVar(this, <span style="color:#800000">"ownerMurderCount"</span>))
     {
       ownerMurderCount = getObjVar(this, <span style="color:#800000">"ownerMurderCount"</span>);
     }
     int murderCount = getMurderCount(owner);
     if (murderCount > ownerMurderCount)
     {
       setObjVar(this, <span style="color:#800000">"ownerMurderCount"</span>, murderCount);
     }
   }
   return ();
 }