Script Function: Q4BZ

From Ultima Online: The Second Age
Revision as of 03:07, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4BZ(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">string</span...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4BZ(obj this, string Q698, obj speaker)
 {
   int Q4E3 = 0x00;
   if (Q698 != "patrol")
   {
     return (0x00);
   }
   if (0x00)
   {
     bark(this, "Got order to patrol.");
   }
   if (hasObjVar(this, "continuePatrol"))
   {
     Q4E3 = getObjVar(this, "continuePatrol");
   }
   if (!Q4E3)
   {
     setObjVar(this, "continuePatrol", 0x01);
     if (!isPet(this))
     {
       bark(this, "Patrolling.");
     }
     else
     {
       Q4LJ(this);
       barkTo(this, speaker, "Your pet begins to patrol.");
     }
     Q5HF(this);
   }
   else
   {
     setObjVar(this, "continuePatrol", 0x00);
     if (!isPet(this))
     {
       bark(this, "Stopping patrol.");
     }
     else
     {
       Q4LJ(this);
       barkTo(this, speaker, "Your pet stops patrolling.");
     }
   }
   return (0x01);
 }