Script Function: Q4CG

From Ultima Online: The Second Age
Revision as of 18:15, 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, "ownerMurderCount">))
     {
       ownerMurderCount = getObjVar(this, "ownerMurderCount">);
     }
     int murderCount = getMurderCount(owner);
     if (murderCount > ownerMurderCount)
     {
       setObjVar(this, "ownerMurderCount">, murderCount);
     }
   }
   return ();
 }