From 1f9f122249c0828c206293ba0f757f9bfd016d8e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Thu, 7 Jun 2012 20:36:15 +0200 Subject: Lua: Move "Void Jumpgates" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 4e244df6..ca6fa6c6 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,17 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -ingame_help -{ - ["hook"] = HOOK_MOVE, - ["event"] = function(y, x) if cave(y, x).feat == FEAT_BETWEEN then return TRUE end end, - ["desc"] = - { - "Void Jumpgates can be entered by pressing the > key. They will transport", - "you to another jumpgate, but beware of the cold damage that might kill you.", - } -} - ingame_help { ["hook"] = HOOK_MOVE, -- cgit v1.2.3 From f1f703a9bec43282c25f93e97dab3706efe265fa Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 06:15:15 +0200 Subject: Lua: Move "Fountain" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index ca6fa6c6..e1feea19 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,17 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -ingame_help -{ - ["hook"] = HOOK_MOVE, - ["event"] = function(y, x) if cave(y, x).feat == FEAT_FOUNTAIN then return TRUE end end, - ["desc"] = - { - "Fountains are always magical. You can quaff from them by pressing H.", - "Beware that unlike potions they cannot be identified.", - } -} - ingame_help { ["hook"] = HOOK_MOVE, -- cgit v1.2.3 From 4401b0bd2e85f491faf9971da4015a254b45366b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 16:25:56 +0200 Subject: Lua: Move "Found Object" help to C --- lib/mods/theme/scpt/help.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index e1feea19..ff901650 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,20 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -ingame_help -{ - ["hook"] = HOOK_MOVE, - ["event"] = function(y, x) if cave(y, x).o_idx ~= 0 then return TRUE end end, - ["desc"] = - { - "So you found your first item! Nice, eh? Now when you stumble across", - "objects, you can pick them up by pressing g, and if you are wondering", - "what they do, press I (then *, then the letter for the item) to get", - "some basic information. You may also want to identify them with scrolls,", - "staves, rods or spells.", - } -} - ingame_help { ["hook"] = HOOK_MOVE, -- cgit v1.2.3 From ac8ef5f15e948e351ff4e92a4150ff6602dd680e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 16:34:39 +0200 Subject: Lua: Move "Found Altar" help to C --- lib/mods/theme/scpt/help.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index ff901650..1f260a96 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,19 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -ingame_help -{ - ["hook"] = HOOK_MOVE, - ["event"] = function(y, x) if (cave(y, x).feat >= FEAT_ALTAR_HEAD) and (cave(y, x).feat <= FEAT_ALTAR_TAIL) then return TRUE end end, - ["desc"] = - { - "Altars are the way to reach the Valar, powers of the world,", - "usualy called Gods. You can press O to become a follower.", - "Beware that once you follow a god, you are not allowed to change.", - "For an exact description of what gods do and want, read the documentation." - } -} - -- Beware this one, if Bree is moved from 21, 34 (y, x) on the wilderness map it will break ingame_help { -- cgit v1.2.3 From 41d157bccff5ae75117ea056915099981e338918 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 16:45:21 +0200 Subject: Lua: Move "Found Stairs" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 1f260a96..decad717 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -34,17 +34,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_MOVE, - ["event"] = function(y, x) if cave(y, x).feat == FEAT_MORE then return TRUE end end, - ["desc"] = - { - "Ah, this is a stair, or a way into something. Press > to enter it.", - "But be ready to fight what lies within, for it might not be too friendly.", - } -} - ingame_help { ["callback"] = "monster_chat", -- cgit v1.2.3 From 0bad18e026e1fd9254191aa8d41f2d4c1b5ce19b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 17:25:11 +0200 Subject: Lua: Move "pick up essence" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index decad717..98f3c9a9 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -288,17 +288,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_BATERIE then return TRUE end end, - ["desc"] = - { - "Ah, an essence! Those magical containers stores energies. They are used", - "with the Alchemy skill to create or modify the powers of items.", - } -} - ingame_help { ["hook"] = HOOK_GET, -- cgit v1.2.3 From 0ade661fe361dae2f733587f1934e078fd4559fb Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 17:36:02 +0200 Subject: Lua: Move "pick up rune" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 98f3c9a9..7ab4871f 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -288,17 +288,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_RUNE1 or obj.tval == TV_RUNE2 then return TRUE end end, - ["desc"] = - { - "Ah, a rune! Runes are used with the Runecraft skill to allow you to", - "create spells on your own.", - } -} - ingame_help { ["hook"] = HOOK_GET, -- cgit v1.2.3 From e0e4d2216c5763e318e4b321aef63cf67924f8d0 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 17:39:28 +0200 Subject: Lua: Move "pick up rod" help to C --- lib/mods/theme/scpt/help.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 7ab4871f..1273eab4 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -288,18 +288,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_ROD_MAIN then return TRUE end end, - ["desc"] = - { - "This is a rod. You will need to attach a rod tip to it before you", - "can use it. This main part of the rod may give the rod bonuses", - "like quicker charging time, or a larger capacity for charges.", - } -} - ingame_help { ["hook"] = HOOK_GET, -- cgit v1.2.3 From 6daf34377e6c0c1e1861d65c55d2df18e9e491d4 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 17:51:57 +0200 Subject: Lua: Move "pick up rod tip" help to C --- lib/mods/theme/scpt/help.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 1273eab4..339a5d17 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -288,19 +288,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_ROD then return TRUE end end, - ["desc"] = - { - "You've found a rod-tip! You will need to attach it to a rod base", - "before you can use it. Once it has been attatched (use the 'z' key)", - "you cannot unattach it! The rod tip will determine the effect of", - "the rod. To use your rod, 'z'ap it once it has been assembled.", - } -} - ingame_help { ["hook"] = HOOK_GET, -- cgit v1.2.3 From 01b96520e44540b08ce221253248307492bf6383 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 17:59:43 +0200 Subject: Lua: Move "pick up trap kit" help to C --- lib/mods/theme/scpt/help.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 339a5d17..5f1a9d2d 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -288,19 +288,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_TRAPKIT then return TRUE end end, - ["desc"] = - { - "Ooooh, a trapping kit. If you have ability in the trapping skill,", - "you can lay this trap (via the 'm' key) to harm unsuspecting foes.", - "You'll generally need either some ammo or magic device depending", - "on the exact type of trap kit.", - } -} - ingame_help { ["hook"] = HOOK_RECALC_SKILLS, -- cgit v1.2.3 From 8a94b839d00267e7be1664f521de1c0033921b8c Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 18:07:38 +0200 Subject: Lua: Move "pick up staff/wand" help to C --- lib/mods/theme/scpt/help.lua | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 5f1a9d2d..e6f3a8b1 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -299,19 +299,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_GET, - ["event"] = function(obj, idx) if obj.tval == TV_WAND or obj.tval == TV_STAFF then return TRUE end end, - ["desc"] = - { - "You've found a magical device, either a staff or a wand. Each staff", - "contains a spell, often from one of the primary magic schools. There", - "is a lot of information you can find about this object if you identify", - "it and 'I'nspect it. Check the help file on Magic for more about these.", - } -} - ingame_help { ["hook"] = HOOK_PLAYER_LEVEL, -- cgit v1.2.3 From 5867e77c9fd84033ec54c565e0d0759860c2a2c1 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 18:40:12 +0200 Subject: Lua: Move wilderness help to C --- lib/mods/theme/scpt/help.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index e6f3a8b1..ffe7bc06 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,22 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- --- Beware this one, if Bree is moved from 21, 34 (y, x) on the wilderness map it will break -ingame_help -{ - ["hook"] = HOOK_END_TURN, - ["event"] = function(y, x) - if ((player.wilderness_x ~= 34) or (player.wilderness_y ~= 21) and (player.astral == FALSE)) then return TRUE end - end, - ["desc"] = - { - "Ahh wilderness travel... The overview mode will allow you to travel", - "fast, but that comes to the cost of GREATLY increased food consumption.", - "So you should bring lots of food and really watch your hunger status.", - "To enter the overview mode, press < while in the wilderness.", - } -} - ingame_help { ["hook"] = HOOK_PLAYER_LEVEL, -- cgit v1.2.3 From e88d49b8c45f429589018b84b219b80caa66d44b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 19:01:19 +0200 Subject: Lua: Move "game start" help to C --- lib/mods/theme/scpt/help.lua | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index ffe7bc06..0773e879 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -28,28 +28,6 @@ ingame_help } } -ingame_help -{ - ["hook"] = HOOK_END_TURN, - ["event"] = function(y, x) return TRUE end, - ["desc"] = - { - "Welcome to Theme! I am the spirit of knowledge and my task is to help you", - "to get used to how to play. I have prepared a #vparchment#y for you to #vread#y.", - "Press r, then space then select it. You can also check the documentation", - "by pressing ? at (nearly) any time.", - "The first place you can explore is Barrow-downs. Go to the west of town", - "and you should see a #v>#y there.", - "If you miss any of this you can press ctrl+p to see your message log.", - "Now I must reveal your task here. You are on a quest to investigate", - "the dreadful tower of Dol Guldur in the Mirkwood forest to see what evil", - "lurks there, but beware, you are not yet ready.", - "If you do not want me to bother you any more with tips, press = then go", - "into the ToME options and deactivate the ingame_help option.", - "You can see your quest log by pressing ctrl+q. Now go to your destiny!", - } -} - ingame_help { ["no_test"] = TRUE, -- cgit v1.2.3 From 3e79a19e687364bf7022ca91ee02978e504093fd Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Fri, 8 Jun 2012 19:40:49 +0200 Subject: Lua: Move level-triggered help to C --- lib/mods/theme/scpt/help.lua | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 0773e879..d827e5dc 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -6,18 +6,6 @@ ------------------------------------------------------------------------------- ------------------------------------------------------------------------------- -ingame_help -{ - ["hook"] = HOOK_PLAYER_LEVEL, - ["event"] = function(y, x) if player.lev > 1 then return TRUE end end, - ["desc"] = - { - "Ok, so you now gained a level, and you have skill points to spend.", - "To do so simply press G to learn skills. Reading the documentation", - "about skills and abilities is also strongly recommended.", - } -} - ingame_help { ["callback"] = "monster_chat", @@ -260,15 +248,3 @@ ingame_help "and select the switch melee type option.", } } - -ingame_help -{ - ["hook"] = HOOK_PLAYER_LEVEL, - ["event"] = function(y, x) if player.lev >= 20 then return TRUE end end, - ["desc"] = - { - "I see you are now at least level 20. Nice! If you want to gloat about your", - "character you could press 'C' then 'f' to make a character dump and post it to", - "http://angband.oook.cz/ where it will end up in the ladder.", - } -} -- cgit v1.2.3 From 6987232c337535eb3b7f7de14ae0637d6f4b3d1d Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 09:29:06 +0200 Subject: Lua: Move "identify object with spell slot" help to C --- lib/mods/theme/scpt/help.lua | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index d827e5dc..d9f637bd 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -219,25 +219,6 @@ ingame_help 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, -- cgit v1.2.3 From 8f7682e6fbd636e3172290f0adc9e8b45c5dd0a2 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 09:55:18 +0200 Subject: Lua: Move "gained two melee skills" help to C --- lib/mods/theme/scpt/help.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index d9f637bd..d8900d6c 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -218,14 +218,3 @@ ingame_help end end, } - -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.", - } -} -- cgit v1.2.3 From cd9c9db64bff40addbbbf5834f8839e93717cfba Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 12:29:04 +0200 Subject: Lua: Move "race" help to C --- lib/mods/theme/scpt/help.lua | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index d8900d6c..3d4450b5 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,33 +24,6 @@ ingame_help -- 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 }, -- cgit v1.2.3 From 0bd0bab14018806a9fafe8db624323ce4699fe9b Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 16:34:40 +0200 Subject: Lua: Move "subrace" help to C --- lib/mods/theme/scpt/help.lua | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 3d4450b5..4f9c1521 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,34 +24,6 @@ ingame_help -- list of files for classes, { filename, anchor } local t = { - ["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 }, -- cgit v1.2.3 From 5ccc3347038709ba87f5b04d19d800aca459158e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 16:54:02 +0200 Subject: Lua: Move "class" help to C --- lib/mods/theme/scpt/help.lua | 48 -------------------------------------------- 1 file changed, 48 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 4f9c1521..7046e846 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,54 +24,6 @@ ingame_help -- list of files for classes, { filename, anchor } local t = { - ["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 }, -- cgit v1.2.3 From 76085d3681e4c42b75fddad7be88006c3d97d0d8 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:02:58 +0200 Subject: Lua: Move "god" help to C --- lib/mods/theme/scpt/help.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 7046e846..189cd687 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,18 +24,6 @@ ingame_help -- list of files for classes, { filename, anchor } local t = { - ["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 }, -- cgit v1.2.3 From 4da2e8d9545698b9fc7936e5f6d9a137d0b7c930 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:14:22 +0200 Subject: Lua: Move "skill" help to C --- lib/mods/theme/scpt/help.lua | 58 -------------------------------------------- 1 file changed, 58 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 189cd687..421cdb11 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,64 +24,6 @@ ingame_help -- list of files for classes, { filename, anchor } local t = { - ["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 }, -- cgit v1.2.3 From cbe5a2de1592e402808e962de8d346829aa5aba4 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:18:46 +0200 Subject: Lua: Move "ability" help to C --- lib/mods/theme/scpt/help.lua | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 421cdb11..9d53ba40 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -24,20 +24,6 @@ ingame_help -- list of files for classes, { filename, anchor } local t = { - ["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]) -- cgit v1.2.3 From 45f32f85eecbdaca1108542adc9733e9b633d9e5 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:22:52 +0200 Subject: Lua: Remove dead help code --- lib/mods/theme/scpt/help.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 9d53ba40..6a153933 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -15,19 +15,3 @@ ingame_help "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 = - { - } - - 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, -} -- cgit v1.2.3 From 465063bdf50bdf30b110bb2c37ab114fb68e4662 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:56:15 +0200 Subject: Lua: Move the "monster asked for help" help to C --- lib/mods/theme/scpt/help.lua | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua index 6a153933..e17d1723 100644 --- a/lib/mods/theme/scpt/help.lua +++ b/lib/mods/theme/scpt/help.lua @@ -5,13 +5,3 @@ -----------------------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.", - } -} -- cgit v1.2.3 From 4d77bc8053e1fda66f1e3f805f0a2cb74fba6201 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 9 Jun 2012 17:59:12 +0200 Subject: Lua: Remove Lua help code --- lib/mods/theme/scpt/help.lua | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 lib/mods/theme/scpt/help.lua (limited to 'lib/mods/theme/scpt/help.lua') diff --git a/lib/mods/theme/scpt/help.lua b/lib/mods/theme/scpt/help.lua deleted file mode 100644 index e17d1723..00000000 --- a/lib/mods/theme/scpt/help.lua +++ /dev/null @@ -1,7 +0,0 @@ --- Ingame contextual help - -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------Here comes the definition of help----------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- cgit v1.2.3