diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-08 19:07:44 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-08 19:35:14 +0200 |
commit | ab026914d25d77fb14172922c66e630536180252 (patch) | |
tree | c62ff029c53f8c1316aa42a80c03ad422e20fa26 /lib/mods/theme | |
parent | 2c0ec2974884386d9b332c6004758e64ab8ce709 (diff) |
Lua: Library quest: Move quest creation to C
Diffstat (limited to 'lib/mods/theme')
-rw-r--r-- | lib/mods/theme/scpt/library.lua | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/lib/mods/theme/scpt/library.lua b/lib/mods/theme/scpt/library.lua index 5ba5ed4c..51512de1 100644 --- a/lib/mods/theme/scpt/library.lua +++ b/lib/mods/theme/scpt/library.lua @@ -62,49 +62,3 @@ function library_quest.print_spell(color, y, spl) end return y end - --- Quest data and hooks -add_quest -{ - ["global"] = "LIBRARY_QUEST", - ["name"] = "Library quest", - ["desc"] = function() - -- Quest taken - if (quest(LIBRARY_QUEST).status == QUEST_STATUS_TAKEN) then - print_hook("#####yAn Old Mages Quest! (Danger Level: 35)\n") - print_hook("Make the library safe for the old mage in Minas Anor.\n") - print_hook("\n") - -- Quest done, book not gotten yet - elseif (quest(LIBRARY_QUEST).status == QUEST_STATUS_COMPLETED) then - print_hook("#####yAn Old Mages Quest!\n") - print_hook("You have made the library safe for the old mage in Minas Anor.\n") - print_hook("Perhaps you should see about a reward.\n") - print_hook("\n") - end - end, - ["level"] = 35, - ["data"] = - { - ["school_book[61][1]"] = -1, - ["school_book[61][2]"] = -1, - ["school_book[61][3]"] = -1 - }, - ["hooks"] = - { - -- Start the game without the quest, need to request it - [HOOK_BIRTH_OBJECTS] = function() - quest(LIBRARY_QUEST).status = QUEST_STATUS_UNTAKEN - school_book[61] = {-1, -1, -1} - end, - - [HOOK_GEN_QUEST] = function() - return quest_library_gen_hook() - end, - [HOOK_STAIR] = function() - return quest_library_stair_hook() - end, - [HOOK_MONSTER_DEATH] = function() - return quest_library_monster_death_hook() - end, - }, -} |