Script: Trap switch temp

From Ultima Online: The Second Age
Revision as of 08:07, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">inherits</span> globals; <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4TE(<span style="color:#0000FF"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
inherits globals;
function int Q4TE(int Q5F8)
{
  int Q63F;
  if (Q5F8 == 0x1092)
  {
    Q63F = 0x1091;
  }
  if (Q5F8 == 0x1091)
  {
    Q63F = 0x1092;
  }
  if (Q5F8 == 0x108F)
  {
    Q63F = 0x1090;
  }
  if (Q5F8 == 0x1090)
  {
    Q63F = 0x108F;
  }
  return (Q63F);
}
trigger use
{
  int Q5F8 = getObjType(this);
  int Q63F = Q4TE(getObjType(this));
  setType(this, Q63F);
  return (0x01);
}