Script Function: Q5UK

From Ultima Online: The Second Age
Revision as of 15:12, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5UK(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q5UK(obj user, obj usedon, int num, int Q5NO)
 {
   if (user == usedon)
   {
     return ();
   }
   obj Q49N = user;
   obj victim = usedon;
   if (Q5NO)
   {
     Q49N = usedon;
     victim = user;
   }
   if (getCompileFlag(0x01))
   {
     if (!canBeFreelyAggressedBy(victim, Q49N))
     {
       committedCrimeAt(Q49N, getLocation(victim), 0x01E0);
     }
   }
   else
   {
     callGuards(Q49N, getLocation(victim), num);
   }
   return ();
 }