dwarven_fish_delivery.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. UpdateQuestZone(Quest,"Qeynos Harbor")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. local conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x002.mp3", "", "chuckle", 2938647056, 1980096242, Player)
  20. AddConversationOption(conversation, "I hope I don't regret this.")
  21. AddConversationOption(conversation, "I'll be back soon... hopefully.")
  22. StartConversation(conversation, QuestGiver, Player, "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!")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is declined
  26. end
  27. function Deleted(Quest, QuestGiver, Player)
  28. -- Remove any quest specific items here when the quest is deleted
  29. end
  30. function Step1Complete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I picked up the order of fish from Umli Grayfist.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "Umli Grayfist seemed happy enough to do business.")
  33. UpdateQuestZone(Quest,"North Qeynos")
  34. 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)
  35. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 2, "I delivered Gretta Steinbeard's fish order.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "Gretta Steinbeard seemed happy to be saved the trouble of picking up her fish.")
  41. 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.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end