9
3

MintyFrostbeard.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/MintyFrostbeard.lua
  3. Script Author : Premierio015
  4. Script Date : 2023.04.22 12:04:20
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. require "SpawnScripts/Generic/PlayerHistory"
  10. local TheseBootsWereMadeFor = 5805 -- These Boots Were Made For QUEST ID
  11. function spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if GetQuestStep(Spawn, TheseBootsWereMadeFor) == 14 then
  16. Dialog1(NPC, Spawn)
  17. elseif GetQuestStep(Spawn, TheseBootsWereMadeFor) == 15 then
  18. local time = GetPlayerHistory(Spawn, HISTORY.ANTONICA_BOOTS_HERITAGE_QUEST_WAIT) + 4500
  19. if os.time() < time then
  20. PlayFlavor(NPC, "voiceover/english/minty_frostbeard/steppes/quest/quest_minty_frostbeard_notready_d303af9a.mp3", "Ah, the boots aren't ready yet. They'll be ready tomorrow.", "", 2149540092, 2730738076, Spawn)
  21. elseif os.time() > time then
  22. Dialog4(NPC, Spawn)
  23. end
  24. end
  25. end
  26. function Dialog1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. Dialog.New(NPC, Spawn)
  29. Dialog.AddDialog("What? And who might you be?")
  30. Dialog.AddVoiceover("voiceover/english/minty_frostbeard/steppes/minty_frostbeard001.mp3", 194470125, 2532852862)
  31. Dialog.AddOption("My name is " .. GetName(Spawn) .. ". Hwal sent me to fetch his new pair of boots.", "Dialog2")
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("Did you bring the materials I need? I can't very well make a pair of boots without the right leather and steel, can I?")
  38. Dialog.AddVoiceover("voiceover/english/minty_frostbeard/steppes/minty_frostbeard002.mp3", 3152977320, 1334538504)
  39. Dialog.AddOption("Yes, I brought the leather and steel you specified.", "Dialog3")
  40. Dialog.Start()
  41. end
  42. function Dialog3(NPC, Spawn)
  43. SetStepComplete(Spawn, TheseBootsWereMadeFor, 14)
  44. FaceTarget(NPC, Spawn)
  45. Dialog.New(NPC, Spawn)
  46. Dialog.AddDialog("Well then, that's wonderful! Why don't you come back tomorrow at about this time, and I'll have the boots ready.")
  47. Dialog.AddVoiceover("voiceover/english/minty_frostbeard/steppes/minty_frostbeard003.mp3", 4260781582, 3373743779)
  48. Dialog.AddOption("Very well. Thanks Minty.")
  49. Dialog.Start()
  50. end
  51. function Dialog4(NPC, Spawn)
  52. SetStepComplete(Spawn, TheseBootsWereMadeFor, 15)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. Dialog.AddDialog("Thanks for waiting, dear! Here's the boots for Hwal. Give him my regards!")
  56. Dialog.AddVoiceover("voiceover/english/minty_frostbeard/steppes/minty_frostbeard004.mp3", 674353442, 1806474731)
  57. Dialog.AddOption("Thanks Minty!")
  58. Dialog.Start()
  59. end
  60. function respawn(NPC)
  61. spawn(NPC)
  62. end