9
3

LucretiasDomna.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/LucretiasDomna.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.21 06:02:50
  5. Script Purpose :
  6. :
  7. --]]
  8. local PlainOleDisease = 454
  9. function spawn(NPC)
  10. EmoteLoop(NPC)
  11. end
  12. function EmoteLoop (NPC)
  13. local choice = math.random(1,3)
  14. local timer = math.random(2500,3500)
  15. if choice == 1 then
  16. PlayAnimation(NPC, 11046)
  17. AddTimer(NPC, timer, "EmoteLoop")
  18. elseif choice == 2 then
  19. PlayAnimation(NPC, 2623)
  20. AddTimer(NPC, timer, "EmoteLoop")
  21. else
  22. PlayAnimation(NPC, 152)
  23. AddTimer(NPC, timer, "EmoteLoop")
  24. end
  25. end
  26. function hailed(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. local choice = math.random(1, 3)
  29. if choice == 1 then
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1011.mp3", "", "", 0, 0, Spawn)
  31. elseif choice == 2 then
  32. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1011.mp3", "", "", 0, 0, Spawn)
  33. else
  34. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1011.mp3", "", "", 0, 0, Spawn)
  35. end
  36. if GetQuestStep(Spawn, PlainOleDisease) == 8 then
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "I have a note for you from Healer Hanif.", "dlg1")
  39. AddConversationOption(conversation, "How is it that you are safe from the undead here?", "dlg2")
  40. StartConversation(conversation, NPC, Spawn, "You are disturbing me. Be gone before I make you a walking cadaver!")
  41. elseif GetQuestStep(Spawn, PlainOleDisease) == 9 then
  42. conversation = CreateConversation()
  43. AddConversationOption(conversation, "Not yet. I'll get the sinew for you.")
  44. StartConversation(conversation, NPC, Spawn, "Have you the zombie sinew for the goods?")
  45. elseif GetQuestStep(Spawn, PlainOleDisease ) == 10 then
  46. SetStepComplete(Spawn, PlainOleDisease, 10)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "Gross.")
  49. AddConversationOption(conversation, "Thank you. I think.")
  50. StartConversation(conversation, NPC, Spawn, "That will help, and now as promised... Here is the pusling flesh and a scroll detailing known poxes originating in the Bubonian Caves.")
  51. elseif GetQuestStep(Spawn, PlainOleDisease) == 11 or HasCompletedQuest(Spawn, PlainOleDisease) then
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Yeah, yeah... You're lucky I'm in a hurry.")
  54. StartConversation(conversation, NPC, Spawn, "I gave you the flesh and scroll that Hanif required. Now be gone!")
  55. end
  56. end
  57. function dlg1(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "I must?", "dlg3")
  61. AddConversationOption(conversation, "What do you want?", "dlg4")
  62. StartConversation(conversation, NPC, Spawn, "Oh? For him, I will allow an interruption. His findings are interesting, and worthy of my house's assistance. But you must help me, too.")
  63. end
  64. function dlg2(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. AddConversationOption(conversation, "Must be nice. I have a note for you from Healer Hanif.", "dlg1")
  68. StartConversation(conversation, NPC, Spawn, "They do not see me as a threat due to the aura I cast about me.")
  69. end
  70. function dlg3(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. AddConversationOption(conversation, "What do you want?", "dlg4")
  74. StartConversation(conversation, NPC, Spawn, "If you want the items for Hanif quickly, you do.")
  75. end
  76. function dlg4(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. SetStepComplete(Spawn, PlainOleDisease, 8 )
  79. conversation = CreateConversation()
  80. AddConversationOption(conversation, "I'll do some hunting for you.", "dlg5")
  81. StartConversation(conversation, NPC, Spawn, "I require some parts from the undead here for my studies.")
  82. end
  83. function dlg5(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "Ha ha.")
  87. StartConversation(conversation, NPC, Spawn, "Good. Some zombie sinew is just what the good doctor ordered! Ha ha ha!")
  88. end
  89. function respawn(NPC)
  90. spawn(NPC)
  91. end