Script: Dec4 blade trap

From Ultima Online: The Second Age
Revision as of 21:31, 18 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger message("blades")
{
  list Q67G;
  getMobsInRange(Q67G, getLocation(this), 0x01);
  doLocAnimation(getLocation(this), 0x11AD, 0x02, 0x0A, 0x00, 0x00);
  if (!numInList(Q67G) == 0x00)
  {
    for(int i = 0x00; i < numInList(Q67G); i++)
    {
      loseHP(Q67G[i], dice(0x0A, 0x05));
    }
  }
  return (0x00);
}