Script Function: Q49H

From Ultima Online: The Second Age
Revision as of 09:47, 7 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q49H() { <span style="color:#0000FF">loc</span> Q4F5 = getObjVar|<span style="col...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q49H()
 {
   loc Q4F5 = getObjVar(this, <span style="color:#800000">"crimeLocation"</span>);
   obj criminal = getObjVar(this, <span style="color:#800000">"lastCriminal"</span>);
   if (getDistanceInTiles(getLocation(this), Q4F5) > 0x19)
   {
     if (isValid(criminal))
     {
       if (getDistanceInTiles(getLocation(this), getLocation(criminal)) > 0x19)
       {
         return ();
       }
     }
   }
   if (isValid(criminal))
   {
     obj victim = getObjVar(this, <span style="color:#800000">"lastVictim"</span>);
     int Q5RN = getObjVar(this, <span style="color:#800000">"crimeSeverity"</span>);
     callGuards(criminal, victim, Q5RN);
   }
   cleanup();
   return ();
 }