Script Function: Q49H
From Ultima Online: The Second Age
function void Q49H() { loc Q4F5 = getObjVar(this, "crimeLocation"); obj criminal = getObjVar(this, "lastCriminal"); if (getDistanceInTiles(getLocation(this), Q4F5) > 0x19) { if (isValid(criminal)) { if (getDistanceInTiles(getLocation(this), getLocation(criminal)) > 0x19) { return (); } } } if (isValid(criminal)) { obj victim = getObjVar(this, "lastVictim"); int Q5RN = getObjVar(this, "crimeSeverity"); callGuards(criminal, victim, Q5RN); } cleanup(); return (); }