9
3

MajordomoInferinus.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/Nagafen's Lair/MajordomoInferinus.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.01 06:06:05
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Drag = 5577
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if not HasLanguage(Spawn,25)then
  17. RandomGreeting(NPC, Spawn)
  18. elseif GetQuestStep(Spawn,Drag)==1 then
  19. Dialog1(NPC, Spawn)
  20. else
  21. PlayFlavor(NPC, "", "Speak to Lord Nagafen if you wish to test fate. He will not tollerate insolence.", "", 1165516478, 758436454, Spawn, 25)
  22. end
  23. end
  24. function RandomGreeting(NPC, Spawn)
  25. local choice = MakeRandomInt(1,1)
  26. if choice == 1 then
  27. PlayFlavor(NPC, "voiceover/english/optional3/giant_thyr_vanguard/ft/giant/giant_thyr_vanguard_1_garbled_666120fe.mp3", "Trobal kvetre platona estrep geitz", "", 1165516478, 758436454, Spawn, 25)
  28. end
  29. end
  30. function Dialog1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. Dialog.New(NPC, Spawn)
  33. Dialog.AddDialog("The Great Lord Nagafen will not be conversed with in a mortal language, he finds the use of such offensive. Consider yourself extremely lucky you are still breathing this very moment. It is only because his lordship was amused by your success in reaching the gong that you are not a blood stain on his master's floor. If you wish to speak to the Lord Nagafen you must learn the Draconic language.")
  34. Dialog.AddVoiceover("voiceover/english/majordomo_inferinus/draconic/majordomo_inferinus001.mp3", 1087549587, 1448775689)
  35. Dialog.AddLanguage(25)
  36. Dialog.AddOption("How do I learn this Draconic language? ", "Dialog2")
  37. Dialog.Start()
  38. end
  39. function Dialog2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. Dialog.New(NPC, Spawn)
  42. Dialog.AddDialog("That is of no concern of mine. Do not return again unless your mind and tongue are capable of speaking the ancient language. The next time Lord Nagafen will not be so forgiving. Begone! ")
  43. Dialog.AddVoiceover("voiceover/english/majordomo_inferinus/draconic/majordomo_inferinus002.mp3", 4255378603, 1258928811)
  44. Dialog.AddLanguage(25)
  45. Dialog.AddOption("I'll be back. ")
  46. Dialog.Start()
  47. QuestStepIsComplete(Spawn,Drag,1)
  48. end