Script: Sha rune rotate

From Ultima Online: The Second Age
Revision as of 14:13, 5 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">trigger</span> creation { <span style="color:#0000FF">int</span> Q5D3; <span style="color:#0000FF">if</span> (getObjType|<span style="col...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
trigger creation
{
  int Q5D3;
  if (getObjType(this) == 0x06)
  {
    setType(this, 0x01);
    Q5D3 = 0x0E5C;
  }
  if (getObjType(this) == 0x07)
  {
    setType(this, 0x01);
    Q5D3 = 0x0E5F;
  }
  if (getObjType(this) == 0x08)
  {
    setType(this, 0x01);
    Q5D3 = 0x0E62;
  }
  if (getObjType(this) == 0x0C)
  {
    setType(this, 0x01);
    Q5D3 = 0x0E65;
  }
  if (getObjType(this) == 0x0E5C)
  {
    Q5D3 = 0x0E5F;
  }
  if (getObjType(this) == 0x0E5F)
  {
    Q5D3 = 0x0E62;
  }
  if (getObjType(this) == 0x0E62)
  {
    Q5D3 = 0x0E65;
  }
  if (getObjType(this) == 0x0E65)
  {
    Q5D3 = 0x0E5F;
  }
  setObjVar(this, "myNextObjType", Q5D3);
  return (0x00);
}
trigger message("switchType")
{
  int Q5D3;
  if (getObjType(this) == 0x01)
  {
    Q5D3 = getObjVar(this, "myNextObjType");
    setType(this, Q5D3);
    return (0x00);
  }
  if (getObjType(this) == 0x0E5C)
  {
    Q5D3 = 0x0E5F;
  }
  if (getObjType(this) == 0x0E5F)
  {
    Q5D3 = 0x0E62;
  }
  if (getObjType(this) == 0x0E62)
  {
    Q5D3 = 0x0E65;
  }
  if (getObjType(this) == 0x0E65)
  {
    Q5D3 = 0x0E5C;
  }
  setObjVar(this, "myNextObjType", Q5D3);
  setType(this, 0x01);
  return (0x00);
}