Difference between revisions of "Script: Objinfo"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#FF0000;font-weight:bold">targetObj</span>(user, this); <span style="color:#0000FF">r...")
 
(No difference)

Latest revision as of 17:28, 5 October 2018

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);
}