dwarven_fish_delivery.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/NorthQeynos/dwarven_fish_delivery.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.11 02:05:12
  5. Script Purpose :
  6. Zone : NorthQeynos
  7. Quest Giver: Gretta Steinbeard
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to pick up an order of fish from Umli Grayfist.", 1, "Umli Grayfist's order of fish for Gretta won't keep forever.", 2540, 2210135)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Qeynos Harbor")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("Ah, thank Brell I don't have to go!.. Uh, that you're going to that mudglub Umli. You'll find him at the harbor down by the docks. Can't miss him. He's uglier than a troll woman in a wedding dress! Hah! And you can tell him I said so!")
  21. Dialog.AddVoiceover("voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x000.mp3", 612712171, 2321965832)
  22. PlayFlavor(QuestGiver, "", "", "chuckle", 0, 0, Player)
  23. Dialog.AddOption("I hope I don't regret this.")
  24. Dialog.AddOption("I'll be back soon... hopefully.")
  25. Dialog.Start()
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function Step1Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 1, "I picked up the order of fish from Umli Grayfist.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "Umli Grayfist seemed happy enough to do business.")
  36. UpdateQuestZone(Quest,"North Qeynos")
  37. AddQuestStepChat(Quest, 2, "I need to deliver this order of fish to Gretta Steinbeard.", 1, "Gretta Steinbeard's order of fish won't keep forever and must be delivered to Irontoe's East in North Qeynos.", 2540, 2220094)
  38. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  39. end
  40. function QuestComplete(Quest, QuestGiver, Player)
  41. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  42. UpdateQuestStepDescription(Quest, 2, "I delivered Gretta Steinbeard's fish order.")
  43. UpdateQuestTaskGroupDescription(Quest, 2, "Gretta Steinbeard seemed happy to be saved the trouble of picking up her fish.")
  44. UpdateQuestDescription(Quest, "Fortunately, the fish didn't smell too badly, and I was able to return them to Gretta Steinbeard at Irontoe's East before they turned my stomach.")
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. Step1Complete(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. QuestComplete(Quest, QuestGiver, Player)
  52. end
  53. end