Script Function: Q42B

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q42B(int range, obj Q5UY, int Q45Y, obj Q5U8, list Q5YQ, int Q65M)
 {
   int num = numInList(Q5YQ);
   int damage = Q45Y;
   if (num > 0x01)
   {
     damage = damage * 0x02;
   }
   int Q5I0 = damage / num;
   if ((Q45Y > 0x00) && (Q5I0 <= 0x00))
   {
     Q5I0 = 0x01;
   }
   obj Q5HY;
   int Q527;
   loc Q5UF = getLocation(Q5U8);
   loc Q4HT;
   int Q4IJ;
   int Q5KX;
   for(int i = 0x00; i < num; i++)
   {
     Q5HY = Q5YQ[i];
     if (isValid(Q5HY))
     {
       Q4HT = getLocation(Q5HY);
       Q4IJ = getDistanceInTiles(Q5UF, Q4HT);
       Q527 = Q428(Q5UY, Q5I0, Q5U8, Q5HY, Q65M, 0x00);
       scriptTrig(Q5HY, 0x01, Q5U8);
     }
   }
   return (Q45Y);
 }