Script Function: Q4CG

From Ultima Online: The Second Age
Revision as of 19:14, 7 October 2018 by Grimoric (talk | contribs)
Jump to: navigation, search
 function void Q4CG(obj owner)
 {
   if (isMurderer(owner))
   {
     int ownerMurderCount = 0x00;
     if (hasObjVar(this, "color:#800000">"ownerMurderCount">))
     {
       ownerMurderCount = getObjVar(this, "color:#800000">"ownerMurderCount">);
     }
     int murderCount = getMurderCount(owner);
     if (murderCount > ownerMurderCount)
     {
       setObjVar(this, "color:#800000">"ownerMurderCount">, murderCount);
     }
   }
   return ();
 }