Script Function: Q41F

From Ultima Online: The Second Age
Revision as of 16:21, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q41F(<span style="color:#0000FF">obj</span> me, <span style="color:#0000FF">obj</span> tar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q41F(obj me, obj target)
 {
   if ((Q494 == 0x00) && (Q49P == 0x01))
   {
     victim = target;
     there = getLocation(victim);
     Q4VS = getLocation(me);
     if ((!isDead(victim)) && (canSeeLoc(me, there) == 0x01))
     {
       disableBehaviors(me);
       faceHere(me, getDirectionInternal(Q4VS, there));
       Q41E(me, target);
       Q49P = 0x00;
       int time = random(Q421, Q420);
       callback(me, time, 0x64);
       return (0x01);
     }
   }
   return (0x00);
 }