Difference between revisions of "Script: Hintupdater"

From Ultima Online: The Second Age
Jump to: navigation, search
 
Line 31: Line 31:
 
     }
 
     }
 
   }
 
   }
   [[hintupdate|<span style="color:#2B91AF">hintupdate</span>]](Q65M, this);
+
   [[Script_Function:_hintupdate|<span style="color:#2B91AF">hintupdate</span>]](Q65M, this);
 
   <span style="color:#0000FF">return</span> (0x01);
 
   <span style="color:#0000FF">return</span> (0x01);
 
  }
 
  }

Latest revision as of 06:42, 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);
}