Difference between revisions of "Script: Des gas trap test"

From Ultima Online: The Second Age
Jump to: navigation, search
(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...")
 
(No difference)

Latest revision as of 22:45, 5 October 2018

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);
}