Difference between revisions of "Script: Hintupdate"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">inherits</span> identify; <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> hintupdate(<span style="color:...")
 
 
Line 30: Line 30:
 
   return;
 
   return;
 
  }
 
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> hintupdate(<span style="color:#0000FF">int</span> Q65M, <span style="color:#0000FF">obj</span> item)
 +
  {
 +
    <span style="color:#0000FF">obj</span> Q4XN = item;
 +
    <span style="color:#0000FF">int</span> Q5MV = 0x00;
 +
    <span style="color:#0000FF">string</span> Q4RC = <span style="color:#800000">""</span>;
 +
    <span style="color:#0000FF">string</span> Q5UI = <span style="color:#800000">""</span>;
 +
    <span style="color:#0000FF">loc</span> location;
 +
    <span style="color:#0000FF">obj</span> Q5IY = [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]();
 +
    <span style="color:#0000FF">string</span> Q5J0 = <span style="color:#800000">""</span>;
 +
    <span style="color:#0000FF">int</span> Q45N = 0x00;
 +
    <span style="color:#0000FF">int</span> Q5NC;
 +
    <span style="color:#0000FF">int</span> val = 0x00;
 +
    <span style="color:#0000FF">string</span> Q5K9;
 +
    Q5K9 = [[Engine Function:_getArticle|<span style="color:#FF0000;font-weight:bold">getArticle</span>]]([[Engine Function:_getObjType|<span style="color:#FF0000;font-weight:bold">getObjType</span>]](item));
 +
    <span style="color:#0000FF">if</span> ([[Engine Function:_getResource|<span style="color:#FF0000;font-weight:bold">getResource</span>]](val, item, <span style="color:#800000">"magic"</span>, 0x03, 0x02))
 +
    {
 +
      Q5MV = val;
 +
    }
 +
    Q4RC = [[Script_Function:_Q4RB|<span style="color:#2B91AF">Q4RB</span>]](item);
 +
    Q5UI = [[Script_Function:_Q4XP|<span style="color:#2B91AF">Q4XP</span>]](item);
 +
    location = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](item);
 +
    Q5IY = [[Script_Function:_Q4RZ|<span style="color:#2B91AF">Q4RZ</span>]](item);
 +
    <span style="color:#0000FF">if</span> (Q5IY != [[Engine Function:_NULL|<span style="color:#FF0000;font-weight:bold">NULL</span>]]())
 +
    {
 +
      Q5J0 = [[Engine Function:_getName|<span style="color:#FF0000;font-weight:bold">getName</span>]](Q5IY);
 +
    }
 +
    [[Engine Function:_updateHint|<span style="color:#FF0000;font-weight:bold">updateHint</span>]](Q65M, Q4XN, Q5MV, Q4RC, Q5UI, location, Q5IY, Q5J0, Q45N);
 +
    return;
 +
  }

Latest revision as of 14:58, 12 October 2018

inherits identify;
function void hintupdate(int Q65M, obj item)
{
  obj Q4XN = item;
  int Q5MV = 0x00;
  string Q4RC = "";
  string Q5UI = "";
  loc location;
  obj Q5IY = NULL();
  string Q5J0 = "";
  int Q45N = 0x00;
  int Q5NC;
  int val = 0x00;
  string Q5K9;
  Q5K9 = getArticle(getObjType(item));
  if (getResource(val, item, "magic", 0x03, 0x02))
  {
    Q5MV = val;
  }
  Q4RC = Q4RB(item);
  Q5UI = Q4XP(item);
  location = getLocation(item);
  Q5IY = Q4RZ(item);
  if (Q5IY != NULL())
  {
    Q5J0 = getName(Q5IY);
  }
  updateHint(Q65M, Q4XN, Q5MV, Q4RC, Q5UI, location, Q5IY, Q5J0, Q45N);
  return;
}
 function void hintupdate(int Q65M, obj item)
 {
   obj Q4XN = item;
   int Q5MV = 0x00;
   string Q4RC = "";
   string Q5UI = "";
   loc location;
   obj Q5IY = NULL();
   string Q5J0 = "";
   int Q45N = 0x00;
   int Q5NC;
   int val = 0x00;
   string Q5K9;
   Q5K9 = getArticle(getObjType(item));
   if (getResource(val, item, "magic", 0x03, 0x02))
   {
     Q5MV = val;
   }
   Q4RC = Q4RB(item);
   Q5UI = Q4XP(item);
   location = getLocation(item);
   Q5IY = Q4RZ(item);
   if (Q5IY != NULL())
   {
     Q5J0 = getName(Q5IY);
   }
   updateHint(Q65M, Q4XN, Q5MV, Q4RC, Q5UI, location, Q5IY, Q5J0, Q45N);
   return;
 }