door_to_door_anger.lua 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : door_to_door_anger.lua
  3. Script Purpose : Handles the quest, "Door to Door Anger"
  4. Script Author : torsten\\Dorbin
  5. Script Date : 21.07.2022
  6. Script Notes :
  7. Zone : Scale Yard
  8. Quest Giver : Evelyn Stoutfist
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Plordo.", 1, "I need to get Plordo the gnome to give Evelyn's money back.", 11, 1360008)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Temple Street")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have spoken with Plordo.")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "Plordo is quite adamant over the fact that he won't offer a refund.")
  21. AddQuestStepChat(Quest, 2, "I need to talk with Evelyn.", 1, "I need to let Evelyn know that the gnome will not be giving her a refund.", 11, 1390023)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. UpdateQuestZone(Quest,"Scale Yard")
  24. end
  25. function QuestComplete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I have spoken to Evelyn.")
  27. UpdateQuestTaskGroupDescription(Quest, 2, "Evelyn seemed to take the news rather well. That's the part that scares me.")
  28. UpdateQuestDescription(Quest, "Evelyn Stoutfist was pretty upset when she heard the news about not getting a refund. I think she's planning to do something to the gnome.")
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Accepted(Quest, QuestGiver, Player)
  32. FaceTarget(QuestGiver, Player)
  33. Dialog.New(QuestGiver, Player)
  34. Dialog.AddDialog("Unless you can fix the contraption, but it's completely broken, thanks to that no-good gnome. If you want to help, go find that scoundrel and get my money back. I think his name is Plordo Blotty or something. His shop is in the Districts.")
  35. Dialog.AddVoiceover("voiceover/english/evelyn_stoutfist/fprt_hood06/quests/evelynstoutfist/evelyn_x1_accept.mp3",0,0)
  36. PlayFlavor(QuestGiver, "","","confused",0,0, Player)
  37. Dialog.AddOption("I'll see what I can do.")
  38. Dialog.Start()
  39. end
  40. function Declined(Quest, QuestGiver, Player)
  41. -- Add dialog here for when the quest is declined
  42. end
  43. function Deleted(Quest, QuestGiver, Player)
  44. -- Remove any quest specific items here when the quest is deleted
  45. end
  46. function Reload(Quest, QuestGiver, Player, Step)
  47. if Step == 1 then
  48. Step1Complete(Quest, QuestGiver, Player)
  49. elseif Step == 2 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end