Script Function: Q41N

From Ultima Online: The Second Age
Revision as of 03:31, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q41N(<span style="color:#0000FF">obj</span> Q4P2, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q41N(obj Q4P2, obj target)
 {
   if (!isValid(target))
   {
     return ();
   }
   if (isCounselor(target) || isDead(target))
   {
     return ();
   }
   if (Q41L(Q4P2, target))
   {
     sfx(getLocation(target), 0x0204, 0x00);
     if ((!hasScript(target, "rempara")) && (!getMobFlag(target, 0x02)))
     {
       int resist = 0x00;
       resist = Q4CN(NULL(), target, 0x06);
       if (!resist)
       {
         setWaitState(target, 0x50);
         int Q67T = waitState(target);
         setMobFlag(target, 0x02, 0x01)
         attachScript(target, "rempara");
         receiveUnhealthyActionFrom(target, Q4P2);
         callback(target, 0x1E, 0x0D);
         Q556(target);
       }
     }
   }
   return ();
 }