ogre_watch.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : ogre_watch.lua
  3. Script Purpose : Handles the quest, "Ogre Watch"
  4. Script Author : torsten/Dorbin
  5. Script Date : 18.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Orian D`Rak
  9. Preceded by : None
  10. Followed by : Information Gathering From a Fishmonger
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Azreana", 1, "I need to deliver this package to Azreana.", 11, 1350030)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. UpdateQuestZone(Quest,"Stonestair Byway")
  17. end
  18. function QuestComplete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I've delivered the package in one piece.")
  20. UpdateQuestTaskGroupDescription(Quest,1,"I've delivered the package as requested to Azreana.")
  21. UpdateQuestDescription(Quest, "Azreana was able to understand what the message said, and acted as if it was rather important. I might want to check back with Orian at a later time to see if he needs any more help.")
  22. GiveQuestReward(Quest, Player)
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("I'm pleased that not everyone is stupid enough to look the other way while the ogres embed themselves in the Freeport Militia. I need a message delivered to an associate. It's time to take a stand, and I must inform her. Take this note to an Erudite named Azreana living in Stonestair Byway. Do not return here! No one must see you!")
  28. -- Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/qst_kylanith_hail.mp3", 387692981, 2731095766)
  29. Dialog.AddOption("I'll make sure Azreana gets this.")
  30. Dialog.Start()
  31. end
  32. function Declined(Quest, QuestGiver, Player)
  33. -- Add dialog here for when the quest is declined
  34. end
  35. function Deleted(Quest, QuestGiver, Player)
  36. -- Remove any quest specific items here when the quest is deleted
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end