Script: Dyetub god

From Ultima Online: The Second Age
Revision as of 23:35, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> sndfx; <span style="color:#0000FF">trigger</span> use { systemMessage|<span style="color:#FF0000;font-weight:bold">sys...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits sndfx;
trigger use
{
  systemMessage(user, "Select the clothing to dye.");
  targetObj(user, this);
  return (0x00);
}
trigger targetobj
{
  if (usedon == NULL())
  {
    return (0x00);
  }
  int Q66P = getObjType(usedon);
  int Q61R = getHue(this);
  loc Q66R = getLocation(usedon);
  sfx(Q66R, 0x023E, 0x00);
  setHue(usedon, Q61R);
  return (0x00);
}