Script Function: Q66H
From Ultima Online: The Second Age
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; }