Script: 3850

From Ultima Online: The Second Age
Revision as of 04:22, 7 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> potion; <span style="color:#0000FF">trigger</span> use { <span style="color:#0000FF">if</span> (!Q4H6|<span style="col...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits potion;
trigger use
{
  if (!Q4H6(user))
  {
    return (0x00);
  }
  if (Q4NQ(user) == 0x00)
  {
    return (0x00);
  }
  setInvisible(user, 0x00);
  int power = 0x01;
  if (hasObjVar(this, "power"))
  {
    power = getObjVar(this, "power");
  }
  if ((hasScript(user, "poisoned")) || (hasObjVar(user, "poison_strength")))
  {
    systemMessage(user, "You are already poisoned.");
  }
  else
  {
    setObjVar(user, "poison_strength", power);
    attachScript(user, "poisoned");
  }
  obj Q4NN = createGlobalObjectOn(this, 0x0F0E);
  destroyOne(this);
  return (0x00);
}