Script Function: Q49I

From Ultima Online: The Second Age
Revision as of 16:13, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q49I(<span style="color:#0000FF">int</span> Q65M, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ();
 }