From Ultima Online: The Second Age
|
|
Line 1: |
Line 1: |
− | <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q5VC(<span style="color:#0000FF">obj</span> attacker)
| + | |
− | {
| |
− | <span style="color:#0000FF">obj</span> n = [[Engine Function:_createGlobalNPCAtSpecificLoc|<span style="color:#FF0000;font-weight:bold">createGlobalNPCAtSpecificLoc</span>]](0x0232, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this));
| |
− | [[Engine Function:_setHue|<span style="color:#FF0000;font-weight:bold">setHue</span>]](n, [[Engine Function:_getHue|<span style="color:#FF0000;font-weight:bold">getHue</span>]](this));
| |
− | <span style="color:#0000FF">int</span> Q4XB = [[Engine Function:_getCurHP|<span style="color:#FF0000;font-weight:bold">getCurHP</span>]](this);
| |
− | Q4XB = Q4XB / 0x02;
| |
− | [[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:_attack|<span style="color:#FF0000;font-weight:bold">attack</span>]](n, [[Engine Function:_attack|<span style="color:#FF0000;font-weight:bold">attack</span>]]er);
| |
− | 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>);
| |
− | <span style="color:#0000FF">return</span> ();
| |
− | }
| |
Revision as of 21:35, 10 October 2018