Difference between revisions of "Script Function: Q4KL"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4KL(<span style="color:#0000FF">obj</span> user, <span style="color:#0000FF">obj</span> u...")
 
 
Line 9: Line 9:
 
       [[Engine Function:_faceHere|<span style="color:#FF0000;font-weight:bold">faceHere</span>]](user, [[Engine Function:_getDirectionInternal|<span style="color:#FF0000;font-weight:bold">getDirectionInternal</span>]](Q4VS, there));
 
       [[Engine Function:_faceHere|<span style="color:#FF0000;font-weight:bold">faceHere</span>]](user, [[Engine Function:_getDirectionInternal|<span style="color:#FF0000;font-weight:bold">getDirectionInternal</span>]](Q4VS, there));
 
       Q5NC = 0x01;
 
       Q5NC = 0x01;
       [[doMissile_Mob2Mob|<span style="color:#FF0000;font-weight:bold">doMissile_Mob2Mob</span>]](user, usedon, 0x36E4, 0x05, 0x00, 0x00);
+
       [[Engine Function:_doMissile_Mob2Mob|<span style="color:#FF0000;font-weight:bold">doMissile_Mob2Mob</span>]](user, usedon, 0x36E4, 0x05, 0x00, 0x00);
 
       sfx(Q4VS, 0x01E5, 0x00);
 
       sfx(Q4VS, 0x01E5, 0x00);
 
       Q57M = usedon;
 
       Q57M = usedon;

Latest revision as of 04:17, 21 October 2018

 function int Q4KL(obj user, obj usedon, int Q5NM)
 {
   int Q5NC = 0x00;
   if (Q50G(usedon))
   {
     int damage;
     loc Q4VS = getLocation(user);
     loc there = getLocation(usedon);
     faceHere(user, getDirectionInternal(Q4VS, there));
     Q5NC = 0x01;
     doMissile_Mob2Mob(user, usedon, 0x36E4, 0x05, 0x00, 0x00);
     sfx(Q4VS, 0x01E5, 0x00);
     Q57M = usedon;
     Q57L = user;
     Q5UK(user, usedon, 0x02, Q5NM);
     callback(this, 0x01, 0x19);
     Q5NQ = Q5NM;
   }
   Q5UR(this, Q5NC);
   return (Q5NC);
 }