Difference between revisions of "Script Function: Q66F"

From Ultima Online: The Second Age
Jump to: navigation, search
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q66F() { <span style="color:#0000FF">list</span> Q4A9; <span style="color:#0000...")
 
(No difference)

Latest revision as of 22:27, 11 October 2018

 function void Q66F()
 {
   list Q4A9;
   obj Q60R;
   clearList(Q5DN);
   getNPCsInRange(Q4A9, getLocation(this), 0x32);
   for(int i = 0x00; i < numInList(Q4A9); i++)
   {
     Q60R = Q4A9[i];
     if (!hasObjVar(Q60R, "isActor"))
     {
       if (isHuman(Q60R))
       {
         if (!isGuard(Q60R))
         {
           if (!hasScript(Q60R, "pet"))
           {
             appendToList(Q5DN, Q60R);
           }
         }
       }
     }
   }
   return ();
 }