Script: Dec4 blade trap

From Ultima Online: The Second Age
Revision as of 22:54, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> message(<span style="color:#800000">"blades"</span>) { <span style="...")
(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);
}