Script Function: Q4JV

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4JV(obj this, obj target)
 {
   list memoryNotoriety;
   if (hasObjVar(this, "memoryNotoriety"))
   {
     getObjListVar(memoryNotoriety, this, "memoryNotoriety");
   }
   else
   {
     return (0x00);
   }
   list Q5H0;
   obj Q609;
   int Q55T = numInList(memoryNotoriety);
   for(int i = 0x00; i < Q55T; i++)
   {
     copyList(Q5H0, memoryNotoriety[i]);
     Q609 = Q5H0[0x00];
     if (target == Q609)
     {
       return (0x01);
       if (0x00)
       {
         debugMessage("Found target in fame memory.");
       }
     }
   }
   return (0x00);
 }