Difference between revisions of "Script: Dec4 dart trap"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> enterrange(0x01) { <span style="color:#0000FF">if</span> (!isPlayer|...") |
|||
Line 9: | Line 9: | ||
sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x0223, 0x00); | sfx([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x0223, 0x00); | ||
[[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x112C, 0x02, 0x03, 0x00, 0x00); | [[Engine Function:_doLocAnimation|<span style="color:#FF0000;font-weight:bold">doLocAnimation</span>]]([[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x112C, 0x02, 0x03, 0x00, 0x00); | ||
− | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[ | + | [[Engine Function:_loseHP|<span style="color:#FF0000;font-weight:bold">loseHP</span>]](target, [[Engine Function:_dice|<span style="color:#FF0000;font-weight:bold">dice</span>]](0x02, 0x04)); |
<span style="color:#0000FF">return</span> (0x00); | <span style="color:#0000FF">return</span> (0x00); | ||
} | } |
Latest revision as of 21:29, 18 October 2018
inherits sndfx;
trigger enterrange(0x01) { if (!isPlayer(target)) { return (0x00); } sfx(getLocation(this), 0x0223, 0x00); doLocAnimation(getLocation(this), 0x112C, 0x02, 0x03, 0x00, 0x00); loseHP(target, dice(0x02, 0x04)); return (0x00); }