Script: 4161

From Ultima Online: The Second Age
Jump to: navigation, search
inherits eat;
trigger creation
{
  setObjVar(this, "I_am_food", 0x01);
  setObjVar(this, "satiety", 0x06);
  return (0x01);
}
trigger use
{
  Q4NG(user, 0x00);
  return (0x01);
}
trigger lookedat
{
  if (hasObjVar(this, "NAME"))
  {
    string name = getObjVar(this, "NAME");
    bark(this, name)return(0x00);
  }
  else
  {
    return (0x01);
  }
  return (0x01);
}