GallaLentula.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/Commonlands/GallaLentula.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.02.21 05:02:40
  5. Script Purpose :
  6. :
  7. --]]
  8. local PlainOleDisease = 454
  9. function spawn(NPC)
  10. EmoteLoop(NPC)
  11. end
  12. function EmoteLoop (NPC)
  13. PlayAnimation(NPC, 12191)
  14. AddTimer(NPC, 15000, "EmoteLoop")
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. local choice = math.random(1, 3)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1053.mp3", "", "", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1053.mp3", "", "", 0, 0, Spawn)
  23. else
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1053.mp3", "", "", 0, 0, Spawn)
  25. end
  26. if HasQuest(Spawn, PlainOleDisease) and GetQuestStep(Spawn, PlainOleDisease) == 6 then
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "I am. I have some medicine for you.", "dlg1")
  29. StartConversation(conversation, NPC, Spawn, "You must be the one helping the healer.")
  30. else
  31. PlayFlavor(NPC, "", "Can you not see the disease spreads? Leave this place 'er your fate be sealed here, too!", "", 0, 0, Spawn)
  32. end
  33. end
  34. function dlg1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. PlayAnimation(NPC, 13061)
  37. conversation = CreateConversation()
  38. AddConversationOption(conversation, "My pleasure.", "dlg2")
  39. AddConversationOption(conversation, "You're welcome.", "dlg2")
  40. StartConversation(conversation, NPC, Spawn, "Thank you. That is sure to help.")
  41. end
  42. function dlg2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. AddConversationOption(conversation, "Visions of sores and boils?", "dlg3")
  46. StartConversation(conversation, NPC, Spawn, "I must tell you, I am glad to be clear in the head, today. Some days the sickness touches the brain, and that is always accompanied by visions.")
  47. end
  48. function dlg3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. AddConversationOption(conversation, "Another sign of the gods upon this plane.", "dlg5")
  52. AddConversationOption(conversation, "Who is the Plaguebringer?", "Bertoxxulous")
  53. StartConversation(conversation, NPC, Spawn, "Yes. A landscape of them and a giant figure. I can only assume it to be that of the Plaguebringer.")
  54. end
  55. function Bertoxxulous(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. PlayAnimation(NPC, 11882)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "Another sign of the gods upon this plane.", "dlg5")
  60. StartConversation(conversation, NPC, Spawn, "The god, but you cannot say his true name... it will curse you.")
  61. end
  62. function dlg5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. SetStepComplete(Spawn, PlainOleDisease, 6 )
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "Interesting.", "")
  67. StartConversation(conversation, NPC, Spawn, "Yes. I can't help but think that there are some individuals that may delight in such news. They may even try to glorify the Plaguebringer by spreading it further. I can only hope they never find out about this.")
  68. end
  69. function respawn(NPC)
  70. spawn(NPC)
  71. end