-- Ingame contextual help ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -----------------------Here comes the definition of help----------------------- ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- ingame_help { ["callback"] = "monster_chat", ["desc"] = { "Somebody is speaking to you it seems. You can talk back with the Y key.", "This can lead to quests. You can also give items to 'monsters' with the y key.", } } ingame_help { ["no_test"] = TRUE, ["callback"] = "select_context", ["fct"] = function(typ, name) -- list of files for classes, { filename, anchor } local t = { ["race"] = { ["Beorning"] = { "r_beorn.txt", 0 }, ["Dragon"] = { "r_dragon.txt", 0 }, ["Dark-Elf"] = { "r_drkelf.txt", 0 }, ["Dunadan"] = { "r_dunad.txt", 0 }, ["Dwarf"] = { "r_dwarf.txt", 0 }, ["Elf"] = { "r_elf.txt", 0 }, ["Ent"] = { "r_ent.txt", 0 }, ["Gnome"] = { "r_gnome.txt", 0 }, ["Half-Elf"] = { "r_hafelf.txt", 0 }, ["Half-Ogre"] = { "r_hafogr.txt", 0 }, ["High-Elf"] = { "r_hielf.txt", 0 }, ["Hobbit"] = { "r_hobbit.txt", 0 }, ["Human"] = { "r_human.txt", 0 }, ["Druadan"] = { "r_druadan.txt", 0 }, ["Maia"] = { "r_maia.txt", 0 }, ["Orc"] = { "r_orc.txt", 0 }, ["Petty-Dwarf"] = { "r_pettyd.txt", 0 }, ["RohanKnight"] = { "r_rohank.txt", 0 }, ["Eagle"] = { "r_eagle.txt", 0 }, ["Troll"] = { "r_troll.txt", 0 }, ["Wood-Elf"] = { "r_wodelf.txt", 0 }, ["Yeek"] = { "r_yeek.txt", 0 }, ["Easterling"] = { "r_easterl.txt", 0 }, ["Demon"] = { "r_demon.txt", 0}, }, ["subrace"] = { ["Barbarian"] = { "rm_barb.txt", 0 }, ["Classical"] = { "rm_class.txt", 0 }, ["Corrupted"] = { "rm_corru.txt", 0 }, ["Hermit"] = { "rm_herm.txt", 0 }, ["LostSoul"] = { "rm_lsoul.txt", 0 }, ["Skeleton"] = { "rm_skel.txt", 0 }, ["Spectre"] = { "rm_spec.txt", 0 }, ["Vampire"] = { "rm_vamp.txt", 0 }, ["Zombie"] = { "rm_zomb.txt", 0 }, ["Red"] = {"rm_red.txt", 0 }, ["Black"] = {"rm_black.txt", 0 }, ["Green"] = {"rm_green.txt", 0 }, ["Blue"] = {"rm_blue.txt", 0 }, ["White"] = {"rm_white.txt", 0 }, ["Ethereal"] = {"rm_ether.txt", 0 }, ["(Narrog)"] = {"rm_narrog.txt", 0 }, ["(Aewrog)"] = {"rm_aewrog.txt", 0 }, ["(Hurog)"] = {"rm_hurog.txt", 0 }, ["(Sarnrog)"] = {"rm_sarnrog.txt", 0 }, ["(Caborrog)"] = {"rm_cabrog.txt", 0 }, ["(Draugrog)"] = {"rm_drarog.txt", 0 }, ["(Lygrog)"] = {"rm_lygrog.txt", 0 }, ["(Limrog)"] = {"rm_limrog.txt", 0 }, ["(Rawrog)"] = {"rm_rawrog.txt", 0 }, ["(Adanrog)"] = {"rm_adanrog.txt", 0 }, }, ["class"] = { ["Archer"] = { "c_archer.txt", 0 }, ["Ascetic"] = { "c_ascet.txt", 0 }, ["Assassin"] = { "c_assass.txt", 0 }, ["Axemaster"] = { "c_axemas.txt", 0 }, ["Bard"] = { "c_bard.txt", 0 }, ["Clairvoyant"] = {"c_clairv.txt", 0}, ["Dark-Priest"] = { "c_pr_drk.txt", 0 }, ["Demonologist"] = { "c_demono.txt", 0 }, ["Druid"] = { "c_druid.txt", 0 }, ["Geomancer"] = { "c_geoman.txt", 0 }, ["Haftedmaster"] = { "c_hafted.txt", 0 }, ["Loremaster"] = { "c_lorema.txt", 0 }, ["Mage"] = { "c_mage.txt", 0 }, ["Mercenary"] = { "c_mercen.txt", 0 }, ["Mimic"] = { "c_mimic.txt", 0 }, ["Mindcrafter"] = { "c_mindcr.txt", 0 }, ["Monk"] = { "c_monk.txt", 0 }, ["Necromancer"] = { "c_necro.txt", 0 }, ["Pacifist"] = { "c_pacif.txt", 0 }, ["Paladin"] = { "c_palad.txt", 0 }, ["Peace-mage"] = { "c_peacemag.txt", 0 }, ["Polearmmaster"] = { "c_polear.txt", 0 }, ["Possessor"] = { "c_posses.txt", 0 }, ["Priest"] = { "c_priest.txt", 0 }, ["Priest(Eru)"] = { "c_pr_eru.txt", 0 }, ["Priest(Mandos)"] = { "c_pr_mand.txt", 0 }, ["Priest(Manwe)"] = { "c_pr_man.txt", 0 }, ["Priest(Ulmo)"] = { "c_pr_ulmo.txt", 0 }, ["Priest(Varda)"] = { "c_pr_varda.txt", 0 }, ["Ranger"] = { "c_ranger.txt", 0 }, ["Rogue"] = { "c_rogue.txt", 0 }, ["Runecrafter"] = { "c_runecr.txt", 0 }, ["Sniper"] = {"c_sniper.txt", 0 }, ["Sorceror"] = { "c_sorcer.txt", 0 }, ["Stonewright"] = { "c_stonewr.txt", 0 }, ["Summoner"] = { "c_summon.txt", 0 }, ["Swordmaster"] = { "c_swordm.txt", 0 }, ["Symbiant"] = { "c_symbia.txt", 0 }, ["Thaumaturgist"] = { "c_thaum.txt", 0 }, ["Trapper"] = { "c_trapper.txt", 0 }, ["Unbeliever"] = { "c_unbel.txt", 0 }, ["Wainrider"] = { "c_wainrid.txt", 0 }, ["War-mage"] = { "c_warmage.txt", 0 }, ["Warper"] = { "c_warper.txt", 0 }, ["Warrior"] = { "c_warrio.txt", 0 }, }, ["god"] = { ["Aule the Smith"] = { "g_aule.txt", 0 }, ["Eru Iluvatar"] = { "g_eru.txt", 0 }, ["Mandos"] = { "g_mandos.txt", 0 }, ["Manwe Sulimo"] = { "g_manwe.txt", 0 }, ["Melkor Bauglir"] = { "g_melkor.txt", 0 }, ["Tulkas"] = { "g_tulkas.txt", 0 }, ["Ulmo"] = { "g_ulmo.txt", 0 }, ["Varda Elentari"] = { "g_varda.txt", 0 }, ["Yavanna Kementari"] = { "g_yavann.txt", 0 }, }, ["skill"] = { ["Air"] = { "skills.txt", 27 }, ["Alchemy"] = { "skills.txt", 49 }, ["Antimagic"] = { "skills.txt", 50 }, ["Archery"] = { "skills.txt", 08 }, ["Axe-mastery"] = { "skills.txt", 05 }, ["Backstab"] = { "skills.txt", 18 }, ["Barehand-combat"] = { "skills.txt", 13 }, ["Boomerang-mastery"] = { "skills.txt", 12 }, ["Boulder-throwing"] = { "skills.txt", 58 }, ["Bow-mastery"] = { "skills.txt", 10 }, ["Combat"] = { "skills.txt", 01 }, ["Conveyance"] = { "skills.txt", 30 }, ["Corpse-preservation"] = { "skills.txt", 44 }, ["Critical-hits"] = { "skills.txt", 04 }, ["Crossbow-mastery"] = { "skills.txt", 11 }, ["Demonology"] = { "skills.txt", 52 }, ["Disarming"] = { "skills.txt", 16 }, ["Divination"] = { "skills.txt", 31 }, ["Dodging"] = { "skills.txt", 20 }, ["Druidistic"] = { "skills.txt", 40 }, ["Earth"] = { "skills.txt", 28 }, ["Fire"] = { "skills.txt", 25 }, ["Geomancy"] = { "skills.txt", 60 }, ["Hafted-mastery"] = { "skills.txt", 06 }, ["Magic"] = { "skills.txt", 21 }, ["Magic-Device"] = { "skills.txt", 54 }, ["Mana"] = { "skills.txt", 24 }, ["Meta"] = { "skills.txt", 29 }, ["Mimicry"] = { "skills.txt", 47 }, ["Mind"] = { "skills.txt", 33 }, ["Mindcraft"] = { "skills.txt", 41 }, ["Monster-lore"] = { "skills.txt", 42 }, ["Music"] = { "skills.txt", 59 }, ["Nature"] = { "skills.txt", 34 }, ["Necromancy"] = { "skills.txt", 35 }, ["Polearm-mastery"] = { "skills.txt", 07 }, ["Possession"] = { "skills.txt", 45 }, ["Prayer"] = { "skills.txt", 39 }, ["Runecraft"] = { "skills.txt", 36 }, ["Sling-mastery"] = { "skills.txt", 09 }, ["Sneakiness"] = { "skills.txt", 14 }, ["Spell-power"] = { "skills.txt", 22 }, ["Spirituality"] = { "skills.txt", 38 }, ["Sorcery"] = { "skills.txt", 23 }, ["Stealing"] = { "skills.txt", 19 }, ["Stealth"] = { "skills.txt", 15 }, ["Stunning-blows"] = { "skills.txt", 53 }, ["Summoning"] = { "skills.txt", 43 }, ["Sword-mastery"] = { "skills.txt", 03 }, ["Symbiosis"] = { "skills.txt", 46 }, ["Temporal"] = { "skills.txt", 32 }, ["Thaumaturgy"] = { "skills.txt", 37 }, ["Udun"] = { "skills.txt", 48 }, ["Weaponmastery"] = { "skills.txt", 02 }, ["Water"] = { "skills.txt", 26 }, }, ["ability"] = { ["Spread blows"] = { "ability.txt", 02 }, ["Tree walking"] = { "ability.txt", 03 }, ["Perfect casting"] = { "ability.txt", 04 }, ["Extra Max Blow(1)"] = { "ability.txt", 05 }, ["Extra Max Blow(2)"] = { "ability.txt", 06 }, ["Ammo creation"] = { "ability.txt", 07 }, ["Touch of death"] = { "ability.txt", 08 }, ["Artifact Creation"] = { "ability.txt", 09 }, ["Far reaching attack"] = { "ability.txt", 10 }, ["Trapping"] = { "ability.txt", 11 }, ["Undead Form"] = { "ability.txt", 12 }, }, } if t[typ][name] then ingame_help_doc(t[typ][name][1], t[typ][name][2]) else ingame_help_doc("help.hlp", 0) end end, } ingame_help { ["hook"] = HOOK_IDENTIFY, ["event"] = function(i, mode) if mode == "full" then local obj = get_object(i) local f1, f2, f3, f4, f5, esp = object_flags(obj) if band(f5, TR5_SPELL_CONTAIN) ~= 0 then return TRUE end end end, ["desc"] = { "Ah, an item that can contain a spell. To use it you must have some levels of", "Magic skill and then you get the option to copy a spell when pressing m.", "Then just select which spell to copy and to which object. Note that doing so", "is permanent; the spell cannot be removed or changed later.", } } ingame_help { ["hook"] = HOOK_RECALC_SKILLS, ["event"] = function() if game.started and (get_melee_skills() > 1) then return TRUE end end, ["desc"] = { "Ah, you now possess more than one melee type. To switch between them press m", "and select the switch melee type option.", } }