9
3

nias_hissing_fit.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Nettleville/nias_hissing_fit.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 03:06:45
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver: Nia Jaja
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to go to the scribe shop.", 1, "I need to go to the scribe shop in Nettleville to see if Marjani Kenan is still there.", 11, 2330031)
  14. AddQuestStepCompleteAction(Quest, 1, "CheckIn")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. PlayFlavor(QuestGiver, "", "", "scream", 0, 0, Player)
  20. Dialog.AddDialog("Thank you. That woman just makes my hair stand on end! HhurrrrawrR!")
  21. Dialog.AddVoiceover("voiceover/english/nia_jaja/qey_village01/niajaja002.mp3", 1501623975, 3086315049)
  22. Dialog.AddOption("I'll be back shortly! Just take the moment to cool off.")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. end
  27. function CheckIn(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I went to the scribe shop.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I went to the scribe shop and found Marjani Kenan still there.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Nia Jaja.", 1, "Nia should know Marjani is still at the scribe shop. She most likely won't be happy.", 0, 2330023)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 2, "I've returned to Nia.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned to Nia. She was less than pleased to hear the news.")
  36. UpdateQuestDescription(Quest, "I checked out the scribe shop for Nia and reported back. Unfortunately, Marjani hadn't left yet so Nia won't be getting back to work any time soon.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Delivery(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end