Script Function: Q4CE

From Ultima Online: The Second Age
Jump to: navigation, search
 function int Q4CE(string Q46R)
 {
   int i;
   list Q59E;
   int Q4QM = 0x00;
   if (!hasObjVar(this, "myMurderWitnessList"))
   {
     debugMessage("No murder list.");
     return (0x00);
   }
   getObjListVar(Q59E, this, "myMurderWitnessList");
   list Q61X;
   string Q5ZM;
   for(i = 0x00; i < numInList(Q59E); i++)
   {
     copyList(Q61X, Q59E[i]);
     if (Q46R == getName(Q61X[0x00]))
     {
       Q5ZM = getName(Q61X[0x00]) + " is a bloody murderer! I saw " + getHimHer(Q61X[0x00]) + " kill " + getName(Q61X[0x01]) + " with my own eyes!";
       Q4QM = 0x01;
       break;
     }
     if (Q46R == getName(Q61X[0x01]))
     {
       Q5ZM = getName(Q61X[0x01]) + " was brutally slain by " + getName(Q61X[0x00]) + "!" + " I saw it with my own eyes!";
       Q4QM = 0x01;
       break;
     }
   }
   if (Q4QM)
   {
     Q4J9(this);
     obj Q611 = Q61X[0x00];
     string Q58D = getHeShe(Q611) + " is " + getDirection(getLocation(this), getLocation(Q611)) + ".";
     bark(this, Q58D);
     if (getDirection(getLocation(this), getLocation(Q611)) != "right here")
     {
       Q58D = "It is " + getDistance(getLocation(this), getLocation(Q611)) + " from here.";
       if (getDistance(getLocation(this), getLocation(Q611)) == "right here")
       {
         Q58D = "Just turn around and look.";
       }
       bark(this, Q58D);
       return (0x01);
     }
   }
   return (0x00);
 }
 function int Q4CE(string Q46R)
 {
   int i;
   list Q59E;
   int Q4QM = 0x00;
   if (!hasObjVar(this, "myMurderWitnessList"))
   {
     debugMessage("No murder list.");
     return (0x00);
   }
   getObjListVar(Q59E, this, "myMurderWitnessList");
   list Q61X;
   string Q5ZM;
   for(i = 0x00; i < numInList(Q59E); i++)
   {
     copyList(Q61X, Q59E[i]);
     if (Q46R == getName(Q61X[0x00]))
     {
       Q5ZM = getName(Q61X[0x00]) + " is a bloody murderer! I saw " + getHimHer(Q61X[0x00]) + " kill " + getName(Q61X[0x01]) + " with my own eyes!";
       Q4QM = 0x01;
       break;
     }
     if (Q46R == getName(Q61X[0x01]))
     {
       Q5ZM = getName(Q61X[0x01]) + " was brutally slain by " + getName(Q61X[0x00]) + "!" + " I saw it with my own eyes!";
       Q4QM = 0x01;
       break;
     }
   }
   if (Q4QM)
   {
     Q4J9(this);
     obj Q611 = Q61X[0x00];
     string Q58D = getHeShe(Q611) + " is " + getDirection(getLocation(this), getLocation(Q611)) + ".";
     bark(this, Q58D);
     if (getDirection(getLocation(this), getLocation(Q611)) != "right here")
     {
       Q58D = "It is " + getDistance(getLocation(this), getLocation(Q611)) + " from here.";
       if (getDistance(getLocation(this), getLocation(Q611)) == "right here")
       {
         Q58D = "Just turn around and look.";
       }
       bark(this, Q58D);
       return (0x01);
     }
   }
   return (0x00);
 }