Script Function: Q4CG

From Ultima Online: The Second Age
Revision as of 14:29, 14 October 2018 by Grimoric (talk | contribs)
(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, "ownerMurderCount"))
     {
       ownerMurderCount = getObjVar(this, "ownerMurderCount");
     }
     int murderCount = getMurderCount(owner);
     if (murderCount > ownerMurderCount)
     {
       setObjVar(this, "ownerMurderCount", murderCount);
     }
   }
   return ();
 }