Script Function: Q49I

From Ultima Online: The Second Age
Jump to: navigation, search
 function void Q49I(int Q65M, obj user, obj Q5QN)
 {
   int i;
   obj Q44M;
   list myGuards;
   list Q5BU;
   if (!hasObjVar(this, "myGuards"))
   {
     return ();
   }
   getObjListVar(myGuards, this, "myGuards");
   for(i = 0x00; i < numInList(myGuards); i++)
   {
     Q44M = myGuards[i];
     if (isValid(Q44M))
     {
       appendToList(Q5BU, Q44M);
     }
   }
   setObjVar(this, "myGuards", Q5BU);
   if (inJusticeRegion(getLocation(this)))
   {
     return ();
   }
   for(i = 0x00; i < numInList(Q5BU); i++)
   {
     Q44M = Q5BU[i];
     setObjVar(Q44M, "guardedObjectOffender", user);
     setObjVar(Q44M, "guardedObjectComplaint", Q65M);
     setObjVar(Q44M, "guardedObjectSecond", Q5QN);
     setObjVar(Q44M, "guardedObjectSender", this);
     shortCallback(Q44M, 0x01, 0x52);
   }
   return ();
 }