Script: Test2

From Ultima Online: The Second Age
Revision as of 10:25, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">trigger</span> enterrange(0x03) { <span style="color:#0000FF">int</span> Q61Y = g...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger enterrange(0x03)
{
  int Q61Y = getObjType(this);
  string Q628 = Q61Y;
  bark(this, Q628);
  if (!(getObjType(this) == 0x11A6))
  {
    setType(this, 0x11A6);
    callback(this, 0x03, 0x24);
  }
  return (0x01);
}
trigger callback(0x24)
{
  list Q67G;
  getMobsInRange(Q67G, getLocation(this), 0x05);
  if (numInList(Q67G) == 0x00)
  {
    setType(this, 0x01);
  }
  else
  {
    callback(this, 0x03, 0x24);
  }
  return (0x00);
}