Script Function: Q4CH

From Ultima Online: The Second Age
Revision as of 14:36, 12 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q4CH(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">list</span>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function int Q4CH(obj this, list args)
 {
   int Q4QI = 0x00;
   if (isInList(args, getName(this)))
   {
     Q4QI = 0x01;
   }
   if (isShopkeeper(this))
   {
     if (isInList(args, "shopkeep"))
     {
       Q4QI = 0x01;
     }
     if (isInList(args, "shopkeeper"))
     {
       Q4QI = 0x01;
     }
     if (isInList(args, "merchant"))
     {
       Q4QI = 0x01;
     }
     if (isInList(args, "vendor"))
     {
       Q4QI = 0x01;
     }
     if (isInList(args, "vender"))
     {
       Q4QI = 0x01;
     }
   }
   if (isGuard(this))
   {
     if (isInList(args, "guard"))
     {
       Q4QI = 0x01;
     }
   }
   return (Q4QI);
 }