diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-09 20:54:03 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-09 20:54:03 +0200 |
commit | 293365ee62d199fc90c33eece8a8a3ffe6726d8a (patch) | |
tree | f84990bcec5614ffb16f05be734dea0751ad725e /lib | |
parent | d71c748f56b479ab97408fe2d42eaf0898982fb7 (diff) |
Lua: Remove Theme script forcing player to Gondolin at level 45
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mods/theme/scpt/gondolin.lua | 33 | ||||
-rw-r--r-- | lib/mods/theme/scpt/init.lua | 3 |
2 files changed, 0 insertions, 36 deletions
diff --git a/lib/mods/theme/scpt/gondolin.lua b/lib/mods/theme/scpt/gondolin.lua deleted file mode 100644 index f70f2044..00000000 --- a/lib/mods/theme/scpt/gondolin.lua +++ /dev/null @@ -1,33 +0,0 @@ --- This script makes the Save Gondolin quest take the player straight --- to Gondolin instead of the Secret Valley. Many thanks to TheFalcon --- for the code. - -add_loadsave("tolan_count", 0) - -function tolan_travel() - if (quest(15).status == QUEST_STATUS_TAKEN) and (tolan_count == 0) then - player.wilderness_x = 3 - player.wilderness_y = 11 - player.wild_mode = FALSE - player.px = 117 - player.py = 25 - player.oldpx = player.px - player.oldpy = player.py - dun_level = 0 - player.leaving = TRUE - tolan_count = 1 - return TRUE - end -end - -add_hook_script(HOOK_END_TURN, "tolan_travel", "tolan_travel") - -add_hooks -{ - [HOOK_BIRTH] = function() - if tolan_count >=1 - then tolan_count = 0 - else - end - end -}
\ No newline at end of file diff --git a/lib/mods/theme/scpt/init.lua b/lib/mods/theme/scpt/init.lua index 6a509a27..93a6e772 100644 --- a/lib/mods/theme/scpt/init.lua +++ b/lib/mods/theme/scpt/init.lua @@ -39,6 +39,3 @@ tome_dofile("monsters.lua") -- Add miscellaneous stuff tome_dofile("misc.lua") - --- Add map-related quest fix -tome_dofile("gondolin.lua")
\ No newline at end of file |