9
3

unfortunate_mistakes.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. --[[
  2. Script Name : UnfortunateMistakes.lua
  3. Script Purpose : Handles the quest, "Unfortunate Mistakes"
  4. Script Author : Jabantiz
  5. Script Date : 6/11/2018
  6. Script Notes :
  7. Zone : Nettleville
  8. Quest Giver :
  9. Preceded by : Required Components (required_components.lua)
  10. Followed by : To the Source (to_the_source.lua)
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I must stop the Pa'Rok ritual.", 1, "I need to stop the Pa'Rok ritual before something bad happens. I should check the three locations I originally gathered dirt from.", 11, 2330065)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I did not stop the ceremony, but I did stop the corrupted spirit that was inadvertently summoned and learned where the contaminated soil came from.")
  18. AddQuestStepChat(Quest, 2, "I should return to Lakosha Maera and tell her the news.", 1, "I need to stop the Pa'Rok ritual before something bad happens. I should check the three locations I originally gathered dirt from.", 11, 2330053)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  23. UpdateQuestStepDescription(Quest, 2, "I have spoken with Lakosha Maera.")
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I have found out who was attempting the Pa'Rok ritual.")
  25. UpdateQuestDescription(Quest, "I found the person attempting the Pa'Rok ritual. I was too late to stop the ritual, but I did prevent the spirit that was summoned from harming anyone.")
  26. GiveQuestReward(Quest, Player)
  27. end
  28. function Reload(Quest, QuestGiver, Player, Step)
  29. if Step == 1 then
  30. Step1Complete(Quest, QuestGiver, Player)
  31. end
  32. end
  33. function Accepted(Quest, QuestGiver, Player)
  34. FaceTarget(QuestGiver, Player)
  35. conversation = CreateConversation()
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/lakosha_maera/qey_village01/quests/lakosha_maera/lakosha_maera019a.mp3", "", "", 3555353396, 4246766258, Spawn)
  37. AddConversationOption(conversation, "Thank you.")
  38. StartConversation(conversation, QuestGiver, Player, "Go quicky, and good luck.")
  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. end