Difference between revisions of "Script: Hintupdater"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> [[[[hintupdate|<span style="color:#2B91AF">hintupdate</span>]]]]; <span style="color:#0000FF">trigger</span> decay { <span s...")
 
Line 1: Line 1:
  <span style="color:#0000FF">inherits</span> [[[[hintupdate|<span style="color:#2B91AF">hintupdate</span>]]]];
+
  <span style="color:#0000FF">inherits</span> [[hintupdate|<span style="color:#2B91AF">hintupdate</span>]];
  
 
  <span style="color:#0000FF">trigger</span> decay
 
  <span style="color:#0000FF">trigger</span> decay

Revision as of 06:37, 24 October 2018

inherits hintupdate;
trigger decay
{
  int Q65M = 0x02;
  int Q45Y = 0x00;
  if (!getResource(Q45Y, this, "magic", 0x03, 0x02))
  {
    if (hasObjVar(this, "hintValue"))
    {
      Q45Y = getObjVar(this, "hintValue");
    }
    else
    {
      Q45Y = 0x01;
    }
  }
  if (Q45Y < 0x14)
  {
    Q65M = 0x03;
  }
  else
  {
    if (Q45Y < 0x50)
    {
      Q65M = 0x02;
    }
    else
    {
      Q65M = 0x00;
    }
  }
  hintupdate(Q65M, this);
  return (0x01);
}