Script: 4159

From Ultima Online: The Second Age
Revision as of 01:10, 7 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> cook; <span style="color:#0000FF">trigger</span> use { systemMessage|<span style="color:#FF0000;font-weight:bold">syst...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits cook;
trigger use
{
  systemMessage(user, "What should I cook this on?");
  targetObj(user, this);
  return (0x01);
}
trigger targetobj
{
  if (usedon == NULL())
  {
    return (0x00);
  }
  if (hasObjVar(this, "NAME"))
  {
    string name;
    name = getObjVar(this, "NAME");
    if (name == "cake mix")
    {
      Q4E9(user, usedon, 0x09E9)return(0x01);
    }
    else
    {
      barkTo(this, user, "name incorrect");
      return (0x01);
    }
  }
  Q4E9(user, usedon, 0x160B);
  return (0x01);
}
trigger lookedat
{
  if (hasObjVar(this, "NAME"))
  {
    string Q676 = getObjVar(this, "NAME");
    barkTo(this, looker, Q676);
    return (0x00);
  }
  return (0x01);
}