Script Function: Q4CO

From Ultima Online: The Second Age
Revision as of 22:24, 11 October 2018 by Grimoric (talk | contribs) (Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">string</span> Q4CO(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">list</spa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 function string Q4CO(obj this, list args)
 {
   string Q58D;
   int Q4QI;
   string name;
   list Q4CV = "payment", "reward", "pay", "give";
   int i;
   if (!hasObjVar(this, "questReward"))
   {
     return (Q58D);
   }
   Q4QI = 0x00;
   for(i = 0x00; i < numInList(Q4CV); i++)
   {
     name = Q4CV[i];
     if (isInList(args, name))
     {
       Q4QI = 0x01;
     }
   }
   if (Q4QI)
   {
     Q58D = Q4RP(this) + " ";
   }
   return (Q58D);
 }