Script: Oilflask

From Ultima Online: The Second Age
Revision as of 17:28, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> use { <span style="color:#FF0000;font-weight:bold">systemMessage</span>(user, <span style="color:#800000">"Se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger use
{
  systemMessage(user, "Select lantern to refuel.");
  targetObj(user, this);
  return (0x00);
}
trigger targetobj
{
  if (usedon == NULL())
  {
    return (0x00);
  }
  int Q61Y = getObjType(usedon);
  switch (Q61Y)
  {
  case 0x0A18
  case 0x0A1D
  case 0x0A25
  case 0x0A15
  case 0x0A1A
  case 0x0A22
    setObjVar(usedon, "fuel", 0x64);
    destroyOne(this);
    break;
  }
  return (0x00);
}