Difference between revisions of "Script: Trap switch temp"

From Ultima Online: The Second Age
Jump to: navigation, search
(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"...")
 
(No difference)

Latest revision as of 08:07, 5 October 2018

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