Script Function: Q4TQ

From Ultima Online: The Second Age
Jump to: navigation, search
 function string Q4TQ(obj this, obj talker)
 {
   int Q563;
   int Q65M;
   obj Q46X;
   int Q54T;
   string Q46Y;
   string Q4XO;
   loc place;
   obj Q4WD;
   string Q4WI;
   int Q45N;
   loc Q5M7;
   string Q5N7;
   string Q496;
   list Q5N8;
   int Q4QK;
   Q563 = getIntelligence(this) / 0x0A;
   Q4QK = getHint(this, Q563, Q65M, Q46X, Q54T, Q46Y, Q4XO, place, Q4WD, Q4WI, Q45N);
   if ((Q4WD == this) || (Q4WD == talker))
   {
     Q4QK = 0x00;
   }
   if (!Q4QK)
   {
     Q5N8 = "I have not heard any interesting tales lately.", "I can't tell thee much that thou dost not already know.", "I haven't heard much news that would be of interest to thee.", "I haven't heard much lately.", ",I can't tell thee much. I haven't heard anything interest ing.", "No rumors of note are circulating.", "'Tis a pity, but gossip is scarce these days.", "I have heard no rumors lately.", "The rumor mill seemeth to have taken a break lately, methinks.", "Life is dull, methinks, for I have not heard interesting rumors of late.";
     if (Q563 < 0x04)
     {
       Q5N8 = "I's not heard much lately.", "Has ye heard about the donkey accident?", "Ain't no good gossip hereabouts.", "No stories worth tellin' these days.", "Ho-hum.", "I ain't been hearin' nothin'.", "I ain't been party to no gossip lately.", "I's heard nothing that'd interest thee, I assure ye.", "I 'aven't 'eard nothin' interestin'.", "I haven't picked up anythin' new.";
     }
     if (Q563 > 0x06)
     {
       Q5N8 = "'Tis a failing of mine, but I follow the rumors of the common folk. " "None seem interesting of late, however.", "Quite a shame, but I have not heard any interesting tales of late.", "No tales of folly or woe, nor indeed any of powerful magical artifacts, have " "reached mine ears in the last few days.", "While petty gossip is a fault, surely restrained rumormongering is not!", "Alas, no rumors bear repeating these days.", "One could wish for a livelier life, with more tales to tell.", "I cannot tell thee much, I fear. No tales of interest have crossed my path.", "No new gossip has reached mine ears, to my great regret.", "Knowing thy elevated tastes, I fear that nothing I can tell thee would be of interest.", "New rumors have been slow in coming of late. I regret that I have none to pass along to thee!";
     }
     Q5N7 = Q5N8[random(0x00, (numInList(Q5N8) - 0x01))];
     return (Q5N7);
   }
   string Q60S;
   string Q612;
   Q5N8 = "Rumor has it that ", "According to tales, ", "I have heard that ", "Thou didst not hear this from me, but ", "Hast thou heard that ", "Some say that ", "According to some, ", "'Tis bandied about that ", "The word is, ", "The word is that ", "'Tis rumored that ", "'Tis said that ", "Gossip has it that ", "Tongues are wagging! They say that ", "All that rumormongerers can think about is that ", "All I hear of these days is that ", "They are saying that ";
   Q5N7 = Q5N8[random(0x00, 0x10)];
   if (Q4WI == "")
   {
     if (random(0x00, 0x09) > Q563)
     {
       Q5N7 = Q5N7 + Q46Y;
     }
     else
     {
       Q5N7 = Q5N7 + Q4XO;
     }
     Q496 = Q496 + " is ";
   }
   else
   {
     Q5N7 = Q5N7 + Q4WI;
     Q5N7 = Q5N7 + " has ";
     if (random(0x00, 0x09) > Q563)
     {
       Q5N7 = Q5N7 + Q46Y;
     }
     else
     {
       Q5N7 = Q5N7 + Q4XO;
     }
     Q5N7 = Q5N7 + " and " + getHeShe(Q4WD);
   }
   string Q5Z4;
   int Q4QO = getLocalizedDesc(Q496, Q5M7, place, getLocation(this));
   if (Q4QO > 0x00)
   {
     if ((Q4QO == 0x02) || (Q4QO == 0x04))
     {
       Q5Z4 = Q5Z4 + " here";
     }
     Q5Z4 = Q5Z4 + " in";
     Q5Z4 = Q5Z4 + Q496;
     if (Q4QO == 0x03)
     {
       place = Q5M7;
     }
   }
   Q5N7 = Q5N7 + " ";
   loc Q4VS = getLocation(this);
   string Q4ID = getDirection(Q4VS, place);
   clearList(Q5N8);
   Q5N8 = "may be about. ", "can be found. ", "might be nearby. ", "could be around. ", "is somewhere close. ", "is nearby. ", "might be found close by. ", "may be somewhere close. ";
   Q496 = Q5N8[random(0x00, (numInList(Q5N8) - 0x01))];
   clearList(Q5N8);
   Q5N8 = "Look thee", "Hast thou looked", "Thou mightest look", "Hast thou checked", "I wonder if any have looked", "Possibly", "Perchance 'tis";
   string Q4TT = Q5N8[random(0x00, (numInList(Q5N8) - 0x01))];
   if (Q5Z4 != "")
   {
     Q5N7 = Q5N7 + " ";
     Q5N7 = Q5N7 + Q5Z4;
     Q5N7 = Q5N7 + ",";
   }
   Q5N7 = Q5N7 + Q496 + Q4TT + " " + Q4ID + "?";
   return (Q5N7);
 }