Script: Dec1 ft four

From Ultima Online: The Second Age
Revision as of 22:57, 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, 0x1122);
  return (0x00);
}
trigger enterrange(0x00)
{
  loc Q4D3 = 0x1431, 0x0257, 0x00;
  list Q5DQ;
  messageToRange(Q4D3, 0x01, "chest_unlocked", Q5DQ);
  messageToRange(getLocation(this), 0x03, "wall_trap_check", Q5DQ);
  callback(this, 0x02, 0x23);
  setType(this, 0x1123);
  callback(this, 0x1E, 0x24);
  return (0x01);
}
trigger callback(0x23)
{
  setType(this, 0x1122);
  return (0x00);
}
trigger callback(0x24)
{
  loc Q4D3 = 0x1431, 0x0257, 0x00;
  list Q5DQ;
  messageToRange(Q4D3, 0x01, "chest_locked", Q5DQ);
  return (0x00);
}