Script: Scan
From Ultima Online: The Second Age
function void scan() { clearList(Q4QN); if (hasObjVar(this, "findMobiles")) { getMobsInRange(Q4QN, getLocation(this), 0x01F4); } else { if (hasObjVar(this, "findPlayers")) { getPlayersInRange(Q4QN, getLocation(this), 0x01F4); } } Q5E0 = Q4P7(Q4QN); return (); }