Script Function: Q4CO

From Ultima Online: The Second Age
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);
 }