Difference between revisions of "Script Function: Q5VC"

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> Q5VC(<span style="color:#0000FF">obj</span> attacker) { <span style="color:#0000FF"...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
     [[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](n, Q4XB);
 
     [[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](n, Q4XB);
 
     [[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](this, Q4XB);
 
     [[Engine Function:_setCurHP|<span style="color:#FF0000;font-weight:bold">setCurHP</span>]](this, Q4XB);
     [[Engine Function:_attack|<span style="color:#FF0000;font-weight:bold">attack</span>]](n, [[Engine Function:_attack|<span style="color:#FF0000;font-weight:bold">attack</span>]]er);
+
     [[Engine Function:_attack|<span style="color:#FF0000;font-weight:bold">attack</span>]](n, attacker);
 
     sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x01C8, 0x01CC), 0x00);
 
     sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), [[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x01C8, 0x01CC), 0x00);
 
     [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](n, <span style="color:#800000">"*The slime splits when struck!*"</span>);
 
     [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](n, <span style="color:#800000">"*The slime splits when struck!*"</span>);
 
     <span style="color:#0000FF">return</span> ();
 
     <span style="color:#0000FF">return</span> ();
 
   }
 
   }

Latest revision as of 22:48, 11 October 2018

 function void Q5VC(obj attacker)
 {
   obj n = createGlobalNPCAtSpecificLoc(0x0232, getLocation(this));
   setHue(n, getHue(this));
   int Q4XB = getCurHP(this);
   Q4XB = Q4XB / 0x02;
   setCurHP(n, Q4XB);
   setCurHP(this, Q4XB);
   attack(n, attacker);
   sfx(getLocation(this), random(0x01C8, 0x01CC), 0x00);
   bark(n, "*The slime splits when struck!*");
   return ();
 }