Difference between revisions of "Script Function: Q52B"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q52B() { <span style="color:#0000FF">loc</span> Q5U8 = getLocation|<span style="c...")
 
 
Line 5: Line 5:
 
     dest = Q5U8;
 
     dest = Q5U8;
 
     [[Engine Function:_changeLoc|<span style="color:#FF0000;font-weight:bold">changeLoc</span>]](dest, [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00 - 0x02, 0x02), [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00 - 0x02, 0x02), 0x20);
 
     [[Engine Function:_changeLoc|<span style="color:#FF0000;font-weight:bold">changeLoc</span>]](dest, [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00 - 0x02, 0x02), [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00 - 0x02, 0x02), 0x20);
     [[doMissile_Loc2Loc|<span style="color:#FF0000;font-weight:bold">doMissile_Loc2Loc</span>]](Q5U8, dest, 0x36E4, 0x05, 0x00, 0x00);
+
     [[Engine Function:_doMissile_Loc2Loc|<span style="color:#FF0000;font-weight:bold">doMissile_Loc2Loc</span>]](Q5U8, dest, 0x36E4, 0x05, 0x00, 0x00);
 
     shortCallback(this, 0x03, 0x2F);
 
     shortCallback(this, 0x03, 0x2F);
 
     state = 0x01;
 
     state = 0x01;
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 15:18, 19 October 2018

 function void Q52B()
 {
   loc Q5U8 = getLocation(this);
   changeLoc(Q5U8, 0x00, 0x00, 0x0A);
   dest = Q5U8;
   changeLoc(dest, random(0x00 - 0x02, 0x02), random(0x00 - 0x02, 0x02), 0x20);
   doMissile_Loc2Loc(Q5U8, dest, 0x36E4, 0x05, 0x00, 0x00);
   shortCallback(this, 0x03, 0x2F);
   state = 0x01;
   return ();
 }