AFesteringProblem.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : a_festering_problem.lua
  3. Script Purpose : Handles the quest, "A Festering Problem"
  4. Script Author : QCynnar
  5. Script Date : 4/8/2023
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : World Event
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local AQeynosianScout = 330306
  13. local AQeynosianProtector = 330307
  14. local Kraofla = 330291
  15. local OfficerGezlowe = 5590146
  16. function Init(Quest)
  17. AddQuestStepKill(Quest, 1, "Find and destroy the Qeynosians and the rescued froglok.", 1, 100, "Search out the Qeynosians and put the froglok down once more.", 11, Kraofla)
  18. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "intelligence_officer_gezlowe/fprt_west/io_gezlowe009.mp3", "", "", 1341018136, 217983311, Player)
  24. AddConversationOption(conversation, "Fine.")
  25. StartConversation(conversation, QuestGiver, Player, "Hey, I don't care about that. What matters is that it's still alive. Go take care of it.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "Gezlowe's orders have been followed - the enemies of Freeport are dead.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "The Qeynosians and the froglok have been dealt with appropriately.")
  36. AddQuestStepChat(Quest, 2, "Inform Gezlowe of the demise of the camp.", 1, "With the froglok dead, I must return once more to Gazlowe.", 11, OfficerGezlowe)
  37. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  38. end
  39. function QuestComplete(Quest, QuestGiver, Player)
  40. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  41. UpdateQuestStepDescription(Quest, 2, "I have informed Gezlowe of the froglok's demise.")
  42. UpdateQuestTaskGroupDescription(Quest, 2, "I.O. Gezlowe has been informed of the death of the Qeynosians and the frog.")
  43. UpdateQuestDescription(Quest, "I've managed to wipe out the scum of Qeynos and cleanse the stench of that foul frog from the lands outside the city gates. However, it looks like there may be more to be done. <br>")
  44. GiveQuestReward(Quest, Player)
  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