KinamerGalemaul.lua 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : SpawnScripts/Antonica/KinamerGalemaul.lua
  3. Script Purpose : Kinamer Galemaul
  4. Script Author : premierio015
  5. Script Date : 08.05.2022
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local DoesTheUnderforgeExist = 5518
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, DoesTheUnderforgeExist)
  12. SetInfoStructString(NPC, "action_state", "metalworking_idle")
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. Dialog.New(NPC, Spawn)
  20. Dialog.AddDialog("Keep clear of the forge, my friend. The metal is hot and my hammer swings where it will!")
  21. Dialog.AddVoiceover("voiceover/english/kinamer_galemaul/antonica/kinamergalemaul000.mp3", 165936049, 625468658)
  22. if CanReceiveQuest(Spawn, DoesTheUnderforgeExist) then
  23. Dialog.AddOption("You look like you have an interesting style of blacksmithing.", "Option1")
  24. elseif GetQuestStep(Spawn, DoesTheUnderforgeExist) == 2 then
  25. Dialog.AddOption("Kinamer, the Underforge is real! It isn't as impressive as legend makes it, but it does exist.", "Dialog1")
  26. end
  27. Dialog.AddOption("I think I'll play it safe and stay back here. ")
  28. Dialog.Start()
  29. end
  30. function Option1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("Aye! Some think I'm dangerous in my old age, but I get the job done. I never retired, you know. Blacksmithing is in my blood... I gotta work now and then, keeps me young. Ach! But these worthless tools ... they make me mad as a wet cat!")
  34. Dialog.AddVoiceover("voiceover/english/kinamer_galemaul/antonica/kinamergalemaul001.mp3", 2027558019, 1718672799)
  35. PlayFlavor(NPC, "", "", "nod", 0, 0,Spawn)
  36. Dialog.AddOption("What is wrong with the tools?", "Option2")
  37. Dialog.AddOption("I'm sorry to hear that. I guess I should look elsewhere for my repairs.")
  38. Dialog.Start()
  39. end
  40. function Option2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("Oh, nothing's wrong with them, I suppose. It's just ... they're not the beloved tools I left behind in Kaladim. Back then, we dwarves knew how to make tools. Not like today. If only I had a smithy like the one in that fabled Stormhold, I would never retire!")
  44. Dialog.AddVoiceover("voiceover/english/kinamer_galemaul/antonica/kinamergalemaul002.mp3", 1072576802, 3460847281)
  45. PlayFlavor(NPC, "", "", "no", 0, 0,Spawn)
  46. Dialog.AddOption("What is a smithy?", "Option3")
  47. Dialog.AddOption("Well, good luck with that!")
  48. Dialog.Start()
  49. end
  50. function Option3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("Why, a smithy is the workshop of a blacksmith! And Stormhold -- the legendary fortress of the Knights of Thunder -- had the greatest smithy outside Kaladim! Underforge it was called. It produced all the arms and armor, and kept the Knights' horses shod. Say ... you've heard the rumors, haven't you? Some rapscallion crypt raiders found Stormhold, or so everyone claims. I put no faith in rumors, but I'd be grateful to anyone who would find out the truth for me.")
  54. Dialog.AddVoiceover("voiceover/english/kinamer_galemaul/antonica/kinamergalemaul003.mp3", 4028492463, 2669208994)
  55. PlayFlavor(NPC, "", "", "orate", 0, 0,Spawn)
  56. Dialog.AddOption("If the legend turns out to be true, I'll let you know.", "offer")
  57. Dialog.AddOption("If I found such a thing I certainly wouldn't tell you. ")
  58. Dialog.Start()
  59. end
  60. function Option4(NPC, Spawn)
  61. SetStepComplete(Spawn, DoesTheUnderforgeExist, 2)
  62. FaceTarget(NPC, Spawn)
  63. Dialog.New(NPC, Spawn)
  64. Dialog.AddDialog("It does! The tools and anvils -- are they still within? Oh, this makes an old dwarf very glad indeed! Perhaps the legends are all true after all! Thank you! Thank you for bringing this good news to old Kinamer Galemaul!")
  65. Dialog.AddVoiceover("voiceover/english/kinamer_galemaul/antonica/kinamergalemaul005.mp3", 4275576159, 2433123313)
  66. PlayFlavor(NPC, "", "", "smile", 0, 0,Spawn)
  67. Dialog.AddOption("You are welcome.")
  68. Dialog.Start()
  69. end
  70. function offer(NPC, Spawn)
  71. OfferQuest(NPC, Spawn, DoesTheUnderforgeExist)
  72. end