Script: Objinfo

From Ultima Online: The Second Age
Jump to: navigation, search
trigger use
{
  targetObj(user, this);
  return (0x01);
}
trigger targetobj
{
  string Q63B;
  string Q5N7 = objToStr(usedon);
  int val = getValue(usedon);
  Q63B = val;
  concat(Q5N7, " ");
  concat(Q5N7, Q63B);
  barkTo(usedon, user, Q5N7);
  Q5N7 = "weight: ";
  Q63B = getWeight(usedon);
  concat(Q5N7, Q63B);
  bark(usedon, Q5N7);
  loc blah = getLocation(usedon);
  bark(usedon, "(" + getX(blah) + "," + getY(blah) + "," + getZ(blah) + ")");
  return (0x01);
}