Script: Sha fire circle daemon

From Ultima Online: The Second Age
Revision as of 14:13, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> creation { setType|<span style="color:#FF0000;font-weight:bold">se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger creation
{
  setType(this, 0x01);
  return (0x00);
}
trigger enterrange(0x00)
{
  list Q5DQ;
  if (!hasObjVar(this, "working"))
  {
    setObjVar(this, "working", 0x01);
    [[messageToRange|messageToRange]](getLocation(this), 0x0A, "poof", Q5DQ);
    callback(this, 0x05, 0x24);
  }
  return (0x01);
}
trigger callback(0x24)
{
  list Q67G;
  int Q64U;
  loc Q648;
  if (hasObjVar(this, "working"))
  {
    removeObjVar(this, "working");
    getMobsInRange(Q67G, getLocation(this), 0x04);
    for(int i = 0x00; i < numInList(Q67G); i++)
    {
      Q648 = (0x1647 + i), 0x20, 0x00;
      Q64U = teleport(Q67G[i], Q648);
    }
  }
  return (0x00);
}