AnIncriminatingLetter.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : AnIncriminatingLetter.lua
  3. Script Purpose : Handles the quest, "Eliminate Geraufl"
  4. Script Author : Cynnar
  5. Script Date : 11/20/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 Geraufl = 1300005
  13. function Init(Quest)
  14. AddQuestStepLocation(Quest, 1, "Find the old froglok in the jail.", 1, "Geraufl must be killed before his existence invites anymore Qeynosian slime to attempt his rescue.", 11, 173, -23, 128)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "It seems that the frog has been moved.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "It appears that the guards have moved Geraufl deeper into the prison. Just my luck.")
  29. AddQuestStepKill(Quest, 2, "Slink down into the jail and kill Geraufl.", 1, 100, "I'll need to slip down into the deeper reaches of the jail to kill Geraufl.", 11, Geraufl)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I've failed in my mission to kill the frog.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "Geraufl has escaped through my own incompetence. Fortunately no one is left to tell the tale of my... indiscretion.")
  36. UpdateQuestDescription(Quest, "My intentions were good, but I unfortunately failed in my mission to kill the froglok. He escaped the jail while I was stunned, likely fled into the sewers. Unfortunately, I suppose this may mean we'll start to see more of them in the future.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end