TanenDanos.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/Antonica/TanenDanos.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.09.05 03:09:23
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local TheWhereaboutsOfClanMcMarrin = 5716
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TheWhereaboutsOfClanMcMarrin)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. Dialog.New(NPC, Spawn)
  16. Dialog.AddDialog("Hello there, adventurer. You must be a mite weary from your travels. Relax and have a drink of my personal brew. Barbarians brew the hardiest ales you'll ever put to your lips. You ever hear of ol' Clan McMarrin's \"Blizzard Warmer?\" That'll keep you going on those cold wintry nights!")
  17. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1062.mp3", 0, 0)
  18. PlayFlavor(NPC,"","","hello",0,0,Spawn)
  19. if not HasQuest(Spawn, TheWhereaboutsOfClanMcMarrin) and not HasCompletedQuest(Spawn, TheWhereaboutsOfClanMcMarrin) then
  20. Dialog.AddOption("Who is Clan McMarrin?", "Option1")
  21. elseif GetQuestStep(Spawn, TheWhereaboutsOfClanMcMarrin) == 2 then
  22. Dialog.AddOption("I found the remains of a site out in the Thundering Steppes. I was able to recover this journal.", "Option2")
  23. end
  24. Dialog.AddOption("I'll take a look at what you have on tap.")
  25. Dialog.Start()
  26. end
  27. function Option1(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("Clan McMarrin was a clan of the toughest barbarian warriors to have called dear old Halas home. They have not been heard of for some time though. After the Shattering they set out to find a place that barbarians could live as they did in Halas. Word was they were looking toward the Thundering Steppes last anyone knew.")
  31. PlayFlavor(NPC,"","","orate",0,0,Spawn)
  32. Dialog.AddOption("I'll keep an eye out for them if I am out in that area.", "offer")
  33. Dialog.AddOption("I hope they have found a place to settle.")
  34. Dialog.Start()
  35. end
  36. function Option2(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("An expedition journal of Clan McMarrin! May I take a gander at it? It says that they feared another giant attack and the journal is incomplete. This doesn't bode well for the history of Clan McMarrin I'm afraid... I would be willing to buy this journal from you so that I may study it.")
  40. Dialog.AddOption("Yes, I'll sell the journal to you.", "Option3")
  41. Dialog.AddOption("No, I would like to keep it a bit longer.")
  42. Dialog.Start()
  43. end
  44. function Option3(NPC, Spawn)
  45. SetStepComplete(Spawn, TheWhereaboutsOfClanMcMarrin, 2)
  46. FaceTarget(NPC, Spawn)
  47. Dialog.New(NPC, Spawn)
  48. Dialog.AddDialog("Thank you. I look forward to reading how they did on their journey. It doesn't say they perished ya know. They could have just left this in a hurry.")
  49. Dialog.AddOption("You are right, they probably just dropped it.")
  50. Dialog.Start()
  51. end
  52. function offer(NPC, Spawn)
  53. OfferQuest(NPC, Spawn, TheWhereaboutsOfClanMcMarrin)
  54. end
  55. function respawn(NPC)
  56. spawn(NPC)
  57. end