Difference between revisions of "Script Function: Q5TJ"
From Ultima Online: The Second Age
(Created page with " <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q5TJ(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">obj</span> s...") |
|||
Line 940: | Line 940: | ||
<span style="color:#0000FF">return</span> (0x00); | <span style="color:#0000FF">return</span> (0x00); | ||
} | } | ||
+ | <span style="color:#0000FF">string</span> Q5ZZ = Q463; | ||
+ | <span style="color:#0000FF">string</span> Q44N = <span style="color:#800000">"I can teach thee, for a fee. For "</span> + Q5ZZ + <span style="color:#800000">" gold coins, I can teach thee all I know. For less, I shall teach thee less."</span>; | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, Q44N); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](this, <span style="color:#800000">"trainerSkillToTeach"</span>, Q5TI); | ||
+ | [[Engine Function:_setObjVar|<span style="color:#FF0000;font-weight:bold">setObjVar</span>]](speaker, <span style="color:#800000">"trainingSkillToLearn"</span>, Q5TI); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | |||
+ | <span style="color:#0000FF">function</span> <span style="color:#0000FF">int</span> Q5TJ(<span style="color:#0000FF">obj</span> this, <span style="color:#0000FF">obj</span> speaker, <span style="color:#0000FF">string</span> arg) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (![[Script_Function:_Q4J8|<span style="color:#2B91AF">Q4J8</span>]](this, speaker, arg)) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x01); | ||
+ | } | ||
+ | <span style="color:#0000FF">list</span> Q619; | ||
+ | [[Engine Function:_split|<span style="color:#FF0000;font-weight:bold">split</span>]](Q619, arg); | ||
+ | <span style="color:#0000FF">int</span> Q4QI = 0x00; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"train"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"training"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"teach"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"teaching"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"learn"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"learning"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"practice"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, <span style="color:#800000">"practicing"</span>)) | ||
+ | { | ||
+ | Q4QI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (!Q4QI) | ||
+ | { | ||
+ | <span style="color:#0000FF">return</span> (0x01); | ||
+ | } | ||
+ | <span style="color:#0000FF">int</span> Q4QQ = 0x00; | ||
+ | <span style="color:#0000FF">list</span> Q5TH = <span style="color:#800000">"parrying"</span>, <span style="color:#800000">"parry"</span>, <span style="color:#800000">"battle"</span>, <span style="color:#800000">"defense"</span>, <span style="color:#800000">"first"</span>, <span style="color:#800000">"aid"</span>, <span style="color:#800000">"heal"</span>, <span style="color:#800000">"healing"</span>, <span style="color:#800000">"medicine"</span>, <span style="color:#800000">"[[hide|<span style="color:#2B91AF">hide</span>]]"</span>, <span style="color:#800000">"hiding"</span>, <span style="color:#800000">"steal"</span>, <span style="color:#800000">"stealing"</span>, <span style="color:#800000">"alchemy"</span>, <span style="color:#800000">"anatomy"</span>, <span style="color:#800000">"animal"</span>, <span style="color:#800000">"lore"</span>, <span style="color:#800000">"appraise"</span>, <span style="color:#800000">"item"</span>, <span style="color:#800000">"identification"</span>, <span style="color:#800000">"identify"</span>, <span style="color:#800000">"armslore"</span>, <span style="color:#800000">"arms"</span>, <span style="color:#800000">"beg"</span>, <span style="color:#800000">"begging"</span>, <span style="color:#800000">"blacksmith"</span>, <span style="color:#800000">"smith"</span>, <span style="color:#800000">"blacksmithy"</span>, <span style="color:#800000">"smithing"</span>, <span style="color:#800000">"blacksmithing"</span>, <span style="color:#800000">"bowyer"</span>, <span style="color:#800000">"bow"</span>, <span style="color:#800000">"arrow"</span>, <span style="color:#800000">"fletcher"</span>, <span style="color:#800000">"bowcraft"</span>, <span style="color:#800000">"fletching"</span>, <span style="color:#800000">"calm"</span>, <span style="color:#800000">"peace"</span>, <span style="color:#800000">"peacemaking"</span>, <span style="color:#800000">"camp"</span>, <span style="color:#800000">"camping"</span>, <span style="color:#800000">"carpentry"</span>, <span style="color:#800000">"woodwork"</span>, <span style="color:#800000">"woodworking"</span>, <span style="color:#800000">"cartography"</span>, <span style="color:#800000">"map"</span>, <span style="color:#800000">"mapmaking"</span>, <span style="color:#800000">"cooking"</span>, <span style="color:#800000">"cook"</span>, <span style="color:#800000">"detect"</span>, <span style="color:#800000">"hidden"</span>, <span style="color:#800000">"entice"</span>, <span style="color:#800000">"enticement"</span>, <span style="color:#800000">"enticing"</span>, <span style="color:#800000">"evaluate"</span>, <span style="color:#800000">"intelligence"</span>, <span style="color:#800000">"evaluating"</span>, <span style="color:#800000">"fish"</span>, <span style="color:#800000">"fishing"</span>, <span style="color:#800000">"incite"</span>, <span style="color:#800000">"provoke"</span>, <span style="color:#800000">"provoking"</span>, <span style="color:#800000">"provocation"</span>, <span style="color:#800000">"lockpicking"</span>, <span style="color:#800000">"lock"</span>, <span style="color:#800000">"pick"</span>, <span style="color:#800000">"picking"</span>, <span style="color:#800000">"locks"</span>, <span style="color:#800000">"magic"</span>, <span style="color:#800000">"magery"</span>, <span style="color:#800000">"sorcery"</span>, <span style="color:#800000">"wizardry"</span>, <span style="color:#800000">"mage"</span>, <span style="color:#800000">"resist"</span>, <span style="color:#800000">"resisting"</span>, <span style="color:#800000">"spells"</span>, <span style="color:#800000">"battle"</span>, <span style="color:#800000">"tactic"</span>, <span style="color:#800000">"tactics"</span>, <span style="color:#800000">"fight"</span>, <span style="color:#800000">"fighting"</span>, <span style="color:#800000">"peek"</span>, <span style="color:#800000">"peeking"</span>, <span style="color:#800000">"snoop"</span>, <span style="color:#800000">"snooping"</span>, <span style="color:#800000">"play"</span>, <span style="color:#800000">"instrument"</span>, <span style="color:#800000">"playing"</span>, <span style="color:#800000">"musician"</span>, <span style="color:#800000">"musicianship"</span>, <span style="color:#800000">"poisoning"</span>, <span style="color:#800000">"poison"</span>, <span style="color:#800000">"ranged"</span>, <span style="color:#800000">"missile"</span>, <span style="color:#800000">"missiles"</span>, <span style="color:#800000">"shoot"</span>, <span style="color:#800000">"shooting"</span>, <span style="color:#800000">"archery"</span>, <span style="color:#800000">"archer"</span>, <span style="color:#800000">"spirit"</span>, <span style="color:#800000">"ghost"</span>, <span style="color:#800000">"seance"</span>, <span style="color:#800000">"spiritualism"</span>, <span style="color:#800000">"tailoring"</span>, <span style="color:#800000">"tailor"</span>, <span style="color:#800000">"clothier"</span>, <span style="color:#800000">"tame"</span>, <span style="color:#800000">"animal"</span>, <span style="color:#800000">"animals"</span>, <span style="color:#800000">"taming"</span>, <span style="color:#800000">"taste"</span>, <span style="color:#800000">"tasting"</span>, <span style="color:#800000">"tinker"</span>, <span style="color:#800000">"tinkering"</span>, <span style="color:#800000">"vet"</span>, <span style="color:#800000">"veterinarian"</span>, <span style="color:#800000">"forensic"</span>, <span style="color:#800000">"forensics"</span>, <span style="color:#800000">"herd"</span>, <span style="color:#800000">"herding"</span>, <span style="color:#800000">"tracking"</span>, <span style="color:#800000">"track"</span>, <span style="color:#800000">"hunt"</span>, <span style="color:#800000">"hunting"</span>, <span style="color:#800000">"inscribe"</span>, <span style="color:#800000">"scroll"</span>, <span style="color:#800000">"inscribing"</span>, <span style="color:#800000">"inscription"</span>, <span style="color:#800000">"sword"</span>, <span style="color:#800000">"swords"</span>, <span style="color:#800000">"blade"</span>, <span style="color:#800000">"blades"</span>, <span style="color:#800000">"swordsman"</span>, <span style="color:#800000">"swordsmanship"</span>, <span style="color:#800000">"club"</span>, <span style="color:#800000">"clubs"</span>, <span style="color:#800000">"mace"</span>, <span style="color:#800000">"maces"</span>, <span style="color:#800000">"dagger"</span>, <span style="color:#800000">"daggers"</span>, <span style="color:#800000">"fence"</span>, <span style="color:#800000">"fencing"</span>, <span style="color:#800000">"hand"</span>, <span style="color:#800000">"wrestle"</span>, <span style="color:#800000">"wrestling"</span>; | ||
+ | <span style="color:#0000FF">string</span> Q5Z4; | ||
+ | <span style="color:#0000FF">string</span> Q60Z; | ||
+ | for(<span style="color:#0000FF">int</span> i = 0x00; i < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5TH); i++) | ||
+ | { | ||
+ | Q5Z4 = Q5TH[i]; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_isInList|<span style="color:#FF0000;font-weight:bold">isInList</span>]](Q619, Q5Z4)) | ||
+ | { | ||
+ | Q4QQ = 0x01; | ||
+ | Q60Z = Q5Z4; | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (!Q4QQ) | ||
+ | { | ||
+ | <span style="color:#0000FF">list</span> Q56X; | ||
+ | Q56X = <span style="color:#800000">"If thy desire is to learn, thou must say what thou wishest to learn."</span>, <span style="color:#800000">"I cannot teach thee if thou dost not name what to learn!"</span>, <span style="color:#800000">"Without the name of a skill, 'tis difficult for me to teach thee."</span>, <span style="color:#800000">"If thou namest a skill or ability, perhaps I can aid thee."</span>, <span style="color:#800000">"If thou art desirous of practice in a craft or skill, name it when thou askest for aid."</span>; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getIntelligence|<span style="color:#FF0000;font-weight:bold">getIntelligence</span>]](this) > 0x46) | ||
+ | { | ||
+ | Q56X = <span style="color:#800000">"'Tis a noble endeavor to seek to improve thyself. Perhaps if thou couldst name the particular skill thou seekest to improve?"</span>, <span style="color:#800000">"If thou failest to name what thou desirest me to teach, I cannot fulfill thy desire!"</span>, <span style="color:#800000">"'Tis a difficult task to instruct thee in mine arts, if thou dost not specify which of said arts thou seekest to master."</span>, <span style="color:#800000">"If thou wouldst name the skill when thou askest, I could, perchance, aid thee."</span>, <span style="color:#800000">"I presume that thou art on a quest to locate teachers of some ability. If this is indeed thy desire, name the skill as part of thy inquiry."</span>; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getIntelligence|<span style="color:#FF0000;font-weight:bold">getIntelligence</span>]](this) < 0x23) | ||
+ | { | ||
+ | Q56X = <span style="color:#800000">"I dunno what thou wishest to learn."</span>, <span style="color:#800000">"If thou dost not tell me what thou'rt wantin' to learn, well..."</span>, <span style="color:#800000">"'Tis hard to teach thee without the name of the skill."</span>, <span style="color:#800000">"I mebbe could help thee, methinks, if thou namest what thou'rt wishin' to learn."</span>, <span style="color:#800000">"If thou wantest to learn a skill, thou needest name it when thou'rt askin'."</span>; | ||
+ | } | ||
+ | <span style="color:#0000FF">string</span> Q60K = Q56X<nowiki>[</nowiki>[[Engine Function:_random|<span style="color:#FF0000;font-weight:bold">random</span>]](0x00, 0x04)]; | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, Q60K); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | <span style="color:#0000FF">list</span> Q5TC; | ||
+ | <span style="color:#0000FF">string</span> Q59Z = <span style="color:#800000">"I can teach thee of "</span>; | ||
+ | <span style="color:#0000FF">if</span> (0x00) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"All known skill slots..."</span>); | ||
+ | } | ||
+ | for(<span style="color:#0000FF">int</span> Q65G = 0x00; Q65G < (0x2E - 0x01); Q65G++) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (0x00) | ||
+ | { | ||
+ | <span style="color:#0000FF">string</span> Q49A = Q65G; | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](this, Q65G) > 0x01) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Have slot #"</span> + Q49A); | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">else</span> | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](this, Q65G) > [[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](speaker, Q65G)) | ||
+ | { | ||
+ | [[Engine Function:_appendToList|<span style="color:#FF0000;font-weight:bold">appendToList</span>]](Q5TC, Q65G); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5TC) == 0x00) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Alas, I cannot teach thee anything."</span>); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | for(Q65G = 0x00; Q65G < [[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5TC); Q65G++) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (Q65G != 0x00) | ||
+ | { | ||
+ | Q59Z = Q59Z + <span style="color:#800000">", "</span>; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q65G == ([[Engine Function:_numInList|<span style="color:#FF0000;font-weight:bold">numInList</span>]](Q5TC) - 0x01)) | ||
+ | { | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"and "</span>; | ||
+ | } | ||
+ | <span style="color:#0000FF">switch</span> (Q5TC[Q65G]) | ||
+ | { | ||
+ | <span style="color:#0000FF">case</span> 0x00 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"alchemy"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x01 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"anatomy"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x02 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"animal lore"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x03 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"appraising and identifying items"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x04 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"arms lore"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x05 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"parrying attacks"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x06 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"begging"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x07 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"blacksmithing"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x08 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"the making of bows and fletching of arrows"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x09 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"peacemaking"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0A | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"camping in the wilderness"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0B | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"carpentry"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0C | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"cartography and the making of maps"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0D | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"cooking"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0E | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"detecting hidden people"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x0F | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"enticing folk with music"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x10 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"evaluating people's intelligence"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x11 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"basic healing"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x12 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"fishing"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x13 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"forensic evaluation"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x14 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"herding animals"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x15 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"hiding in plain sight"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x16 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"provoking anger and causing fights"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x17 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"inscribing scrolls and books"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x18 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"picking locks"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x19 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"magery"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1A | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"resisting magic spells"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1B | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"battle tactics"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1C | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"snooping in backpacks"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1D | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"musicianship"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1E | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"the deadly art of poisoning"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x1F | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"archery"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x20 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"spirit talking"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x21 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"stealing"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x22 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"tailoring"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x23 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"taming wild animals"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x24 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"food tasting"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x25 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"tinkering"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x26 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"tracking"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x27 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"veterinary healing"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x28 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"swordsmanship"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x29 | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"clubs and maces"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2A | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"fencing and daggers"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">case</span> 0x2B | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"hand to hand combat and wrestling"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | <span style="color:#0000FF">default</span> | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"idle chattering"</span>; | ||
+ | <span style="color:#0000FF">break</span>; | ||
+ | } | ||
+ | } | ||
+ | Q59Z = Q59Z + <span style="color:#800000">"."</span>; | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, Q59Z); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | <span style="color:#0000FF">int</span> Q5TI = 0xFF; | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"battle"</span>) | ||
+ | { | ||
+ | Q5TI = 0x05; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"defense"</span>) | ||
+ | { | ||
+ | Q5TI = 0x05; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"parry"</span>) | ||
+ | { | ||
+ | Q5TI = 0x05; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"parrying"</span>) | ||
+ | { | ||
+ | Q5TI = 0x05; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"first"</span>) | ||
+ | { | ||
+ | Q5TI = 0x11; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"aid"</span>) | ||
+ | { | ||
+ | Q5TI = 0x11; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"heal"</span>) | ||
+ | { | ||
+ | Q5TI = 0x11; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"healing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x11; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"medicine"</span>) | ||
+ | { | ||
+ | Q5TI = 0x11; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"[[hide|<span style="color:#2B91AF">hide</span>]]"</span>) | ||
+ | { | ||
+ | Q5TI = 0x15; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"hiding"</span>) | ||
+ | { | ||
+ | Q5TI = 0x15; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"steal"</span>) | ||
+ | { | ||
+ | Q5TI = 0x21; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"stealing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x21; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"alchemy"</span>) | ||
+ | { | ||
+ | Q5TI = 0x00; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"anatomy"</span>) | ||
+ | { | ||
+ | Q5TI = 0x01; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"animal"</span>) | ||
+ | { | ||
+ | Q5TI = 0x02; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"lore"</span>) | ||
+ | { | ||
+ | Q5TI = 0x02; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"appraise"</span>) | ||
+ | { | ||
+ | Q5TI = 0x03; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"identify"</span>) | ||
+ | { | ||
+ | Q5TI = 0x03; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"identification"</span>) | ||
+ | { | ||
+ | Q5TI = 0x03; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"item"</span>) | ||
+ | { | ||
+ | Q5TI = 0x03; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"armslore"</span>) | ||
+ | { | ||
+ | Q5TI = 0x04; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"arms"</span>) | ||
+ | { | ||
+ | Q5TI = 0x04; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"beg"</span>) | ||
+ | { | ||
+ | Q5TI = 0x06; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"begging"</span>) | ||
+ | { | ||
+ | Q5TI = 0x06; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"blacksmith"</span>) | ||
+ | { | ||
+ | Q5TI = 0x07; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"blacksmithy"</span>) | ||
+ | { | ||
+ | Q5TI = 0x07; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"blacksmithing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x07; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"smith"</span>) | ||
+ | { | ||
+ | Q5TI = 0x07; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"smithing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x07; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"bowyer"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"bowcraft"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"bow"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"arrow"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fletcher"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fletching"</span>) | ||
+ | { | ||
+ | Q5TI = 0x08; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"calm"</span>) | ||
+ | { | ||
+ | Q5TI = 0x09; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"peace"</span>) | ||
+ | { | ||
+ | Q5TI = 0x09; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"peacemaking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x09; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"camp"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"camping"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"carpentry"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"woodwork"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"woodworking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"cartography"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"map"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"mapmaking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"cooking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"cook"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"detect"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0E; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"detecting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0E; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"hidden"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0E; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"entice"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"enticement"</span>) | ||
+ | { | ||
+ | Q5TI = 0x0F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"evaluate"</span>) | ||
+ | { | ||
+ | Q5TI = 0x10; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"evaluating"</span>) | ||
+ | { | ||
+ | Q5TI = 0x10; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"intelligence"</span>) | ||
+ | { | ||
+ | Q5TI = 0x10; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fish"</span>) | ||
+ | { | ||
+ | Q5TI = 0x12; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fishing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x12; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"incite"</span>) | ||
+ | { | ||
+ | Q5TI = 0x16; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"provoke"</span>) | ||
+ | { | ||
+ | Q5TI = 0x16; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"provoking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x16; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"provocation"</span>) | ||
+ | { | ||
+ | Q5TI = 0x16; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"lockpicking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x18; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"lock"</span>) | ||
+ | { | ||
+ | Q5TI = 0x18; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"pick"</span>) | ||
+ | { | ||
+ | Q5TI = 0x18; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"picking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x18; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"locks"</span>) | ||
+ | { | ||
+ | Q5TI = 0x18; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"magic"</span>) | ||
+ | { | ||
+ | Q5TI = 0x19; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"magery"</span>) | ||
+ | { | ||
+ | Q5TI = 0x19; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"mage"</span>) | ||
+ | { | ||
+ | Q5TI = 0x19; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"sorcery"</span>) | ||
+ | { | ||
+ | Q5TI = 0x19; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"wizardry"</span>) | ||
+ | { | ||
+ | Q5TI = 0x19; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"resist"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"resisting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"spells"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"battle"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tactic"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tactics"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fighting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fight"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"peek"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"peeking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"snooping"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"snoop"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1C; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"play"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"playing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"instrument"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"musician"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"musicianship"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1D; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"poisoning"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1E; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"poison"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1E; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"ranged"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"missile"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"missiles"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"shoot"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"shooting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"archery"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"archer"</span>) | ||
+ | { | ||
+ | Q5TI = 0x1F; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"spirit"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"ghost"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"ghosts"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"seance"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"spiritualism"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"spiritualism"</span>) | ||
+ | { | ||
+ | Q5TI = 0x20; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tailoring"</span>) | ||
+ | { | ||
+ | Q5TI = 0x22; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tailor"</span>) | ||
+ | { | ||
+ | Q5TI = 0x22; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"clothier"</span>) | ||
+ | { | ||
+ | Q5TI = 0x22; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tame"</span>) | ||
+ | { | ||
+ | Q5TI = 0x23; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"taming"</span>) | ||
+ | { | ||
+ | Q5TI = 0x23; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"animal"</span>) | ||
+ | { | ||
+ | Q5TI = 0x23; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"animals"</span>) | ||
+ | { | ||
+ | Q5TI = 0x23; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"taste"</span>) | ||
+ | { | ||
+ | Q5TI = 0x24; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tasting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x24; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tinker"</span>) | ||
+ | { | ||
+ | Q5TI = 0x25; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tinkering"</span>) | ||
+ | { | ||
+ | Q5TI = 0x25; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"vet"</span>) | ||
+ | { | ||
+ | Q5TI = 0x27; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"veterinarian"</span>) | ||
+ | { | ||
+ | Q5TI = 0x27; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"veterinary"</span>) | ||
+ | { | ||
+ | Q5TI = 0x27; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"forensic"</span>) | ||
+ | { | ||
+ | Q5TI = 0x13; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"forensics"</span>) | ||
+ | { | ||
+ | Q5TI = 0x13; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"herd"</span>) | ||
+ | { | ||
+ | Q5TI = 0x14; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"herding"</span>) | ||
+ | { | ||
+ | Q5TI = 0x14; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"track"</span>) | ||
+ | { | ||
+ | Q5TI = 0x26; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"tracking"</span>) | ||
+ | { | ||
+ | Q5TI = 0x26; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"hunt"</span>) | ||
+ | { | ||
+ | Q5TI = 0x26; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"hunting"</span>) | ||
+ | { | ||
+ | Q5TI = 0x26; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"inscribe"</span>) | ||
+ | { | ||
+ | Q5TI = 0x17; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"scroll"</span>) | ||
+ | { | ||
+ | Q5TI = 0x17; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"inscribing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x17; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"inscription"</span>) | ||
+ | { | ||
+ | Q5TI = 0x17; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"sword"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"swords"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"blade"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"blades"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"swordsman"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"swordsmanship"</span>) | ||
+ | { | ||
+ | Q5TI = 0x28; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"club"</span>) | ||
+ | { | ||
+ | Q5TI = 0x29; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"clubs"</span>) | ||
+ | { | ||
+ | Q5TI = 0x29; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"mace"</span>) | ||
+ | { | ||
+ | Q5TI = 0x29; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"maces"</span>) | ||
+ | { | ||
+ | Q5TI = 0x29; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"dagger"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"daggers"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fence"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"fencing"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2A; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"hand"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"wrestle"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q60Z == <span style="color:#800000">"wrestling"</span>) | ||
+ | { | ||
+ | Q5TI = 0x2B; | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> (Q5TI == 0xFF) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (0x00) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"Somehow I recognized a skill keyword but didn't see it the second time I checked..."</span>); | ||
+ | } | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](this, Q5TI) < 0x0A) | ||
+ | { | ||
+ | <span style="color:#0000FF">if</span> (0x00) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, Q60Z); | ||
+ | } | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"'Tis not something I can teach thee of."</span>); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | <span style="color:#0000FF">if</span> ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](this, Q5TI) < [[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](speaker, Q5TI)) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"I cannot teach thee, for thou knowest more than I!"</span>); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | <span style="color:#0000FF">int</span> Q463 = ([[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](this, Q5TI) - [[Engine Function:_getSkillLevel|<span style="color:#FF0000;font-weight:bold">getSkillLevel</span>]](speaker, Q5TI)); | ||
+ | <span style="color:#0000FF">if</span> (Q463 < 0x01) | ||
+ | { | ||
+ | [[Engine Function:_bark|<span style="color:#FF0000;font-weight:bold">bark</span>]](this, <span style="color:#800000">"I cannot teach thee, for thou knowest all I can teach!"</span>); | ||
+ | [[Script_Function:_Q4J9|<span style="color:#2B91AF">Q4J9</span>]](this); | ||
+ | <span style="color:#0000FF">return</span> (0x00); | ||
+ | } | ||
+ | Q463 = Q463 * 0x0A; | ||
<span style="color:#0000FF">string</span> Q5ZZ = Q463; | <span style="color:#0000FF">string</span> Q5ZZ = Q463; | ||
<span style="color:#0000FF">string</span> Q44N = <span style="color:#800000">"I can teach thee, for a fee. For "</span> + Q5ZZ + <span style="color:#800000">" gold coins, I can teach thee all I know. For less, I shall teach thee less."</span>; | <span style="color:#0000FF">string</span> Q44N = <span style="color:#800000">"I can teach thee, for a fee. For "</span> + Q5ZZ + <span style="color:#800000">" gold coins, I can teach thee all I know. For less, I shall teach thee less."</span>; |
Revision as of 03:52, 12 October 2018
function int Q5TJ(obj this, obj speaker, string arg) { if (!Q4J8(this, speaker, arg)) { return (0x01); } list Q619; split(Q619, arg); int Q4QI = 0x00; if (isInList(Q619, "train")) { Q4QI = 0x01; } if (isInList(Q619, "training")) { Q4QI = 0x01; } if (isInList(Q619, "teach")) { Q4QI = 0x01; } if (isInList(Q619, "teaching")) { Q4QI = 0x01; } if (isInList(Q619, "learn")) { Q4QI = 0x01; } if (isInList(Q619, "learning")) { Q4QI = 0x01; } if (isInList(Q619, "practice")) { Q4QI = 0x01; } if (isInList(Q619, "practicing")) { Q4QI = 0x01; } if (!Q4QI) { return (0x01); } if (isGuard(this)) { bark(this, "I am too busy to teach thee."); return (0x01); } if (hasObjListVar(this, "myBoss")) { bark(this, "I do not train whilst I am working."); return (0x01); } int Q4QQ = 0x00; list Q5TH = "parrying", "parry", "battle", "defense", "first", "aid", "heal", "healing", "medicine", "hide", "hiding", "steal", "stealing", "alchemy", "anatomy", "animal", "lore", "appraising", "identifying", "appraise", "item", "identification", "identify", "armslore", "arms", "beg", "begging", "blacksmith", "smith", "blacksmithy", "smithing", "blacksmithing", "bowyer", "bow", "arrow", "fletcher", "bowcraft", "fletching", "calm", "peace", "peacemaking", "camp", "camping", "carpentry", "woodwork", "woodworking", "cartography", "map", "mapmaking", "cooking", "cook", "detect", "hidden", "entice", "enticement", "enticing", "evaluate", "intelligence", "evaluating", "fish", "fishing", "incite", "provoke", "provoking", "provocation", "lockpicking", "lock", "pick", "picking", "locks", "magic", "magery", "sorcery", "wizardry", "mage", "resist", "resisting", "spells", "battle", "tactic", "tactics", "fight", "fighting", "peek", "peeking", "snoop", "snooping", "play", "instrument", "playing", "musician", "musicianship", "poisoning", "poison", "ranged", "missile", "missiles", "shoot", "shooting", "archery", "archer", "spirit", "ghost", "seance", "spiritualism", "tailoring", "tailor", "clothier", "tame", "taming", "taste", "tasting", "tinker", "tinkering", "vet", "veterinarian", "forensic", "forensics", "herd", "herding", "tracking", "track", "hunt", "hunting", "inscribe", "scroll", "inscribing", "inscription", "sword", "swords", "blade", "blades", "swordsman", "swordsmanship", "club", "clubs", "mace", "maces", "dagger", "daggers", "fence", "fencing", "hand", "wrestle", "wrestling" "lumberjack", "lumberjacking", "woodcutting", "mining", "mine", "smelt"; string Q5Z4; string Q60Z; for(int i = 0x00; i < numInList(Q5TH); i++) { Q5Z4 = Q5TH[i]; if (isInList(Q619, Q5Z4)) { Q4QQ = 0x01; Q60Z = Q5Z4; } } if (!Q4QQ) { list Q56X; Q56X = "If thy desire is to learn, thou must say what thou wishest to learn.", "I cannot teach thee if thou dost not name what to learn!", "Without the name of a skill, 'tis difficult for me to teach thee.", "If thou namest a skill or ability, perhaps I can aid thee.", "If thou art desirous of practice in a craft or skill, name it when thou askest for aid."; if (getIntelligence(this) > 0x46) { Q56X = "'Tis a noble endeavor to seek to improve thyself. Perhaps if thou couldst name the particular skill thou seekest to improve?", "If thou failest to name what thou desirest me to teach, I cannot fulfill thy desire!", "'Tis a difficult task to instruct thee in mine arts, if thou dost not specify which of said arts thou seekest to master.", "If thou wouldst name the skill when thou askest, I could, perchance, aid thee.", "I presume that thou art on a quest to locate teachers of some ability. If this is indeed thy desire, name the skill as part of thy inquiry."; } if (getIntelligence(this) < 0x23) { Q56X = "I dunno what thou wishest to learn.", "If thou dost not tell me what thou'rt wantin' to learn, well...", "'Tis hard to teach thee without the name of the skill.", "I mebbe could help thee, methinks, if thou namest what thou'rt wishin' to learn.", "If thou wantest to learn a skill, thou needest name it when thou'rt askin'."; } string Q60K = Q56X[random(0x00, 0x04)]; bark(this, Q60K); Q4J9(this); list Q5TC; list Q5TA; int Q5E9 = 0x00; string Q59Z = "I can teach thee of "; if (0x00) { bark(this, "All known skill slots..."); } for(int Q65G = 0x00; Q65G < (0x2E - 0x01); Q65G++) { if (0x00) { string Q49A = Q65G; if (getSkillLevelNoStat(this, Q65G) > 0x01) { bark(this, "Have slot #" + Q49A); } } int Q59Y = getSkillLevelNoStat(this, Q65G); if (Q59Y > (getSkillLevelNoStat(speaker, Q65G) * 0x03)) { if (Q5E9 < 0x05) { appendToList(Q5TC, Q65G); appendToList(Q5TA, Q59Y); Q5E9++; } else { int Q543 = 0x00; for(int Q5TB = 0x01; Q5TB < 0x05; Q5TB++) { if ((Q5TA[Q5TB]) < (Q5TA[Q543])) { Q543 = Q5TB; } } if ((Q5TA[Q543]) < Q59Y) { setItem(Q5TC, Q65G, Q543); setItem(Q5TA, Q59Y, Q543); } } } } if (Q5E9 == 0x00) { bark(this, "Alas, I cannot teach thee anything."); Q4J9(this); return (0x00); } for(Q65G = 0x00; Q65G < Q5E9; Q65G++) { if (Q65G != 0x00) { Q59Z = Q59Z + ", "; } if (Q65G == (Q5E9 - 0x01)) { Q59Z = Q59Z + "and "; } switch (Q5TC[Q65G]) { case 0x00 Q59Z = Q59Z + "alchemy"; break; case 0x01 Q59Z = Q59Z + "anatomy"; break; case 0x02 Q59Z = Q59Z + "animal lore"; break; case 0x03 Q59Z = Q59Z + "appraising and identifying items"; break; case 0x04 Q59Z = Q59Z + "arms lore"; break; case 0x05 Q59Z = Q59Z + "parrying attacks"; break; case 0x06 Q59Z = Q59Z + "begging"; break; case 0x07 Q59Z = Q59Z + "blacksmithing"; break; case 0x08 Q59Z = Q59Z + "the making of bows and fletching of arrows"; break; case 0x09 Q59Z = Q59Z + "peacemaking"; break; case 0x0A Q59Z = Q59Z + "camping in the wilderness"; break; case 0x0B Q59Z = Q59Z + "carpentry"; break; case 0x0C Q59Z = Q59Z + "cartography and the making of maps"; break; case 0x0D Q59Z = Q59Z + "cooking"; break; case 0x0E Q59Z = Q59Z + "detecting hidden people"; break; case 0x0F Q59Z = Q59Z + "enticing folk with music"; break; case 0x10 Q59Z = Q59Z + "evaluating people's intelligence"; break; case 0x11 Q59Z = Q59Z + "basic healing"; break; case 0x12 Q59Z = Q59Z + "fishing"; break; case 0x13 Q59Z = Q59Z + "forensic evaluation"; break; case 0x14 Q59Z = Q59Z + "herding animals"; break; case 0x15 Q59Z = Q59Z + "hiding in plain sight"; break; case 0x16 Q59Z = Q59Z + "provoking anger and causing fights"; break; case 0x17 Q59Z = Q59Z + "inscribing scrolls and books"; break; case 0x18 Q59Z = Q59Z + "picking locks"; break; case 0x19 Q59Z = Q59Z + "magery"; break; case 0x1A Q59Z = Q59Z + "resisting magic spells"; break; case 0x1B Q59Z = Q59Z + "battle tactics"; break; case 0x1C Q59Z = Q59Z + "snooping in backpacks"; break; case 0x1D Q59Z = Q59Z + "musicianship"; break; case 0x1E Q59Z = Q59Z + "the deadly art of poisoning"; break; case 0x1F Q59Z = Q59Z + "archery"; break; case 0x20 Q59Z = Q59Z + "spirit talking"; break; case 0x21 Q59Z = Q59Z + "stealing"; break; case 0x22 Q59Z = Q59Z + "tailoring"; break; case 0x23 Q59Z = Q59Z + "taming wild animals"; break; case 0x24 Q59Z = Q59Z + "food tasting"; break; case 0x25 Q59Z = Q59Z + "tinkering"; break; case 0x26 Q59Z = Q59Z + "tracking"; break; case 0x27 Q59Z = Q59Z + "veterinary healing"; break; case 0x28 Q59Z = Q59Z + "swordsmanship"; break; case 0x29 Q59Z = Q59Z + "clubs and maces"; break; case 0x2A Q59Z = Q59Z + "fencing and daggers"; break; case 0x2B Q59Z = Q59Z + "hand to hand combat and wrestling"; break; case 0x2C Q59Z = Q59Z + "lumberjacking"; break; case 0x2D Q59Z = Q59Z + "mining"; break; default Q59Z = Q59Z + "idle chattering"; break; } } Q59Z = Q59Z + "."; bark(this, Q59Z); return (0x00); } int Q5TI = 0xFF; if (Q60Z == "battle") { Q5TI = 0x05; } if (Q60Z == "defense") { Q5TI = 0x05; } if (Q60Z == "parry") { Q5TI = 0x05; } if (Q60Z == "parrying") { Q5TI = 0x05; } if (Q60Z == "first") { Q5TI = 0x11; } if (Q60Z == "aid") { Q5TI = 0x11; } if (Q60Z == "heal") { Q5TI = 0x11; } if (Q60Z == "healing") { Q5TI = 0x11; } if (Q60Z == "medicine") { Q5TI = 0x11; } if (Q60Z == "hide") { Q5TI = 0x15; } if (Q60Z == "hiding") { Q5TI = 0x15; } if (Q60Z == "steal") { Q5TI = 0x21; } if (Q60Z == "stealing") { Q5TI = 0x21; } if (Q60Z == "alchemy") { Q5TI = 0x00; } if (Q60Z == "anatomy") { Q5TI = 0x01; } if (Q60Z == "animal") { Q5TI = 0x02; } if (Q60Z == "lore") { Q5TI = 0x02; } if (Q60Z == "appraising") { Q5TI = 0x03; } if (Q60Z == "identifying") { Q5TI = 0x03; } if (Q60Z == "appraise") { Q5TI = 0x03; } if (Q60Z == "identify") { Q5TI = 0x03; } if (Q60Z == "identification") { Q5TI = 0x03; } if (Q60Z == "item") { Q5TI = 0x03; } if (Q60Z == "armslore") { Q5TI = 0x04; } if (Q60Z == "arms") { Q5TI = 0x04; } if (Q60Z == "beg") { Q5TI = 0x06; } if (Q60Z == "begging") { Q5TI = 0x06; } if (Q60Z == "blacksmith") { Q5TI = 0x07; } if (Q60Z == "blacksmithy") { Q5TI = 0x07; } if (Q60Z == "blacksmithing") { Q5TI = 0x07; } if (Q60Z == "smith") { Q5TI = 0x07; } if (Q60Z == "smithing") { Q5TI = 0x07; } if (Q60Z == "bowyer") { Q5TI = 0x08; } if (Q60Z == "bowcraft") { Q5TI = 0x08; } if (Q60Z == "bow") { Q5TI = 0x08; } if (Q60Z == "arrow") { Q5TI = 0x08; } if (Q60Z == "fletcher") { Q5TI = 0x08; } if (Q60Z == "fletching") { Q5TI = 0x08; } if (Q60Z == "calm") { Q5TI = 0x09; } if (Q60Z == "peace") { Q5TI = 0x09; } if (Q60Z == "peacemaking") { Q5TI = 0x09; } if (Q60Z == "camp") { Q5TI = 0x0A; } if (Q60Z == "camping") { Q5TI = 0x0A; } if (Q60Z == "carpentry") { Q5TI = 0x0B; } if (Q60Z == "woodwork") { Q5TI = 0x0B; } if (Q60Z == "woodworking") { Q5TI = 0x0B; } if (Q60Z == "cartography") { Q5TI = 0x0C; } if (Q60Z == "map") { Q5TI = 0x0C; } if (Q60Z == "mapmaking") { Q5TI = 0x0C; } if (Q60Z == "cooking") { Q5TI = 0x0D; } if (Q60Z == "cook") { Q5TI = 0x0D; } if (Q60Z == "detect") { Q5TI = 0x0E; } if (Q60Z == "detecting") { Q5TI = 0x0E; } if (Q60Z == "hidden") { Q5TI = 0x0E; } if (Q60Z == "entice") { Q5TI = 0x0F; } if (Q60Z == "enticement") { Q5TI = 0x0F; } if (Q60Z == "evaluate") { Q5TI = 0x10; } if (Q60Z == "evaluating") { Q5TI = 0x10; } if (Q60Z == "intelligence") { Q5TI = 0x10; } if (Q60Z == "fish") { Q5TI = 0x12; } if (Q60Z == "fishing") { Q5TI = 0x12; } if (Q60Z == "incite") { Q5TI = 0x16; } if (Q60Z == "provoke") { Q5TI = 0x16; } if (Q60Z == "provoking") { Q5TI = 0x16; } if (Q60Z == "provocation") { Q5TI = 0x16; } if (Q60Z == "lockpicking") { Q5TI = 0x18; } if (Q60Z == "lock") { Q5TI = 0x18; } if (Q60Z == "pick") { Q5TI = 0x18; } if (Q60Z == "picking") { Q5TI = 0x18; } if (Q60Z == "locks") { Q5TI = 0x18; } if (Q60Z == "magic") { Q5TI = 0x19; } if (Q60Z == "magery") { Q5TI = 0x19; } if (Q60Z == "mage") { Q5TI = 0x19; } if (Q60Z == "sorcery") { Q5TI = 0x19; } if (Q60Z == "wizardry") { Q5TI = 0x19; } if (Q60Z == "resist") { Q5TI = 0x1A; } if (Q60Z == "resisting") { Q5TI = 0x1A; } if (Q60Z == "spells") { Q5TI = 0x1A; } if (Q60Z == "battle") { Q5TI = 0x1B; } if (Q60Z == "tactic") { Q5TI = 0x1B; } if (Q60Z == "tactics") { Q5TI = 0x1B; } if (Q60Z == "fighting") { Q5TI = 0x1B; } if (Q60Z == "fight") { Q5TI = 0x1B; } if (Q60Z == "peek") { Q5TI = 0x1C; } if (Q60Z == "peeking") { Q5TI = 0x1C; } if (Q60Z == "snooping") { Q5TI = 0x1C; } if (Q60Z == "snoop") { Q5TI = 0x1C; } if (Q60Z == "play") { Q5TI = 0x1D; } if (Q60Z == "playing") { Q5TI = 0x1D; } if (Q60Z == "instrument") { Q5TI = 0x1D; } if (Q60Z == "musician") { Q5TI = 0x1D; } if (Q60Z == "musicianship") { Q5TI = 0x1D; } if (Q60Z == "poisoning") { Q5TI = 0x1E; } if (Q60Z == "poison") { Q5TI = 0x1E; } if (Q60Z == "ranged") { Q5TI = 0x1F; } if (Q60Z == "missile") { Q5TI = 0x1F; } if (Q60Z == "missiles") { Q5TI = 0x1F; } if (Q60Z == "shoot") { Q5TI = 0x1F; } if (Q60Z == "shooting") { Q5TI = 0x1F; } if (Q60Z == "archery") { Q5TI = 0x1F; } if (Q60Z == "archer") { Q5TI = 0x1F; } if (Q60Z == "spirit") { Q5TI = 0x20; } if (Q60Z == "ghost") { Q5TI = 0x20; } if (Q60Z == "ghosts") { Q5TI = 0x20; } if (Q60Z == "seance") { Q5TI = 0x20; } if (Q60Z == "spiritualism") { Q5TI = 0x20; } if (Q60Z == "spiritualism") { Q5TI = 0x20; } if (Q60Z == "tailoring") { Q5TI = 0x22; } if (Q60Z == "tailor") { Q5TI = 0x22; } if (Q60Z == "clothier") { Q5TI = 0x22; } if (Q60Z == "tame") { Q5TI = 0x23; } if (Q60Z == "taming") { Q5TI = 0x23; } if (Q60Z == "taste") { Q5TI = 0x24; } if (Q60Z == "tasting") { Q5TI = 0x24; } if (Q60Z == "tinker") { Q5TI = 0x25; } if (Q60Z == "tinkering") { Q5TI = 0x25; } if (Q60Z == "vet") { Q5TI = 0x27; } if (Q60Z == "veterinarian") { Q5TI = 0x27; } if (Q60Z == "veterinary") { Q5TI = 0x27; } if (Q60Z == "forensic") { Q5TI = 0x13; } if (Q60Z == "forensics") { Q5TI = 0x13; } if (Q60Z == "herd") { Q5TI = 0x14; } if (Q60Z == "herding") { Q5TI = 0x14; } if (Q60Z == "track") { Q5TI = 0x26; } if (Q60Z == "tracking") { Q5TI = 0x26; } if (Q60Z == "hunt") { Q5TI = 0x26; } if (Q60Z == "hunting") { Q5TI = 0x26; } if (Q60Z == "inscribe") { Q5TI = 0x17; } if (Q60Z == "scroll") { Q5TI = 0x17; } if (Q60Z == "inscribing") { Q5TI = 0x17; } if (Q60Z == "inscription") { Q5TI = 0x17; } if (Q60Z == "sword") { Q5TI = 0x28; } if (Q60Z == "swords") { Q5TI = 0x28; } if (Q60Z == "blade") { Q5TI = 0x28; } if (Q60Z == "blades") { Q5TI = 0x28; } if (Q60Z == "swordsman") { Q5TI = 0x28; } if (Q60Z == "swordsmanship") { Q5TI = 0x28; } if (Q60Z == "club") { Q5TI = 0x29; } if (Q60Z == "clubs") { Q5TI = 0x29; } if (Q60Z == "mace") { Q5TI = 0x29; } if (Q60Z == "maces") { Q5TI = 0x29; } if (Q60Z == "dagger") { Q5TI = 0x2A; } if (Q60Z == "daggers") { Q5TI = 0x2A; } if (Q60Z == "fence") { Q5TI = 0x2A; } if (Q60Z == "fencing") { Q5TI = 0x2A; } if (Q60Z == "hand") { Q5TI = 0x2B; } if (Q60Z == "wrestle") { Q5TI = 0x2B; } if (Q60Z == "wrestling") { Q5TI = 0x2B; } if (Q60Z == "lumberjack") { Q5TI = 0x2C; } if (Q60Z == "lumberjacking") { Q5TI = 0x2C; } if (Q60Z == "woodcutting") { Q5TI = 0x2C; } if (Q60Z == "mining") { Q5TI = 0x2D; } if (Q60Z == "mine") { Q5TI = 0x2D; } if (Q60Z == "smelt") { Q5TI = 0x2D; } if (Q5TI == 0xFF) { if (0x00) { bark(this, "Somehow I recognized a skill keyword but didn't see it the second time I checked..."); } return (0x00); } if (getSkillLevelNoStat(this, Q5TI) < 0x64) { if (0x00) { bark(this, Q60Z); } bark(this, "'Tis not something I can teach thee of."); Q4J9(this); return (0x00); } if (getSkillLevelNoStat(this, Q5TI) < getSkillLevelNoStat(speaker, Q5TI)) { bark(this, "I cannot teach thee, for thou knowest more than I!"); Q4J9(this); return (0x00); } int Q463 = (getSkillLevelNoStat(this, Q5TI) / 0x03) - getSkillLevelNoStat(speaker, Q5TI); if (Q463 < 0x0B) { bark(this, "I cannot teach thee, for thou knowest all I can teach!"); Q4J9(this); return (0x00); } string Q5ZZ = Q463; string Q44N = "I can teach thee, for a fee. For " + Q5ZZ + " gold coins, I can teach thee all I know. For less, I shall teach thee less."; bark(this, Q44N); Q4J9(this); setObjVar(this, "trainerSkillToTeach", Q5TI); setObjVar(speaker, "trainingSkillToLearn", Q5TI); return (0x00); }
function int Q5TJ(obj this, obj speaker, string arg) { if (!Q4J8(this, speaker, arg)) { return (0x01); } list Q619; split(Q619, arg); int Q4QI = 0x00; if (isInList(Q619, "train")) { Q4QI = 0x01; } if (isInList(Q619, "training")) { Q4QI = 0x01; } if (isInList(Q619, "teach")) { Q4QI = 0x01; } if (isInList(Q619, "teaching")) { Q4QI = 0x01; } if (isInList(Q619, "learn")) { Q4QI = 0x01; } if (isInList(Q619, "learning")) { Q4QI = 0x01; } if (isInList(Q619, "practice")) { Q4QI = 0x01; } if (isInList(Q619, "practicing")) { Q4QI = 0x01; } if (!Q4QI) { return (0x01); } int Q4QQ = 0x00; list Q5TH = "parrying", "parry", "battle", "defense", "first", "aid", "heal", "healing", "medicine", "hide", "hiding", "steal", "stealing", "alchemy", "anatomy", "animal", "lore", "appraise", "item", "identification", "identify", "armslore", "arms", "beg", "begging", "blacksmith", "smith", "blacksmithy", "smithing", "blacksmithing", "bowyer", "bow", "arrow", "fletcher", "bowcraft", "fletching", "calm", "peace", "peacemaking", "camp", "camping", "carpentry", "woodwork", "woodworking", "cartography", "map", "mapmaking", "cooking", "cook", "detect", "hidden", "entice", "enticement", "enticing", "evaluate", "intelligence", "evaluating", "fish", "fishing", "incite", "provoke", "provoking", "provocation", "lockpicking", "lock", "pick", "picking", "locks", "magic", "magery", "sorcery", "wizardry", "mage", "resist", "resisting", "spells", "battle", "tactic", "tactics", "fight", "fighting", "peek", "peeking", "snoop", "snooping", "play", "instrument", "playing", "musician", "musicianship", "poisoning", "poison", "ranged", "missile", "missiles", "shoot", "shooting", "archery", "archer", "spirit", "ghost", "seance", "spiritualism", "tailoring", "tailor", "clothier", "tame", "animal", "animals", "taming", "taste", "tasting", "tinker", "tinkering", "vet", "veterinarian", "forensic", "forensics", "herd", "herding", "tracking", "track", "hunt", "hunting", "inscribe", "scroll", "inscribing", "inscription", "sword", "swords", "blade", "blades", "swordsman", "swordsmanship", "club", "clubs", "mace", "maces", "dagger", "daggers", "fence", "fencing", "hand", "wrestle", "wrestling"; string Q5Z4; string Q60Z; for(int i = 0x00; i < numInList(Q5TH); i++) { Q5Z4 = Q5TH[i]; if (isInList(Q619, Q5Z4)) { Q4QQ = 0x01; Q60Z = Q5Z4; } } if (!Q4QQ) { list Q56X; Q56X = "If thy desire is to learn, thou must say what thou wishest to learn.", "I cannot teach thee if thou dost not name what to learn!", "Without the name of a skill, 'tis difficult for me to teach thee.", "If thou namest a skill or ability, perhaps I can aid thee.", "If thou art desirous of practice in a craft or skill, name it when thou askest for aid."; if (getIntelligence(this) > 0x46) { Q56X = "'Tis a noble endeavor to seek to improve thyself. Perhaps if thou couldst name the particular skill thou seekest to improve?", "If thou failest to name what thou desirest me to teach, I cannot fulfill thy desire!", "'Tis a difficult task to instruct thee in mine arts, if thou dost not specify which of said arts thou seekest to master.", "If thou wouldst name the skill when thou askest, I could, perchance, aid thee.", "I presume that thou art on a quest to locate teachers of some ability. If this is indeed thy desire, name the skill as part of thy inquiry."; } if (getIntelligence(this) < 0x23) { Q56X = "I dunno what thou wishest to learn.", "If thou dost not tell me what thou'rt wantin' to learn, well...", "'Tis hard to teach thee without the name of the skill.", "I mebbe could help thee, methinks, if thou namest what thou'rt wishin' to learn.", "If thou wantest to learn a skill, thou needest name it when thou'rt askin'."; } string Q60K = Q56X[random(0x00, 0x04)]; bark(this, Q60K); Q4J9(this); list Q5TC; string Q59Z = "I can teach thee of "; if (0x00) { bark(this, "All known skill slots..."); } for(int Q65G = 0x00; Q65G < (0x2E - 0x01); Q65G++) { if (0x00) { string Q49A = Q65G; if (getSkillLevel(this, Q65G) > 0x01) { bark(this, "Have slot #" + Q49A); } } else { if (getSkillLevel(this, Q65G) > getSkillLevel(speaker, Q65G)) { appendToList(Q5TC, Q65G); } } } if (numInList(Q5TC) == 0x00) { bark(this, "Alas, I cannot teach thee anything."); Q4J9(this); return (0x00); } for(Q65G = 0x00; Q65G < numInList(Q5TC); Q65G++) { if (Q65G != 0x00) { Q59Z = Q59Z + ", "; } if (Q65G == (numInList(Q5TC) - 0x01)) { Q59Z = Q59Z + "and "; } switch (Q5TC[Q65G]) { case 0x00 Q59Z = Q59Z + "alchemy"; break; case 0x01 Q59Z = Q59Z + "anatomy"; break; case 0x02 Q59Z = Q59Z + "animal lore"; break; case 0x03 Q59Z = Q59Z + "appraising and identifying items"; break; case 0x04 Q59Z = Q59Z + "arms lore"; break; case 0x05 Q59Z = Q59Z + "parrying attacks"; break; case 0x06 Q59Z = Q59Z + "begging"; break; case 0x07 Q59Z = Q59Z + "blacksmithing"; break; case 0x08 Q59Z = Q59Z + "the making of bows and fletching of arrows"; break; case 0x09 Q59Z = Q59Z + "peacemaking"; break; case 0x0A Q59Z = Q59Z + "camping in the wilderness"; break; case 0x0B Q59Z = Q59Z + "carpentry"; break; case 0x0C Q59Z = Q59Z + "cartography and the making of maps"; break; case 0x0D Q59Z = Q59Z + "cooking"; break; case 0x0E Q59Z = Q59Z + "detecting hidden people"; break; case 0x0F Q59Z = Q59Z + "enticing folk with music"; break; case 0x10 Q59Z = Q59Z + "evaluating people's intelligence"; break; case 0x11 Q59Z = Q59Z + "basic healing"; break; case 0x12 Q59Z = Q59Z + "fishing"; break; case 0x13 Q59Z = Q59Z + "forensic evaluation"; break; case 0x14 Q59Z = Q59Z + "herding animals"; break; case 0x15 Q59Z = Q59Z + "hiding in plain sight"; break; case 0x16 Q59Z = Q59Z + "provoking anger and causing fights"; break; case 0x17 Q59Z = Q59Z + "inscribing scrolls and books"; break; case 0x18 Q59Z = Q59Z + "picking locks"; break; case 0x19 Q59Z = Q59Z + "magery"; break; case 0x1A Q59Z = Q59Z + "resisting magic spells"; break; case 0x1B Q59Z = Q59Z + "battle tactics"; break; case 0x1C Q59Z = Q59Z + "snooping in backpacks"; break; case 0x1D Q59Z = Q59Z + "musicianship"; break; case 0x1E Q59Z = Q59Z + "the deadly art of poisoning"; break; case 0x1F Q59Z = Q59Z + "archery"; break; case 0x20 Q59Z = Q59Z + "spirit talking"; break; case 0x21 Q59Z = Q59Z + "stealing"; break; case 0x22 Q59Z = Q59Z + "tailoring"; break; case 0x23 Q59Z = Q59Z + "taming wild animals"; break; case 0x24 Q59Z = Q59Z + "food tasting"; break; case 0x25 Q59Z = Q59Z + "tinkering"; break; case 0x26 Q59Z = Q59Z + "tracking"; break; case 0x27 Q59Z = Q59Z + "veterinary healing"; break; case 0x28 Q59Z = Q59Z + "swordsmanship"; break; case 0x29 Q59Z = Q59Z + "clubs and maces"; break; case 0x2A Q59Z = Q59Z + "fencing and daggers"; break; case 0x2B Q59Z = Q59Z + "hand to hand combat and wrestling"; break; default Q59Z = Q59Z + "idle chattering"; break; } } Q59Z = Q59Z + "."; bark(this, Q59Z); return (0x00); } int Q5TI = 0xFF; if (Q60Z == "battle") { Q5TI = 0x05; } if (Q60Z == "defense") { Q5TI = 0x05; } if (Q60Z == "parry") { Q5TI = 0x05; } if (Q60Z == "parrying") { Q5TI = 0x05; } if (Q60Z == "first") { Q5TI = 0x11; } if (Q60Z == "aid") { Q5TI = 0x11; } if (Q60Z == "heal") { Q5TI = 0x11; } if (Q60Z == "healing") { Q5TI = 0x11; } if (Q60Z == "medicine") { Q5TI = 0x11; } if (Q60Z == "hide") { Q5TI = 0x15; } if (Q60Z == "hiding") { Q5TI = 0x15; } if (Q60Z == "steal") { Q5TI = 0x21; } if (Q60Z == "stealing") { Q5TI = 0x21; } if (Q60Z == "alchemy") { Q5TI = 0x00; } if (Q60Z == "anatomy") { Q5TI = 0x01; } if (Q60Z == "animal") { Q5TI = 0x02; } if (Q60Z == "lore") { Q5TI = 0x02; } if (Q60Z == "appraise") { Q5TI = 0x03; } if (Q60Z == "identify") { Q5TI = 0x03; } if (Q60Z == "identification") { Q5TI = 0x03; } if (Q60Z == "item") { Q5TI = 0x03; } if (Q60Z == "armslore") { Q5TI = 0x04; } if (Q60Z == "arms") { Q5TI = 0x04; } if (Q60Z == "beg") { Q5TI = 0x06; } if (Q60Z == "begging") { Q5TI = 0x06; } if (Q60Z == "blacksmith") { Q5TI = 0x07; } if (Q60Z == "blacksmithy") { Q5TI = 0x07; } if (Q60Z == "blacksmithing") { Q5TI = 0x07; } if (Q60Z == "smith") { Q5TI = 0x07; } if (Q60Z == "smithing") { Q5TI = 0x07; } if (Q60Z == "bowyer") { Q5TI = 0x08; } if (Q60Z == "bowcraft") { Q5TI = 0x08; } if (Q60Z == "bow") { Q5TI = 0x08; } if (Q60Z == "arrow") { Q5TI = 0x08; } if (Q60Z == "fletcher") { Q5TI = 0x08; } if (Q60Z == "fletching") { Q5TI = 0x08; } if (Q60Z == "calm") { Q5TI = 0x09; } if (Q60Z == "peace") { Q5TI = 0x09; } if (Q60Z == "peacemaking") { Q5TI = 0x09; } if (Q60Z == "camp") { Q5TI = 0x0A; } if (Q60Z == "camping") { Q5TI = 0x0A; } if (Q60Z == "carpentry") { Q5TI = 0x0B; } if (Q60Z == "woodwork") { Q5TI = 0x0B; } if (Q60Z == "woodworking") { Q5TI = 0x0B; } if (Q60Z == "cartography") { Q5TI = 0x0C; } if (Q60Z == "map") { Q5TI = 0x0C; } if (Q60Z == "mapmaking") { Q5TI = 0x0C; } if (Q60Z == "cooking") { Q5TI = 0x0D; } if (Q60Z == "cook") { Q5TI = 0x0D; } if (Q60Z == "detect") { Q5TI = 0x0E; } if (Q60Z == "detecting") { Q5TI = 0x0E; } if (Q60Z == "hidden") { Q5TI = 0x0E; } if (Q60Z == "entice") { Q5TI = 0x0F; } if (Q60Z == "enticement") { Q5TI = 0x0F; } if (Q60Z == "evaluate") { Q5TI = 0x10; } if (Q60Z == "evaluating") { Q5TI = 0x10; } if (Q60Z == "intelligence") { Q5TI = 0x10; } if (Q60Z == "fish") { Q5TI = 0x12; } if (Q60Z == "fishing") { Q5TI = 0x12; } if (Q60Z == "incite") { Q5TI = 0x16; } if (Q60Z == "provoke") { Q5TI = 0x16; } if (Q60Z == "provoking") { Q5TI = 0x16; } if (Q60Z == "provocation") { Q5TI = 0x16; } if (Q60Z == "lockpicking") { Q5TI = 0x18; } if (Q60Z == "lock") { Q5TI = 0x18; } if (Q60Z == "pick") { Q5TI = 0x18; } if (Q60Z == "picking") { Q5TI = 0x18; } if (Q60Z == "locks") { Q5TI = 0x18; } if (Q60Z == "magic") { Q5TI = 0x19; } if (Q60Z == "magery") { Q5TI = 0x19; } if (Q60Z == "mage") { Q5TI = 0x19; } if (Q60Z == "sorcery") { Q5TI = 0x19; } if (Q60Z == "wizardry") { Q5TI = 0x19; } if (Q60Z == "resist") { Q5TI = 0x1A; } if (Q60Z == "resisting") { Q5TI = 0x1A; } if (Q60Z == "spells") { Q5TI = 0x1A; } if (Q60Z == "battle") { Q5TI = 0x1B; } if (Q60Z == "tactic") { Q5TI = 0x1B; } if (Q60Z == "tactics") { Q5TI = 0x1B; } if (Q60Z == "fighting") { Q5TI = 0x1B; } if (Q60Z == "fight") { Q5TI = 0x1B; } if (Q60Z == "peek") { Q5TI = 0x1C; } if (Q60Z == "peeking") { Q5TI = 0x1C; } if (Q60Z == "snooping") { Q5TI = 0x1C; } if (Q60Z == "snoop") { Q5TI = 0x1C; } if (Q60Z == "play") { Q5TI = 0x1D; } if (Q60Z == "playing") { Q5TI = 0x1D; } if (Q60Z == "instrument") { Q5TI = 0x1D; } if (Q60Z == "musician") { Q5TI = 0x1D; } if (Q60Z == "musicianship") { Q5TI = 0x1D; } if (Q60Z == "poisoning") { Q5TI = 0x1E; } if (Q60Z == "poison") { Q5TI = 0x1E; } if (Q60Z == "ranged") { Q5TI = 0x1F; } if (Q60Z == "missile") { Q5TI = 0x1F; } if (Q60Z == "missiles") { Q5TI = 0x1F; } if (Q60Z == "shoot") { Q5TI = 0x1F; } if (Q60Z == "shooting") { Q5TI = 0x1F; } if (Q60Z == "archery") { Q5TI = 0x1F; } if (Q60Z == "archer") { Q5TI = 0x1F; } if (Q60Z == "spirit") { Q5TI = 0x20; } if (Q60Z == "ghost") { Q5TI = 0x20; } if (Q60Z == "ghosts") { Q5TI = 0x20; } if (Q60Z == "seance") { Q5TI = 0x20; } if (Q60Z == "spiritualism") { Q5TI = 0x20; } if (Q60Z == "spiritualism") { Q5TI = 0x20; } if (Q60Z == "tailoring") { Q5TI = 0x22; } if (Q60Z == "tailor") { Q5TI = 0x22; } if (Q60Z == "clothier") { Q5TI = 0x22; } if (Q60Z == "tame") { Q5TI = 0x23; } if (Q60Z == "taming") { Q5TI = 0x23; } if (Q60Z == "animal") { Q5TI = 0x23; } if (Q60Z == "animals") { Q5TI = 0x23; } if (Q60Z == "taste") { Q5TI = 0x24; } if (Q60Z == "tasting") { Q5TI = 0x24; } if (Q60Z == "tinker") { Q5TI = 0x25; } if (Q60Z == "tinkering") { Q5TI = 0x25; } if (Q60Z == "vet") { Q5TI = 0x27; } if (Q60Z == "veterinarian") { Q5TI = 0x27; } if (Q60Z == "veterinary") { Q5TI = 0x27; } if (Q60Z == "forensic") { Q5TI = 0x13; } if (Q60Z == "forensics") { Q5TI = 0x13; } if (Q60Z == "herd") { Q5TI = 0x14; } if (Q60Z == "herding") { Q5TI = 0x14; } if (Q60Z == "track") { Q5TI = 0x26; } if (Q60Z == "tracking") { Q5TI = 0x26; } if (Q60Z == "hunt") { Q5TI = 0x26; } if (Q60Z == "hunting") { Q5TI = 0x26; } if (Q60Z == "inscribe") { Q5TI = 0x17; } if (Q60Z == "scroll") { Q5TI = 0x17; } if (Q60Z == "inscribing") { Q5TI = 0x17; } if (Q60Z == "inscription") { Q5TI = 0x17; } if (Q60Z == "sword") { Q5TI = 0x28; } if (Q60Z == "swords") { Q5TI = 0x28; } if (Q60Z == "blade") { Q5TI = 0x28; } if (Q60Z == "blades") { Q5TI = 0x28; } if (Q60Z == "swordsman") { Q5TI = 0x28; } if (Q60Z == "swordsmanship") { Q5TI = 0x28; } if (Q60Z == "club") { Q5TI = 0x29; } if (Q60Z == "clubs") { Q5TI = 0x29; } if (Q60Z == "mace") { Q5TI = 0x29; } if (Q60Z == "maces") { Q5TI = 0x29; } if (Q60Z == "dagger") { Q5TI = 0x2A; } if (Q60Z == "daggers") { Q5TI = 0x2A; } if (Q60Z == "fence") { Q5TI = 0x2A; } if (Q60Z == "fencing") { Q5TI = 0x2A; } if (Q60Z == "hand") { Q5TI = 0x2B; } if (Q60Z == "wrestle") { Q5TI = 0x2B; } if (Q60Z == "wrestling") { Q5TI = 0x2B; } if (Q5TI == 0xFF) { if (0x00) { bark(this, "Somehow I recognized a skill keyword but didn't see it the second time I checked..."); } return (0x00); } if (getSkillLevel(this, Q5TI) < 0x0A) { if (0x00) { bark(this, Q60Z); } bark(this, "'Tis not something I can teach thee of."); Q4J9(this); return (0x00); } if (getSkillLevel(this, Q5TI) < getSkillLevel(speaker, Q5TI)) { bark(this, "I cannot teach thee, for thou knowest more than I!"); Q4J9(this); return (0x00); } int Q463 = (getSkillLevel(this, Q5TI) - getSkillLevel(speaker, Q5TI)); if (Q463 < 0x01) { bark(this, "I cannot teach thee, for thou knowest all I can teach!"); Q4J9(this); return (0x00); } Q463 = Q463 * 0x0A; string Q5ZZ = Q463; string Q44N = "I can teach thee, for a fee. For " + Q5ZZ + " gold coins, I can teach thee all I know. For less, I shall teach thee less."; bark(this, Q44N); Q4J9(this); setObjVar(this, "trainerSkillToTeach", Q5TI); setObjVar(speaker, "trainingSkillToLearn", Q5TI); return (0x00); }