Difference between revisions of "Script Function: Q506"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q506(<span style="color:#0000FF">obj</span> this) { <span style="color:#0000FF">list...")
 
 
Line 4: Line 4:
 
     [[Engine Function:_getObjectsInRange|<span style="color:#FF0000;font-weight:bold">getObjectsInRange</span>]](Q5XE, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x0A);
 
     [[Engine Function:_getObjectsInRange|<span style="color:#FF0000;font-weight:bold">getObjectsInRange</span>]](Q5XE, [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this), 0x0A);
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5XE) == 0x00)
 
     <span style="color:#0000FF">if</span> ([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5XE) == 0x00)
 +
    {
 +
      <span style="color:#0000FF">if</span> (0x00)
 +
      {
 +
        debugMessage(<span style="color:#800000">"Nothing nearby to scavenge."</span>);
 +
      }
 +
      <span style="color:#0000FF">return</span> (0x00);
 +
    }
 +
    <span style="color:#0000FF">return</span> (0x01);
 +
  }
 +
 +
  <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q506(<span style="color:#0000FF">obj</span> this)
 +
  {
 +
    <span style="color:#0000FF">loc</span> Q4VS = [[Engine Function:_getLocation|<span style="color:#FF0000;font-weight:bold">getLocation</span>]](this);
 +
    <span style="color:#0000FF">int</span> Q4QI = [[Engine Function:_objIsInRange|<span style="color:#FF0000;font-weight:bold">objIsInRange</span>]](Q4VS, 0x04);
 +
    <span style="color:#0000FF">if</span> (!Q4QI)
 
     {
 
     {
 
       <span style="color:#0000FF">if</span> (0x00)
 
       <span style="color:#0000FF">if</span> (0x00)

Latest revision as of 15:45, 12 October 2018

 function int Q506(obj this)
 {
   list Q5XE;
   getObjectsInRange(Q5XE, getLocation(this), 0x0A);
   if (numInList(Q5XE) == 0x00)
   {
     if (0x00)
     {
       debugMessage("Nothing nearby to scavenge.");
     }
     return (0x00);
   }
   return (0x01);
 }
 function int Q506(obj this)
 {
   loc Q4VS = getLocation(this);
   int Q4QI = objIsInRange(Q4VS, 0x04);
   if (!Q4QI)
   {
     if (0x00)
     {
       debugMessage("Nothing nearby to scavenge.");
     }
     return (0x00);
   }
   return (0x01);
 }