Difference between revisions of "Script: Nrgyboltbase"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> spelskil; <span style="color:#0000FF">member</span> <span style="color:#0000FF">int</span> Q5NQ; <span style="color:#0000FF...")
 
 
Line 13: Line 13:
 
     <span style="color:#0000FF">loc</span> there = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](usedon);
 
     <span style="color:#0000FF">loc</span> there = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](usedon);
 
     [[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));
     [[doMissile_Mob2Mob|<span style="color:#FF0000;font-weight:bold">doMissile_Mob2Mob</span>]](user, usedon, 0x379F, 0x07, 0x00, 0x01);
+
     [[Engine Function:_doMissile_Mob2Mob|<span style="color:#FF0000;font-weight:bold">doMissile_Mob2Mob</span>]](user, usedon, 0x379F, 0x07, 0x00, 0x01);
 
     sfx(Q4VS, 0x020A, 0x00);
 
     sfx(Q4VS, 0x020A, 0x00);
 
     Q57M = usedon;
 
     Q57M = usedon;

Latest revision as of 03:16, 21 October 2018

inherits spelskil;
member int Q5NQ;
member obj Q57L;
member obj Q57M;
function int Q4JO(obj user, obj usedon, int Q5NM)
{
  int Q5NC = 0x00;
  if (Q50G(usedon))
  {
    loc Q4VS = getLocation(user);
    loc there = getLocation(usedon);
    faceHere(user, getDirectionInternal(Q4VS, there));
    doMissile_Mob2Mob(user, usedon, 0x379F, 0x07, 0x00, 0x01);
    sfx(Q4VS, 0x020A, 0x00);
    Q57M = usedon;
    Q57L = user;
    callback(this, 0x01, 0x19);
    Q5UK(user, usedon, 0x02, Q5NM);
    Q5NQ = Q5NM;
    Q5NC = 0x01;
  }
  Q5UR(this, Q5NC);
  return (Q5NC);
}
trigger callback(0x19)
{
  int Q527 = Q429(this, Q57L, Q57M, 0x02, Q5NQ);
  if (isValid(Q57M))
  {
    scriptTrig(Q57M, 0x01, Q57L);
  }
  Q5UQ(this);
  return (0x00);
}