Script Function: Q4BX

From Ultima Online: The Second Age
Revision as of 00:52, 21 October 2018 by Grimoric (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4BX(obj this, string Q698, obj speaker)
 {
   if ((Q698 != "attack") && (Q698 != "kill"))
   {
     return (0x00);
   }
   if (0x00)
   {
     bark(this, "Got order to attack.");
   }
   setObjVar(this, "petAttack", 0x01);
   if (!isPet(this))
   {
     bark(this, "Who should I attack?");
   }
   else
   {
     systemMessage(speaker, "Select the victim.");
   }
   targetObj(speaker, this);
   return (0x01);
 }