lost_friend_in_fallen_gate.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : Quests/FallenGate/lost_friend_in_fallen_gate.lua
  3. Script Purpose : Handles the quest, "Lost Friend in Fallen Gate"
  4. Script Author : premierio015
  5. Script Date : 07.07.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Fallen Gate
  8. Quest Giver : Logan Belchbottom (1190017)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Find Mr. Burpbelly", 1, 100, "Logan was separated from Mr. Burpbelly in a cavern with Trolls and Ogres. This can't be good. I'll look around and see if I can find him, or what's left of him.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/logan_belchbottom/fallengate/logan_belchbottom/logan_belchbottom003.mp3", "", "", 3755751992, 2875160831, Player)
  20. AddConversationOption(conversation, "I'll do what I can.")
  21. StartConversation(conversation, QuestGiver, Player, "Oh, thank you! You are a god send! We became separated in a large cavern with trolls and ogres. He stands a few sprockets taller than me and goes by the name Mr. Burpbelly. Please hurry so we can get out of this wretched place.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function Step1Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I've found what's left of Mr. Burpbelly")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "I found Mr. Burpbelly in a cauldron. Looks like he wasn't as fortunate as Logan, speaking of which I should inform Logan of what I've found.")
  32. AddQuestStepChat(Quest, 2, "Return to Logan Belchbottom", 1, "I've found a corpse in a cauldron looks like the Trolls where making something to eat. The corpse had a necklace that had the name "Burpbelly" on it. I should inform Logan.", 11, 1190017)
  33. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 2, "I've spoken with Logan")
  38. UpdateQuestTaskGroupDescription(Quest, 2, "I've spoken with Logan and told him what I saw. Needless to say he was grief stricken.")
  39. UpdateQuestDescription(Quest, "I found Logan Belchbottom's friend in a cauldron. Looks like the Trolls and Ogres were making a stew. I told Logan what I saw and he didn't seem to take the news very well.")
  40. GiveQuestReward(Quest, Player)
  41. end
  42. function Reload(Quest, QuestGiver, Player, Step)
  43. if Step == 1 then
  44. Step1Complete(Quest, QuestGiver, Player)
  45. elseif Step == 2 then
  46. QuestComplete(Quest, QuestGiver, Player)
  47. end
  48. end