9
3

EruditeDebate.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/StarcrestCommune/EruditeDebate.lua
  3. Script Author : Jabantiz
  4. Script Date : 2017.12.30 05:12:26
  5. Script Purpose :
  6. Zone : StarcrestCommune
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to give a note to Oomitelmora.", 1, "I need to deliver the message to Oomitelmora who is playing a game of King's Field in this village.", 11, 2340012)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("Then bring this message to Oomitelmora. He should be humiliating Vandis in a game of King's Field on the eastern side of the village. Scurry off now. I must get back to my thoughts.")
  20. PlayFlavor(QuestGiver, "", "", "nod", 0, 0, Player)
  21. Dialog.AddVoiceover("voiceover/english/philosopher_orrinalanya/qey_village02/philosopherorrinalanya001.mp3", 3961956565, 3669950879)
  22. Dialog.AddOption("How can I refuse such a pleasant lady?")
  23. Dialog.Start()
  24. end
  25. function Declined(Quest, QuestGiver, Player)
  26. -- Add dialog here for when the quest is declined
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. -- Remove any quest specific items here when the quest is deleted
  30. end
  31. function QuestComplete(Quest, QuestGiver, Player)
  32. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  33. UpdateQuestStepDescription(Quest, 1, "I gave the note to Oomitelmora.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I've delivered the message to Oomitelmora.")
  35. UpdateQuestDescription(Quest, "The letter to Oomitelmora has been delivered. They seem to be in some sort of a theological debate. I believe there is more than meets the eye with those two.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end