Script Function: Q5UK

From Ultima Online: The Second Age
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 ();
 }