Script Function: Q41F

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