Script Function: activate

From Ultima Online: The Second Age
Revision as of 01:17, 21 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> activate(<span style="color:#0000FF">obj</span> victim) { <span style="color:#0000FF">...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
function void activate(obj victim)
{
  loc Q61V = getLocation(this);
  doLocAnimation(Q61V, 0x119B, 0x0A, 0x05, 0x00, 0x00);
  list Q67L;
  getObjectsAt(Q67L, Q61V);
  appendToList(Q67L, victim);
  int Q53A = numInList(Q67L);
  for(int i = 0x00; i < Q53A; i++)
  {
    if (isMobile(Q67L[i]))
    {
      loseHP(Q67L[i], 0x0A);
    }
  }
  return ();
}