time_to_stop_a_madman.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/SunkenCity/time_to_stop_a_madman.lua
  3. Script Purpose : Handles the quest, "Time to Stop a Madman"
  4. Script Author : Scatman
  5. Script Date : 2009.07.28 (15.7.2022 by torsten)
  6. Zone : Sunken City
  7. Quest Giver: Inquisitor Thorson
  8. Preceded by: Back to the Inquisitor (back_to_the_inquisitor.lua)
  9. Followed by: Searching for the Ruins (searching_for_the_ruins.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I must stop Curfeld's deadly scheme at all costs!", 1, 100, "I must confront Investigator Curfeld and do whatever it takes to stop him.", 0, 1240027)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1_complete_KilledCurfield")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/tutorial_revamp/inquisitor_thorson/fprt_adv01_sunken/inquisitor_thorson045.mp3", "", "", 1129031439, 214486034, Player)
  19. AddConversationOption(conversation, "I will return... I hope.")
  20. StartConversation(conversation, QuestGiver, Player, "You have my full authority to take whatever action is necessary. Fear not; I will ensure that the high priestess and the rest of the Dismal Rage know that your actions were necessary to save our city. Do this, and not only will you be rewarded but your fame will grow. Hurry, go!")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function Step1_complete_KilledCurfield(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I faced Curfeld and defeated him in battle.")
  26. UpdateQuestTaskGroupDescription(Quest, 1, "I have ended Curfeld's threat once and for all.")
  27. AddQuestStepChat(Quest, 2, "I should return to Inquisitor Thorson and let him know I was victorious.", 1, "I should tell Inquisitor Thorson that Curfeld is no more.", 0, 1240024)
  28. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  29. end
  30. function Quest_Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I let Thorson know that I helped save Freeport.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I told Thorson what transpired.")
  33. GiveQuestReward(Quest, Player)
  34. UpdateQuestDescription(Quest, "I defeated Investigator Curfeld in battle, ending the threat he posed to Freeport. Hopefully Thorson will be true to his word and let the Dismal Rage know that I helped uncover this plot. It would certainly help increase my standing with the Overlord.")
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1_complete_KilledCurfield(Quest, QuestGiver, Player)
  39. end
  40. end