Script Function: Q4CG

From Ultima Online: The Second Age
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 ();
 }