Difference between revisions of "Script Function: Q49H"
From Ultima Online: The Second Age
Line 19: | Line 19: | ||
[[Engine Function:_callGuards|<span style="color:#FF0000;font-weight:bold">callGuards</span>]](criminal, victim, Q5RN); | [[Engine Function:_callGuards|<span style="color:#FF0000;font-weight:bold">callGuards</span>]](criminal, victim, Q5RN); | ||
} | } | ||
− | [[ | + | [[Script_Function:_Cleanup|<span style="color:#2B91AF">cleanup</span>]](); |
<span style="color:#0000FF">return</span> (); | <span style="color:#0000FF">return</span> (); | ||
} | } |
Latest revision as of 08:38, 19 October 2018
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 (); }