Script Function: Q66H

From Ultima Online: The Second Age
Revision as of 16:18, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q66H(<span style="color:#0000FF">obj</span> this) { debugMessage(<span style="color...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q66H(obj this)
 {
   debugMessage("starting update of patrol path");
   list Q5C6;
   int Q45I = 0x01;
   for(int Q4BA = 0x00; Q4BA < numInList(guardList); Q4BA = Q4BA + 0x01)
   {
     obj Q4UJ;
     loc Q5VD = getLocation(Q4UJ);
     Q4UJ = guardList[Q4BA];
     Q45I = 0x01;
     int Q4IL = getDistanceInTiles(getLocation(this), Q5VD);
     if (Q4IL > myPatrolDistance)
     {
       if (!isMobile(Q4UJ))
       {
         Q5WC(Q4UJ);
       }
       Q45I = 0x00;
     }
     if (Q45I)
     {
       appendToList(Q5C6, Q4UJ);
     }
   }
   copyList(Q5HE, Q5C6);
   return;
 }