Script: Cov3 statue three

From Ultima Online: The Second Age
Revision as of 23:42, 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">string</span> Q5ZM =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
trigger enterrange(0x03)
{
  string Q5ZM = "Go no farther, lest ye face thy death!";
  list Q56U = Q5ZM;
  if (!hasObjVar(this, "working"))
  {
    if (!hasObjVar(target, "CovetousListenToStatueSpeakTwo"))
    {
      setObjVar(this, "working", 0x01);
      callback(this, 0x19, 0x24);
      bark(this, Q5ZM);
      messageToRange(getLocation(this), 0x05, "barknow", Q56U);
      setObjVar(target, "CovetousListenToStatueSpeakTwo", 0x01);
    }
  }
  return (0x01);
}
trigger callback(0x24)
{
  if (hasObjVar(this, "working"))
  {
    removeObjVar(this, "working");
  }
  return (0x00);
}
trigger speech("resetme")
{
  if (hasObjVar(speaker, "CovetousListenToStatueSpeakTwo"))
  {
    removeObjVar(speaker, "CovetousListenToStatueSpeakTwo");
  }
  return (0x00);
}