9
3

ModianKJarr.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/ModianKJarr.lua
  3. Script Purpose : Modian K`Jarr
  4. Script Author : torsten\\Dorbin
  5. Script Date : 2022.07.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local BlindTasteTest = 5693
  10. local Talk = true
  11. function spawn(NPC)
  12. Drink(NPC)
  13. end
  14. function Revive1(NPC,Spawn)
  15. SpawnSet(NPC,"visual_state","0")
  16. SpawnSet(NPC,"action_state","323")
  17. SetInfoStructString(NPC, "action_state", "idle")
  18. PlayFlavor (NPC,"","","resurrect",0,0)
  19. end
  20. function Revive2(NPC,Spawn)
  21. Talk = false
  22. local Lyn = GetSpawn(NPC,1380013)
  23. CastSpell(Lyn,52)
  24. ApplySpellVisual(NPC,23)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function Drink(NPC)
  30. SpawnSet(NPC,"action_state","11422")
  31. SetInfoStructString(NPC, "action_state", "drinking_idle")
  32. Talk = true
  33. end
  34. function hailed(NPC, Spawn)
  35. if Talk == false then
  36. elseif Talk == true then
  37. Dialog1(NPC, Spawn)
  38. end
  39. end
  40. function Dialog1(NPC, Spawn)
  41. if Talk == true then
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("If you couldn't tell, I'm enjoying a drink. Now that your curiousity has been sated, perhaps you'll leave me alone?")
  45. Dialog.AddVoiceover("voiceover/english/modian_k_jarr/fprt_hood05/std_de_male_modian_kjarr.mp3", 531408061, 599233569)
  46. if HasQuest(Spawn, BlindTasteTest) and not HasCompletedQuest(Spawn, BlindTasteTest) then
  47. Dialog.AddOption("Bartender Icebrew wants you to try some of his new batch. On the house!","Dialog2")
  48. elseif HasCompletedQuest(Spawn, BlindTasteTest) then
  49. Dialog.AddOption("I'm glad to see you're still upright!")
  50. end
  51. Dialog.AddOption("I guess I will.")
  52. Dialog.Start()
  53. end
  54. end
  55. function Dialog2(NPC, Spawn)
  56. if Talk == true then
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("Oh, he does, does he? And did he also want you to gather the belongings from my corpse after I fall over dead from drinking that poisoned drink?")
  60. PlayFlavor (NPC,"","","glare",0,0)
  61. Dialog.AddVoiceover("voiceover/english/standard_dark_elf_male/fprt_hood06/quests/bartendericebrew/truepatron_icebrew_x2_initial.mp3", 3216795582, 3263193911)
  62. Dialog.AddOption("Hardly. You seem to be a decerning type. He claims this brew should put a fire in your belly in these drafty back alleys.","Dialog3")
  63. Dialog.Start()
  64. end
  65. end
  66. function Dialog3(NPC, Spawn)
  67. if Talk == true then
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("Very well ... I built up a tolerance to poisons. I guess now's as good a time as ever to see if my training paid off. Give me the drink, peon.")
  70. Dialog.AddVoiceover("voiceover/english/standard_dark_elf_male/fprt_hood06/quests/bartendericebrew/truepatron_icebrew_x2_initial2.mp3", 2486720354, 1239931448)
  71. PlayFlavor (NPC,"","","sniff",0,0)
  72. Dialog.AddOption("[ Hand him the drink and observe ]","Dialog4")
  73. Dialog.Start()
  74. end
  75. end
  76. function Dialog4(NPC,Spawn)
  77. if Talk == true then
  78. Talk = false
  79. AddTimer(NPC,6000,"Dialog4a",1,Spawn)
  80. AddTimer(NPC,10000,"Eyes",1,Spawn)
  81. AddTimer(NPC,13000,"Melt",1,Spawn)
  82. AddTimer(NPC,19000,"Die",1,Spawn)
  83. AddTimer(NPC,21500,"Die2",1,Spawn)
  84. AddTimer(NPC,28000,"Dead",1,Spawn)
  85. Dialog.New(NPC, Spawn)
  86. Dialog.AddDialog("...")
  87. Dialog.AddVoiceover("voiceover/english/standard_dark_elf_male/fprt_hood06/quests/bartendericebrew/truepatron_icebrew_x2_initial.mp3", 0, 0)
  88. PlayFlavor (NPC,"","","drinking_idle",0,0)
  89. Dialog.AddOption("And?")
  90. Dialog.Start()
  91. else
  92. CloseConversation(NPC,Spawn)
  93. end
  94. end
  95. function Eyes(NPC,Spawn)
  96. PlayFlavor (NPC,"","","scream",0,0)
  97. end
  98. function Melt(NPC,Spawn)
  99. PlayFlavor (NPC,"","","heartattack",0,0)
  100. SpawnSet(NPC,"action_state","228")
  101. SetInfoStructString(NPC, "action_state", "dead")
  102. SetHeading(NPC,"143.938")
  103. end
  104. function Die(NPC,Spawn)
  105. PlayFlavor (NPC,"","","dead_enter",0,0)
  106. SpawnSet(NPC,"action_state","228")
  107. SetInfoStructString(NPC, "action_state", "dead")
  108. end
  109. function Die2(NPC,Spawn)
  110. PlayFlavor (NPC,"","","dead",0,0)
  111. SpawnSet(NPC,"action_state","228")
  112. SetInfoStructString(NPC, "action_state", "dead")
  113. SpawnSet(NPC,"visual_state","228")
  114. CloseConversation(NPC,Spawn)
  115. end
  116. function Dead(NPC,Spawn)
  117. SpawnSet(NPC,"action_state","228")
  118. SetInfoStructString(NPC, "action_state", "dead")
  119. AddTimer(NPC,8999,"Revive1",1)
  120. AddTimer(NPC,9000,"Revive2",1)
  121. AddTimer(NPC,13000,"Drink",1)
  122. end
  123. function Dialog4a(NPC, Spawn)
  124. SetStepComplete(Spawn, BlindTasteTest, 1)
  125. FaceTarget(NPC, Spawn)
  126. Dialog.New(NPC, Spawn)
  127. Dialog.AddDialog("Ugh... That has to be the most disgus... AAAAAAAAAAHHHHHHH!!! MY EYES!!!!!!! I CAN'T SEE!!!! MY EYeeeessss... uuuhhhh.... ev'ry ting... goin'... blakkkkk...")
  128. Dialog.AddVoiceover("voiceover/english/standard_dark_elf_male/fprt_hood06/quests/bartendericebrew/truepatron_icebrew_x2_initial3.mp3", 1185257148, 1967119934)
  129. PlayFlavor (NPC,"","","gutcramp",0,0)
  130. Dialog.AddOption("Well... alright then.","Continue")
  131. Dialog.Start()
  132. end
  133. function Continue(NPC,Spawn)
  134. end