Script Function: Q43E

From Ultima Online: The Second Age
Revision as of 11:02, 10 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q43E(<span style="color:#0000FF">obj</span> Q5U8, <span style="color:#0000FF">obj</span> t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q43E(obj Q5U8, obj target, int damage)
 {
   int Q5NH = damage;
   int Q5DD = 0x01;
   int Q5T9 = 0x00;
   if (Q5U8 != NULL())
   {
     loc Q5TR = getLocation(Q5U8);
     Q5T9 = inJusticeRegion(Q5TR);
     if (isNPC(Q5U8))
     {
       if (!Q4Z7(Q5U8))
       {
         Q5DD = 0x00;
       }
     }
   }
   int Q637 = 0x00;
   if (target != NULL())
   {
     loc Q639 = getLocation(target);
     Q637 = inJusticeRegion(Q639);
     if (isNPC(target))
     {
       if (!Q4Z7(target))
       {
         Q5DD = 0x00;
       }
     }
   }
   if (Q5DD && (Q5T9 || Q637))
   {
     Q5NH = 0x00;
   }
   return (Q5NH);
 }