Script Function: Q4UH

From Ultima Online: The Second Age
Revision as of 16:19, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">void</span> Q4UH(<span style="color:#0000FF">obj</span> Q4UI, <span style="color:#0000FF">obj</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function void Q4UH(obj Q4UI, obj Q607)
 {
   if (!isValid(Q4UI))
   {
     return ();
   }
   if (isInContainer(Q4UI))
   {
     bark(Q4UI, "This is in a container and cannot be guarded.");
     return ();
   }
   list Q517;
   if (!isInList(guardList, Q4UI))
   {
     appendToList(guardList, Q4UI);
   }
   attachScript(Q4UI, "guarded");
   if (hasObjVar(Q4UI, "myGuards"))
   {
     getObjListVar(Q517, Q4UI, "myGuards");
   }
   if (!isInList(Q517, Q607))
   {
     appendToList(Q517, Q607);
   }
   setObjVar(Q4UI, "myGuards", Q517);
   if (0x00)
   {
     bark(Q4UI, "I am now guarded.");
   }
   return;
 }