Script Function: Q4TV
From Ultima Online: The Second Age
function void Q4TV(obj victim) { loc Q4VS = getLocation(Q67S); loc there = getLocation(victim); trackee = victim; int Q5R6 = getDistanceInTiles(Q4VS, there); if (Q5R6 < 0x01) { Q5R6 = 0x01; Q4GJ(victim, 0x1E); } else { walkTo(Q67S, there, 0x0E); shortcallback(Q67S, Q5R6, 0x34); } return (); }
function void Q4TV(obj victim) { loc Q4VS = getLocation(this); loc there = getLocation(victim); trackee = victim; int Q5R6 = getDistanceInTiles(Q4VS, there); if (Q5R6 < 0x01) { Q5R6 = 0x01; if (!isValid(victim)) { return (); } Q4GJ(victim, 0x14); } else { walkTo(this, there, 0x0F); shortcallback(this, Q5R6, 0x34); } return (); }